[Bug][Java/Spring] OAS3 related bugfixes and enhancements (#11526)

* Content mediatype is hardcoded in api.mustache #11511

* Generate Samples

* OAS3 incorrect data type when providing a default value #11367

* Generate Samples

* Fix JsonTypeName annotation handling in Java and JavaSpring

* Generate Samples

* getIsClassnameSanitized: use null safe equals
This commit is contained in:
cachescrubber
2022-02-05 10:29:58 +01:00
committed by GitHub
parent e177a4b757
commit 194b3fda26
987 changed files with 2033 additions and 1285 deletions

View File

@@ -50,7 +50,9 @@ public interface AnotherFakeApi {
summary = "To test special tags",
tags = { "$another-fake?" },
responses = {
@ApiResponse(responseCode = "200", description = "successful operation", content = @Content(mediaType = "application/json", schema = @Schema(implementation = Client.class)))
@ApiResponse(responseCode = "200", description = "successful operation", content = {
@Content(mediaType = "application/json", schema = @Schema(implementation = Client.class))
})
}
)
@RequestMapping(
@@ -60,7 +62,7 @@ public interface AnotherFakeApi {
consumes = { "application/json" }
)
default Mono<ResponseEntity<Client>> call123testSpecialTags(
@Parameter(name = "body", description = "client model", required = true, schema = @Schema(description = "")) @Valid @RequestBody Mono<Client> body,
@Parameter(name = "body", description = "client model", required = true) @Valid @RequestBody Mono<Client> body,
@Parameter(hidden = true) final ServerWebExchange exchange
) {
return getDelegate().call123testSpecialTags(body, exchange);

View File

@@ -69,7 +69,7 @@ public interface FakeApi {
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<ResponseEntity<Void>> createXmlItem(
@Parameter(name = "XmlItem", description = "XmlItem Body", required = true, schema = @Schema(description = "")) @Valid @RequestBody Mono<XmlItem> xmlItem,
@Parameter(name = "XmlItem", description = "XmlItem Body", required = true) @Valid @RequestBody Mono<XmlItem> xmlItem,
@Parameter(hidden = true) final ServerWebExchange exchange
) {
return getDelegate().createXmlItem(xmlItem, exchange);
@@ -87,7 +87,9 @@ public interface FakeApi {
operationId = "fakeOuterBooleanSerialize",
tags = { "fake" },
responses = {
@ApiResponse(responseCode = "200", description = "Output boolean", content = @Content(mediaType = "application/json", schema = @Schema(implementation = Boolean.class)))
@ApiResponse(responseCode = "200", description = "Output boolean", content = {
@Content(mediaType = "*/*", schema = @Schema(implementation = Boolean.class))
})
}
)
@RequestMapping(
@@ -96,7 +98,7 @@ public interface FakeApi {
produces = { "*/*" }
)
default Mono<ResponseEntity<Boolean>> fakeOuterBooleanSerialize(
@Parameter(name = "body", description = "Input boolean as post body", schema = @Schema(description = "")) @Valid @RequestBody(required = false) Mono<Boolean> body,
@Parameter(name = "body", description = "Input boolean as post body") @Valid @RequestBody(required = false) Mono<Boolean> body,
@Parameter(hidden = true) final ServerWebExchange exchange
) {
return getDelegate().fakeOuterBooleanSerialize(body, exchange);
@@ -114,7 +116,9 @@ public interface FakeApi {
operationId = "fakeOuterCompositeSerialize",
tags = { "fake" },
responses = {
@ApiResponse(responseCode = "200", description = "Output composite", content = @Content(mediaType = "application/json", schema = @Schema(implementation = OuterComposite.class)))
@ApiResponse(responseCode = "200", description = "Output composite", content = {
@Content(mediaType = "*/*", schema = @Schema(implementation = OuterComposite.class))
})
}
)
@RequestMapping(
@@ -123,7 +127,7 @@ public interface FakeApi {
produces = { "*/*" }
)
default Mono<ResponseEntity<OuterComposite>> fakeOuterCompositeSerialize(
@Parameter(name = "body", description = "Input composite as post body", schema = @Schema(description = "")) @Valid @RequestBody(required = false) Mono<OuterComposite> body,
@Parameter(name = "body", description = "Input composite as post body") @Valid @RequestBody(required = false) Mono<OuterComposite> body,
@Parameter(hidden = true) final ServerWebExchange exchange
) {
return getDelegate().fakeOuterCompositeSerialize(body, exchange);
@@ -141,7 +145,9 @@ public interface FakeApi {
operationId = "fakeOuterNumberSerialize",
tags = { "fake" },
responses = {
@ApiResponse(responseCode = "200", description = "Output number", content = @Content(mediaType = "application/json", schema = @Schema(implementation = BigDecimal.class)))
@ApiResponse(responseCode = "200", description = "Output number", content = {
@Content(mediaType = "*/*", schema = @Schema(implementation = BigDecimal.class))
})
}
)
@RequestMapping(
@@ -150,7 +156,7 @@ public interface FakeApi {
produces = { "*/*" }
)
default Mono<ResponseEntity<BigDecimal>> fakeOuterNumberSerialize(
@Parameter(name = "body", description = "Input number as post body", schema = @Schema(description = "")) @Valid @RequestBody(required = false) Mono<BigDecimal> body,
@Parameter(name = "body", description = "Input number as post body") @Valid @RequestBody(required = false) Mono<BigDecimal> body,
@Parameter(hidden = true) final ServerWebExchange exchange
) {
return getDelegate().fakeOuterNumberSerialize(body, exchange);
@@ -168,7 +174,9 @@ public interface FakeApi {
operationId = "fakeOuterStringSerialize",
tags = { "fake" },
responses = {
@ApiResponse(responseCode = "200", description = "Output string", content = @Content(mediaType = "application/json", schema = @Schema(implementation = String.class)))
@ApiResponse(responseCode = "200", description = "Output string", content = {
@Content(mediaType = "*/*", schema = @Schema(implementation = String.class))
})
}
)
@RequestMapping(
@@ -177,7 +185,7 @@ public interface FakeApi {
produces = { "*/*" }
)
default Mono<ResponseEntity<String>> fakeOuterStringSerialize(
@Parameter(name = "body", description = "Input string as post body", schema = @Schema(description = "")) @Valid @RequestBody(required = false) Mono<String> body,
@Parameter(name = "body", description = "Input string as post body") @Valid @RequestBody(required = false) Mono<String> body,
@Parameter(hidden = true) final ServerWebExchange exchange
) {
return getDelegate().fakeOuterStringSerialize(body, exchange);
@@ -204,7 +212,7 @@ public interface FakeApi {
consumes = { "application/json" }
)
default Mono<ResponseEntity<Void>> testBodyWithFileSchema(
@Parameter(name = "body", description = "", required = true, schema = @Schema(description = "")) @Valid @RequestBody Mono<FileSchemaTestClass> body,
@Parameter(name = "body", description = "", required = true) @Valid @RequestBody Mono<FileSchemaTestClass> body,
@Parameter(hidden = true) final ServerWebExchange exchange
) {
return getDelegate().testBodyWithFileSchema(body, exchange);
@@ -231,8 +239,8 @@ public interface FakeApi {
consumes = { "application/json" }
)
default Mono<ResponseEntity<Void>> testBodyWithQueryParams(
@NotNull @Parameter(name = "query", description = "", required = true, schema = @Schema(description = "")) @Valid @RequestParam(value = "query", required = true) String query,
@Parameter(name = "body", description = "", required = true, schema = @Schema(description = "")) @Valid @RequestBody Mono<User> body,
@NotNull @Parameter(name = "query", description = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,
@Parameter(name = "body", description = "", required = true) @Valid @RequestBody Mono<User> body,
@Parameter(hidden = true) final ServerWebExchange exchange
) {
return getDelegate().testBodyWithQueryParams(query, body, exchange);
@@ -251,7 +259,9 @@ public interface FakeApi {
summary = "To test \"client\" model",
tags = { "fake" },
responses = {
@ApiResponse(responseCode = "200", description = "successful operation", content = @Content(mediaType = "application/json", schema = @Schema(implementation = Client.class)))
@ApiResponse(responseCode = "200", description = "successful operation", content = {
@Content(mediaType = "application/json", schema = @Schema(implementation = Client.class))
})
}
)
@RequestMapping(
@@ -261,7 +271,7 @@ public interface FakeApi {
consumes = { "application/json" }
)
default Mono<ResponseEntity<Client>> testClientModel(
@Parameter(name = "body", description = "client model", required = true, schema = @Schema(description = "")) @Valid @RequestBody Mono<Client> body,
@Parameter(name = "body", description = "client model", required = true) @Valid @RequestBody Mono<Client> body,
@Parameter(hidden = true) final ServerWebExchange exchange
) {
return getDelegate().testClientModel(body, exchange);
@@ -307,20 +317,20 @@ public interface FakeApi {
consumes = { "application/x-www-form-urlencoded" }
)
default Mono<ResponseEntity<Void>> testEndpointParameters(
@Parameter(name = "number", description = "None", required = true, schema = @Schema(description = "")) @Valid @RequestPart(value = "number", required = true) BigDecimal number,
@Parameter(name = "double", description = "None", required = true, schema = @Schema(description = "")) @Valid @RequestPart(value = "double", required = true) Double _double,
@Parameter(name = "pattern_without_delimiter", description = "None", required = true, schema = @Schema(description = "")) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,
@Parameter(name = "byte", description = "None", required = true, schema = @Schema(description = "")) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,
@Parameter(name = "integer", description = "None", schema = @Schema(description = "")) @Valid @RequestPart(value = "integer", required = false) Integer integer,
@Parameter(name = "int32", description = "None", schema = @Schema(description = "")) @Valid @RequestPart(value = "int32", required = false) Integer int32,
@Parameter(name = "int64", description = "None", schema = @Schema(description = "")) @Valid @RequestPart(value = "int64", required = false) Long int64,
@Parameter(name = "float", description = "None", schema = @Schema(description = "")) @Valid @RequestPart(value = "float", required = false) Float _float,
@Parameter(name = "string", description = "None", schema = @Schema(description = "")) @Valid @RequestPart(value = "string", required = false) String string,
@Parameter(name = "binary", description = "None", schema = @Schema(description = "")) @RequestPart(value = "binary", required = false) Flux<Part> binary,
@Parameter(name = "date", description = "None", schema = @Schema(description = "")) @Valid @RequestPart(value = "date", required = false) @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate date,
@Parameter(name = "dateTime", description = "None", schema = @Schema(description = "")) @Valid @RequestPart(value = "dateTime", required = false) @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) OffsetDateTime dateTime,
@Parameter(name = "password", description = "None", schema = @Schema(description = "")) @Valid @RequestPart(value = "password", required = false) String password,
@Parameter(name = "callback", description = "None", schema = @Schema(description = "")) @Valid @RequestPart(value = "callback", required = false) String paramCallback,
@Parameter(name = "number", description = "None", required = true) @Valid @RequestPart(value = "number", required = true) BigDecimal number,
@Parameter(name = "double", description = "None", required = true) @Valid @RequestPart(value = "double", required = true) Double _double,
@Parameter(name = "pattern_without_delimiter", description = "None", required = true) @Valid @RequestPart(value = "pattern_without_delimiter", required = true) String patternWithoutDelimiter,
@Parameter(name = "byte", description = "None", required = true) @Valid @RequestPart(value = "byte", required = true) byte[] _byte,
@Parameter(name = "integer", description = "None") @Valid @RequestPart(value = "integer", required = false) Integer integer,
@Parameter(name = "int32", description = "None") @Valid @RequestPart(value = "int32", required = false) Integer int32,
@Parameter(name = "int64", description = "None") @Valid @RequestPart(value = "int64", required = false) Long int64,
@Parameter(name = "float", description = "None") @Valid @RequestPart(value = "float", required = false) Float _float,
@Parameter(name = "string", description = "None") @Valid @RequestPart(value = "string", required = false) String string,
@Parameter(name = "binary", description = "None") @RequestPart(value = "binary", required = false) Flux<Part> binary,
@Parameter(name = "date", description = "None") @Valid @RequestPart(value = "date", required = false) @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate date,
@Parameter(name = "dateTime", description = "None") @Valid @RequestPart(value = "dateTime", required = false) @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) OffsetDateTime dateTime,
@Parameter(name = "password", description = "None") @Valid @RequestPart(value = "password", required = false) String password,
@Parameter(name = "callback", description = "None") @Valid @RequestPart(value = "callback", required = false) String paramCallback,
@Parameter(hidden = true) final ServerWebExchange exchange
) {
return getDelegate().testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback, exchange);
@@ -357,14 +367,14 @@ public interface FakeApi {
consumes = { "application/x-www-form-urlencoded" }
)
default Mono<ResponseEntity<Void>> testEnumParameters(
@Parameter(name = "enum_header_string_array", description = "Header parameter enum test (string array)", schema = @Schema(description = "", allowableValues = { ">", "$" })) @RequestHeader(value = "enum_header_string_array", required = false) List<String> enumHeaderStringArray,
@Parameter(name = "enum_header_string", description = "Header parameter enum test (string)", schema = @Schema(description = "", allowableValues = { "_abc", "-efg", "(xyz)" }, defaultValue = "-efg")) @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString,
@Parameter(name = "enum_query_string_array", description = "Query parameter enum test (string array)", schema = @Schema(description = "", allowableValues = { ">", "$" })) @Valid @RequestParam(value = "enum_query_string_array", required = false) List<String> enumQueryStringArray,
@Parameter(name = "enum_query_string", description = "Query parameter enum test (string)", schema = @Schema(description = "", allowableValues = { "_abc", "-efg", "(xyz)" }, defaultValue = "-efg")) @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString,
@Parameter(name = "enum_query_integer", description = "Query parameter enum test (double)", schema = @Schema(description = "", allowableValues = { "1", "-2" })) @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,
@Parameter(name = "enum_query_double", description = "Query parameter enum test (double)", schema = @Schema(description = "", allowableValues = { "1.1", "-1.2" })) @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,
@Parameter(name = "enum_form_string_array", description = "Form parameter enum test (string array)", schema = @Schema(description = "", allowableValues = { ">", "$" })) @Valid @RequestPart(value = "enum_form_string_array", required = false) List<String> enumFormStringArray,
@Parameter(name = "enum_form_string", description = "Form parameter enum test (string)", schema = @Schema(description = "", allowableValues = { "_abc", "-efg", "(xyz)" }, defaultValue = "-efg")) @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString,
@Parameter(name = "enum_header_string_array", description = "Header parameter enum test (string array)") @RequestHeader(value = "enum_header_string_array", required = false) List<String> enumHeaderStringArray,
@Parameter(name = "enum_header_string", description = "Header parameter enum test (string)") @RequestHeader(value = "enum_header_string", required = false) String enumHeaderString,
@Parameter(name = "enum_query_string_array", description = "Query parameter enum test (string array)") @Valid @RequestParam(value = "enum_query_string_array", required = false) List<String> enumQueryStringArray,
@Parameter(name = "enum_query_string", description = "Query parameter enum test (string)") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString,
@Parameter(name = "enum_query_integer", description = "Query parameter enum test (double)") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,
@Parameter(name = "enum_query_double", description = "Query parameter enum test (double)") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,
@Parameter(name = "enum_form_string_array", description = "Form parameter enum test (string array)") @Valid @RequestPart(value = "enum_form_string_array", required = false) List<String> enumFormStringArray,
@Parameter(name = "enum_form_string", description = "Form parameter enum test (string)") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString,
@Parameter(hidden = true) final ServerWebExchange exchange
) {
return getDelegate().testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, exchange);
@@ -396,12 +406,12 @@ public interface FakeApi {
value = "/fake"
)
default Mono<ResponseEntity<Void>> testGroupParameters(
@NotNull @Parameter(name = "required_string_group", description = "Required String in group parameters", required = true, schema = @Schema(description = "")) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,
@Parameter(name = "required_boolean_group", description = "Required Boolean in group parameters", required = true, schema = @Schema(description = "")) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup,
@NotNull @Parameter(name = "required_int64_group", description = "Required Integer in group parameters", required = true, schema = @Schema(description = "")) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,
@Parameter(name = "string_group", description = "String in group parameters", schema = @Schema(description = "")) @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,
@Parameter(name = "boolean_group", description = "Boolean in group parameters", schema = @Schema(description = "")) @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup,
@Parameter(name = "int64_group", description = "Integer in group parameters", schema = @Schema(description = "")) @Valid @RequestParam(value = "int64_group", required = false) Long int64Group,
@NotNull @Parameter(name = "required_string_group", description = "Required String in group parameters", required = true) @Valid @RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,
@Parameter(name = "required_boolean_group", description = "Required Boolean in group parameters", required = true) @RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup,
@NotNull @Parameter(name = "required_int64_group", description = "Required Integer in group parameters", required = true) @Valid @RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,
@Parameter(name = "string_group", description = "String in group parameters") @Valid @RequestParam(value = "string_group", required = false) Integer stringGroup,
@Parameter(name = "boolean_group", description = "Boolean in group parameters") @RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup,
@Parameter(name = "int64_group", description = "Integer in group parameters") @Valid @RequestParam(value = "int64_group", required = false) Long int64Group,
@Parameter(hidden = true) final ServerWebExchange exchange
) {
return getDelegate().testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, exchange);
@@ -428,7 +438,7 @@ public interface FakeApi {
consumes = { "application/json" }
)
default Mono<ResponseEntity<Void>> testInlineAdditionalProperties(
@Parameter(name = "param", description = "request body", required = true, schema = @Schema(description = "")) @Valid @RequestBody Mono<Map<String, String>> param,
@Parameter(name = "param", description = "request body", required = true) @Valid @RequestBody Mono<Map<String, String>> param,
@Parameter(hidden = true) final ServerWebExchange exchange
) {
return getDelegate().testInlineAdditionalProperties(param, exchange);
@@ -456,8 +466,8 @@ public interface FakeApi {
consumes = { "application/x-www-form-urlencoded" }
)
default Mono<ResponseEntity<Void>> testJsonFormData(
@Parameter(name = "param", description = "field1", required = true, schema = @Schema(description = "")) @Valid @RequestPart(value = "param", required = true) String param,
@Parameter(name = "param2", description = "field2", required = true, schema = @Schema(description = "")) @Valid @RequestPart(value = "param2", required = true) String param2,
@Parameter(name = "param", description = "field1", required = true) @Valid @RequestPart(value = "param", required = true) String param,
@Parameter(name = "param2", description = "field2", required = true) @Valid @RequestPart(value = "param2", required = true) String param2,
@Parameter(hidden = true) final ServerWebExchange exchange
) {
return getDelegate().testJsonFormData(param, param2, exchange);
@@ -487,11 +497,11 @@ public interface FakeApi {
value = "/fake/test-query-parameters"
)
default Mono<ResponseEntity<Void>> testQueryParameterCollectionFormat(
@NotNull @Parameter(name = "pipe", description = "", required = true, schema = @Schema(description = "")) @Valid @RequestParam(value = "pipe", required = true) List<String> pipe,
@NotNull @Parameter(name = "ioutil", description = "", required = true, schema = @Schema(description = "")) @Valid @RequestParam(value = "ioutil", required = true) List<String> ioutil,
@NotNull @Parameter(name = "http", description = "", required = true, schema = @Schema(description = "")) @Valid @RequestParam(value = "http", required = true) List<String> http,
@NotNull @Parameter(name = "url", description = "", required = true, schema = @Schema(description = "")) @Valid @RequestParam(value = "url", required = true) List<String> url,
@NotNull @Parameter(name = "context", description = "", required = true, schema = @Schema(description = "")) @Valid @RequestParam(value = "context", required = true) List<String> context,
@NotNull @Parameter(name = "pipe", description = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List<String> pipe,
@NotNull @Parameter(name = "ioutil", description = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List<String> ioutil,
@NotNull @Parameter(name = "http", description = "", required = true) @Valid @RequestParam(value = "http", required = true) List<String> http,
@NotNull @Parameter(name = "url", description = "", required = true) @Valid @RequestParam(value = "url", required = true) List<String> url,
@NotNull @Parameter(name = "context", description = "", required = true) @Valid @RequestParam(value = "context", required = true) List<String> context,
@Parameter(hidden = true) final ServerWebExchange exchange
) {
return getDelegate().testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, exchange);
@@ -511,7 +521,9 @@ public interface FakeApi {
summary = "uploads an image (required)",
tags = { "pet" },
responses = {
@ApiResponse(responseCode = "200", description = "successful operation", content = @Content(mediaType = "application/json", schema = @Schema(implementation = ModelApiResponse.class)))
@ApiResponse(responseCode = "200", description = "successful operation", content = {
@Content(mediaType = "application/json", schema = @Schema(implementation = ModelApiResponse.class))
})
},
security = {
@SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" })
@@ -524,9 +536,9 @@ public interface FakeApi {
consumes = { "multipart/form-data" }
)
default Mono<ResponseEntity<ModelApiResponse>> uploadFileWithRequiredFile(
@Parameter(name = "petId", description = "ID of pet to update", required = true, schema = @Schema(description = "")) @PathVariable("petId") Long petId,
@Parameter(name = "requiredFile", description = "file to upload", required = true, schema = @Schema(description = "")) @RequestPart(value = "requiredFile", required = true) Flux<Part> requiredFile,
@Parameter(name = "additionalMetadata", description = "Additional data to pass to server", schema = @Schema(description = "")) @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,
@Parameter(name = "petId", description = "ID of pet to update", required = true) @PathVariable("petId") Long petId,
@Parameter(name = "requiredFile", description = "file to upload", required = true) @RequestPart(value = "requiredFile", required = true) Flux<Part> requiredFile,
@Parameter(name = "additionalMetadata", description = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,
@Parameter(hidden = true) final ServerWebExchange exchange
) {
return getDelegate().uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata, exchange);

View File

@@ -50,7 +50,9 @@ public interface FakeClassnameTestApi {
summary = "To test class name in snake case",
tags = { "fake_classname_tags 123#$%^" },
responses = {
@ApiResponse(responseCode = "200", description = "successful operation", content = @Content(mediaType = "application/json", schema = @Schema(implementation = Client.class)))
@ApiResponse(responseCode = "200", description = "successful operation", content = {
@Content(mediaType = "application/json", schema = @Schema(implementation = Client.class))
})
},
security = {
@SecurityRequirement(name = "api_key_query")
@@ -63,7 +65,7 @@ public interface FakeClassnameTestApi {
consumes = { "application/json" }
)
default Mono<ResponseEntity<Client>> testClassname(
@Parameter(name = "body", description = "client model", required = true, schema = @Schema(description = "")) @Valid @RequestBody Mono<Client> body,
@Parameter(name = "body", description = "client model", required = true) @Valid @RequestBody Mono<Client> body,
@Parameter(hidden = true) final ServerWebExchange exchange
) {
return getDelegate().testClassname(body, exchange);

View File

@@ -65,7 +65,7 @@ public interface PetApi {
consumes = { "application/json", "application/xml" }
)
default Mono<ResponseEntity<Void>> addPet(
@Parameter(name = "body", description = "Pet object that needs to be added to the store", required = true, schema = @Schema(description = "")) @Valid @RequestBody Mono<Pet> body,
@Parameter(name = "body", description = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Mono<Pet> body,
@Parameter(hidden = true) final ServerWebExchange exchange
) {
return getDelegate().addPet(body, exchange);
@@ -97,8 +97,8 @@ public interface PetApi {
value = "/pet/{petId}"
)
default Mono<ResponseEntity<Void>> deletePet(
@Parameter(name = "petId", description = "Pet id to delete", required = true, schema = @Schema(description = "")) @PathVariable("petId") Long petId,
@Parameter(name = "api_key", description = "", schema = @Schema(description = "")) @RequestHeader(value = "api_key", required = false) String apiKey,
@Parameter(name = "petId", description = "Pet id to delete", required = true) @PathVariable("petId") Long petId,
@Parameter(name = "api_key", description = "") @RequestHeader(value = "api_key", required = false) String apiKey,
@Parameter(hidden = true) final ServerWebExchange exchange
) {
return getDelegate().deletePet(petId, apiKey, exchange);
@@ -118,7 +118,10 @@ public interface PetApi {
summary = "Finds Pets by status",
tags = { "pet" },
responses = {
@ApiResponse(responseCode = "200", description = "successful operation", content = @Content(mediaType = "application/json", schema = @Schema(implementation = Pet.class))),
@ApiResponse(responseCode = "200", description = "successful operation", content = {
@Content(mediaType = "application/xml", schema = @Schema(implementation = Pet.class)),
@Content(mediaType = "application/json", schema = @Schema(implementation = Pet.class))
}),
@ApiResponse(responseCode = "400", description = "Invalid status value")
},
security = {
@@ -131,7 +134,7 @@ public interface PetApi {
produces = { "application/xml", "application/json" }
)
default Mono<ResponseEntity<Flux<Pet>>> findPetsByStatus(
@NotNull @Parameter(name = "status", description = "Status values that need to be considered for filter", required = true, schema = @Schema(description = "", allowableValues = { "available", "pending", "sold" })) @Valid @RequestParam(value = "status", required = true) List<String> status,
@NotNull @Parameter(name = "status", description = "Status values that need to be considered for filter", required = true) @Valid @RequestParam(value = "status", required = true) List<String> status,
@Parameter(hidden = true) final ServerWebExchange exchange
) {
return getDelegate().findPetsByStatus(status, exchange);
@@ -152,7 +155,10 @@ public interface PetApi {
summary = "Finds Pets by tags",
tags = { "pet" },
responses = {
@ApiResponse(responseCode = "200", description = "successful operation", content = @Content(mediaType = "application/json", schema = @Schema(implementation = Pet.class))),
@ApiResponse(responseCode = "200", description = "successful operation", content = {
@Content(mediaType = "application/xml", schema = @Schema(implementation = Pet.class)),
@Content(mediaType = "application/json", schema = @Schema(implementation = Pet.class))
}),
@ApiResponse(responseCode = "400", description = "Invalid tag value")
},
security = {
@@ -165,7 +171,7 @@ public interface PetApi {
produces = { "application/xml", "application/json" }
)
default Mono<ResponseEntity<Flux<Pet>>> findPetsByTags(
@NotNull @Parameter(name = "tags", description = "Tags to filter by", required = true, schema = @Schema(description = "")) @Valid @RequestParam(value = "tags", required = true) Set<String> tags,
@NotNull @Parameter(name = "tags", description = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) Set<String> tags,
@Parameter(hidden = true) final ServerWebExchange exchange
) {
return getDelegate().findPetsByTags(tags, exchange);
@@ -186,7 +192,10 @@ public interface PetApi {
summary = "Find pet by ID",
tags = { "pet" },
responses = {
@ApiResponse(responseCode = "200", description = "successful operation", content = @Content(mediaType = "application/json", schema = @Schema(implementation = Pet.class))),
@ApiResponse(responseCode = "200", description = "successful operation", content = {
@Content(mediaType = "application/xml", schema = @Schema(implementation = Pet.class)),
@Content(mediaType = "application/json", schema = @Schema(implementation = Pet.class))
}),
@ApiResponse(responseCode = "400", description = "Invalid ID supplied"),
@ApiResponse(responseCode = "404", description = "Pet not found")
},
@@ -200,7 +209,7 @@ public interface PetApi {
produces = { "application/xml", "application/json" }
)
default Mono<ResponseEntity<Pet>> getPetById(
@Parameter(name = "petId", description = "ID of pet to return", required = true, schema = @Schema(description = "")) @PathVariable("petId") Long petId,
@Parameter(name = "petId", description = "ID of pet to return", required = true) @PathVariable("petId") Long petId,
@Parameter(hidden = true) final ServerWebExchange exchange
) {
return getDelegate().getPetById(petId, exchange);
@@ -236,7 +245,7 @@ public interface PetApi {
consumes = { "application/json", "application/xml" }
)
default Mono<ResponseEntity<Void>> updatePet(
@Parameter(name = "body", description = "Pet object that needs to be added to the store", required = true, schema = @Schema(description = "")) @Valid @RequestBody Mono<Pet> body,
@Parameter(name = "body", description = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Mono<Pet> body,
@Parameter(hidden = true) final ServerWebExchange exchange
) {
return getDelegate().updatePet(body, exchange);
@@ -268,9 +277,9 @@ public interface PetApi {
consumes = { "application/x-www-form-urlencoded" }
)
default Mono<ResponseEntity<Void>> updatePetWithForm(
@Parameter(name = "petId", description = "ID of pet that needs to be updated", required = true, schema = @Schema(description = "")) @PathVariable("petId") Long petId,
@Parameter(name = "name", description = "Updated name of the pet", schema = @Schema(description = "")) @Valid @RequestPart(value = "name", required = false) String name,
@Parameter(name = "status", description = "Updated status of the pet", schema = @Schema(description = "")) @Valid @RequestPart(value = "status", required = false) String status,
@Parameter(name = "petId", description = "ID of pet that needs to be updated", required = true) @PathVariable("petId") Long petId,
@Parameter(name = "name", description = "Updated name of the pet") @Valid @RequestPart(value = "name", required = false) String name,
@Parameter(name = "status", description = "Updated status of the pet") @Valid @RequestPart(value = "status", required = false) String status,
@Parameter(hidden = true) final ServerWebExchange exchange
) {
return getDelegate().updatePetWithForm(petId, name, status, exchange);
@@ -290,7 +299,9 @@ public interface PetApi {
summary = "uploads an image",
tags = { "pet" },
responses = {
@ApiResponse(responseCode = "200", description = "successful operation", content = @Content(mediaType = "application/json", schema = @Schema(implementation = ModelApiResponse.class)))
@ApiResponse(responseCode = "200", description = "successful operation", content = {
@Content(mediaType = "application/json", schema = @Schema(implementation = ModelApiResponse.class))
})
},
security = {
@SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" })
@@ -303,9 +314,9 @@ public interface PetApi {
consumes = { "multipart/form-data" }
)
default Mono<ResponseEntity<ModelApiResponse>> uploadFile(
@Parameter(name = "petId", description = "ID of pet to update", required = true, schema = @Schema(description = "")) @PathVariable("petId") Long petId,
@Parameter(name = "additionalMetadata", description = "Additional data to pass to server", schema = @Schema(description = "")) @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,
@Parameter(name = "file", description = "file to upload", schema = @Schema(description = "")) @RequestPart(value = "file", required = false) Flux<Part> file,
@Parameter(name = "petId", description = "ID of pet to update", required = true) @PathVariable("petId") Long petId,
@Parameter(name = "additionalMetadata", description = "Additional data to pass to server") @Valid @RequestPart(value = "additionalMetadata", required = false) String additionalMetadata,
@Parameter(name = "file", description = "file to upload") @RequestPart(value = "file", required = false) Flux<Part> file,
@Parameter(hidden = true) final ServerWebExchange exchange
) {
return getDelegate().uploadFile(petId, additionalMetadata, file, exchange);

View File

@@ -61,7 +61,7 @@ public interface StoreApi {
value = "/store/order/{order_id}"
)
default Mono<ResponseEntity<Void>> deleteOrder(
@Parameter(name = "order_id", description = "ID of the order that needs to be deleted", required = true, schema = @Schema(description = "")) @PathVariable("order_id") String orderId,
@Parameter(name = "order_id", description = "ID of the order that needs to be deleted", required = true) @PathVariable("order_id") String orderId,
@Parameter(hidden = true) final ServerWebExchange exchange
) {
return getDelegate().deleteOrder(orderId, exchange);
@@ -79,7 +79,9 @@ public interface StoreApi {
summary = "Returns pet inventories by status",
tags = { "store" },
responses = {
@ApiResponse(responseCode = "200", description = "successful operation", content = @Content(mediaType = "application/json", schema = @Schema(implementation = Map.class)))
@ApiResponse(responseCode = "200", description = "successful operation", content = {
@Content(mediaType = "application/json", schema = @Schema(implementation = Map.class))
})
},
security = {
@SecurityRequirement(name = "api_key")
@@ -111,7 +113,10 @@ public interface StoreApi {
summary = "Find purchase order by ID",
tags = { "store" },
responses = {
@ApiResponse(responseCode = "200", description = "successful operation", content = @Content(mediaType = "application/json", schema = @Schema(implementation = Order.class))),
@ApiResponse(responseCode = "200", description = "successful operation", content = {
@Content(mediaType = "application/xml", schema = @Schema(implementation = Order.class)),
@Content(mediaType = "application/json", schema = @Schema(implementation = Order.class))
}),
@ApiResponse(responseCode = "400", description = "Invalid ID supplied"),
@ApiResponse(responseCode = "404", description = "Order not found")
}
@@ -122,7 +127,7 @@ public interface StoreApi {
produces = { "application/xml", "application/json" }
)
default Mono<ResponseEntity<Order>> getOrderById(
@Min(1L) @Max(5L) @Parameter(name = "order_id", description = "ID of pet that needs to be fetched", required = true, schema = @Schema(description = "")) @PathVariable("order_id") Long orderId,
@Min(1L) @Max(5L) @Parameter(name = "order_id", description = "ID of pet that needs to be fetched", required = true) @PathVariable("order_id") Long orderId,
@Parameter(hidden = true) final ServerWebExchange exchange
) {
return getDelegate().getOrderById(orderId, exchange);
@@ -141,7 +146,10 @@ public interface StoreApi {
summary = "Place an order for a pet",
tags = { "store" },
responses = {
@ApiResponse(responseCode = "200", description = "successful operation", content = @Content(mediaType = "application/json", schema = @Schema(implementation = Order.class))),
@ApiResponse(responseCode = "200", description = "successful operation", content = {
@Content(mediaType = "application/xml", schema = @Schema(implementation = Order.class)),
@Content(mediaType = "application/json", schema = @Schema(implementation = Order.class))
}),
@ApiResponse(responseCode = "400", description = "Invalid Order")
}
)
@@ -151,7 +159,7 @@ public interface StoreApi {
produces = { "application/xml", "application/json" }
)
default Mono<ResponseEntity<Order>> placeOrder(
@Parameter(name = "body", description = "order placed for purchasing the pet", required = true, schema = @Schema(description = "")) @Valid @RequestBody Mono<Order> body,
@Parameter(name = "body", description = "order placed for purchasing the pet", required = true) @Valid @RequestBody Mono<Order> body,
@Parameter(hidden = true) final ServerWebExchange exchange
) {
return getDelegate().placeOrder(body, exchange);

View File

@@ -60,7 +60,7 @@ public interface UserApi {
value = "/user"
)
default Mono<ResponseEntity<Void>> createUser(
@Parameter(name = "body", description = "Created user object", required = true, schema = @Schema(description = "")) @Valid @RequestBody Mono<User> body,
@Parameter(name = "body", description = "Created user object", required = true) @Valid @RequestBody Mono<User> body,
@Parameter(hidden = true) final ServerWebExchange exchange
) {
return getDelegate().createUser(body, exchange);
@@ -86,7 +86,7 @@ public interface UserApi {
value = "/user/createWithArray"
)
default Mono<ResponseEntity<Void>> createUsersWithArrayInput(
@Parameter(name = "body", description = "List of user object", required = true, schema = @Schema(description = "")) @Valid @RequestBody Flux<User> body,
@Parameter(name = "body", description = "List of user object", required = true) @Valid @RequestBody Flux<User> body,
@Parameter(hidden = true) final ServerWebExchange exchange
) {
return getDelegate().createUsersWithArrayInput(body, exchange);
@@ -112,7 +112,7 @@ public interface UserApi {
value = "/user/createWithList"
)
default Mono<ResponseEntity<Void>> createUsersWithListInput(
@Parameter(name = "body", description = "List of user object", required = true, schema = @Schema(description = "")) @Valid @RequestBody Flux<User> body,
@Parameter(name = "body", description = "List of user object", required = true) @Valid @RequestBody Flux<User> body,
@Parameter(hidden = true) final ServerWebExchange exchange
) {
return getDelegate().createUsersWithListInput(body, exchange);
@@ -141,7 +141,7 @@ public interface UserApi {
value = "/user/{username}"
)
default Mono<ResponseEntity<Void>> deleteUser(
@Parameter(name = "username", description = "The name that needs to be deleted", required = true, schema = @Schema(description = "")) @PathVariable("username") String username,
@Parameter(name = "username", description = "The name that needs to be deleted", required = true) @PathVariable("username") String username,
@Parameter(hidden = true) final ServerWebExchange exchange
) {
return getDelegate().deleteUser(username, exchange);
@@ -161,7 +161,10 @@ public interface UserApi {
summary = "Get user by user name",
tags = { "user" },
responses = {
@ApiResponse(responseCode = "200", description = "successful operation", content = @Content(mediaType = "application/json", schema = @Schema(implementation = User.class))),
@ApiResponse(responseCode = "200", description = "successful operation", content = {
@Content(mediaType = "application/xml", schema = @Schema(implementation = User.class)),
@Content(mediaType = "application/json", schema = @Schema(implementation = User.class))
}),
@ApiResponse(responseCode = "400", description = "Invalid username supplied"),
@ApiResponse(responseCode = "404", description = "User not found")
}
@@ -172,7 +175,7 @@ public interface UserApi {
produces = { "application/xml", "application/json" }
)
default Mono<ResponseEntity<User>> getUserByName(
@Parameter(name = "username", description = "The name that needs to be fetched. Use user1 for testing.", required = true, schema = @Schema(description = "")) @PathVariable("username") String username,
@Parameter(name = "username", description = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathVariable("username") String username,
@Parameter(hidden = true) final ServerWebExchange exchange
) {
return getDelegate().getUserByName(username, exchange);
@@ -192,7 +195,10 @@ public interface UserApi {
summary = "Logs user into the system",
tags = { "user" },
responses = {
@ApiResponse(responseCode = "200", description = "successful operation", content = @Content(mediaType = "application/json", schema = @Schema(implementation = String.class))),
@ApiResponse(responseCode = "200", description = "successful operation", content = {
@Content(mediaType = "application/xml", schema = @Schema(implementation = String.class)),
@Content(mediaType = "application/json", schema = @Schema(implementation = String.class))
}),
@ApiResponse(responseCode = "400", description = "Invalid username/password supplied")
}
)
@@ -202,8 +208,8 @@ public interface UserApi {
produces = { "application/xml", "application/json" }
)
default Mono<ResponseEntity<String>> loginUser(
@NotNull @Parameter(name = "username", description = "The user name for login", required = true, schema = @Schema(description = "")) @Valid @RequestParam(value = "username", required = true) String username,
@NotNull @Parameter(name = "password", description = "The password for login in clear text", required = true, schema = @Schema(description = "")) @Valid @RequestParam(value = "password", required = true) String password,
@NotNull @Parameter(name = "username", description = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,
@NotNull @Parameter(name = "password", description = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password,
@Parameter(hidden = true) final ServerWebExchange exchange
) {
return getDelegate().loginUser(username, password, exchange);
@@ -257,8 +263,8 @@ public interface UserApi {
value = "/user/{username}"
)
default Mono<ResponseEntity<Void>> updateUser(
@Parameter(name = "username", description = "name that need to be deleted", required = true, schema = @Schema(description = "")) @PathVariable("username") String username,
@Parameter(name = "body", description = "Updated user object", required = true, schema = @Schema(description = "")) @Valid @RequestBody Mono<User> body,
@Parameter(name = "username", description = "name that need to be deleted", required = true) @PathVariable("username") String username,
@Parameter(name = "body", description = "Updated user object", required = true) @Valid @RequestBody Mono<User> body,
@Parameter(hidden = true) final ServerWebExchange exchange
) {
return getDelegate().updateUser(username, body, exchange);

View File

@@ -4,6 +4,7 @@ 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.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import org.openapitools.jackson.nullable.JsonNullable;
import java.time.OffsetDateTime;
@@ -19,6 +20,7 @@ import javax.annotation.Generated;
* BigCatAllOf
*/
@JsonTypeName("BigCat_allOf")
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
public class BigCatAllOf {

View File

@@ -4,6 +4,7 @@ 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.JsonTypeName;
import org.openapitools.jackson.nullable.JsonNullable;
import java.time.OffsetDateTime;
import javax.validation.Valid;
@@ -18,6 +19,7 @@ import javax.annotation.Generated;
* CatAllOf
*/
@JsonTypeName("Cat_allOf")
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
public class CatAllOf {

View File

@@ -4,6 +4,7 @@ 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.JsonTypeName;
import org.openapitools.jackson.nullable.JsonNullable;
import java.time.OffsetDateTime;
import javax.validation.Valid;
@@ -18,6 +19,7 @@ import javax.annotation.Generated;
* DogAllOf
*/
@JsonTypeName("Dog_allOf")
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
public class DogAllOf {

View File

@@ -4,6 +4,7 @@ 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.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import org.openapitools.model.OuterEnum;
import org.openapitools.jackson.nullable.JsonNullable;
@@ -20,6 +21,7 @@ import javax.annotation.Generated;
* EnumTest
*/
@JsonTypeName("Enum_Test")
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
public class EnumTest {

View File

@@ -4,6 +4,7 @@ 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.JsonTypeName;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.OffsetDateTime;
@@ -24,6 +25,7 @@ import javax.annotation.Generated;
* FormatTest
*/
@JsonTypeName("format_test")
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
public class FormatTest {

View File

@@ -4,6 +4,7 @@ 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.JsonTypeName;
import org.openapitools.jackson.nullable.JsonNullable;
import java.time.OffsetDateTime;
import javax.validation.Valid;
@@ -18,6 +19,7 @@ import javax.annotation.Generated;
* HasOnlyReadOnly
*/
@JsonTypeName("hasOnlyReadOnly")
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
public class HasOnlyReadOnly {

View File

@@ -4,6 +4,7 @@ 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.JsonTypeName;
import org.openapitools.jackson.nullable.JsonNullable;
import java.time.OffsetDateTime;
import javax.validation.Valid;
@@ -19,6 +20,7 @@ import javax.annotation.Generated;
*/
@Schema(name = "200_response", description = "Model for testing model name starting with number")
@JsonTypeName("200_response")
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
public class Model200Response {

View File

@@ -4,6 +4,7 @@ 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.JsonTypeName;
import org.openapitools.jackson.nullable.JsonNullable;
import java.time.OffsetDateTime;
import javax.validation.Valid;
@@ -18,6 +19,7 @@ import javax.annotation.Generated;
* ModelApiResponse
*/
@JsonTypeName("ApiResponse")
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
public class ModelApiResponse {

View File

@@ -4,6 +4,7 @@ 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.JsonTypeName;
import org.openapitools.jackson.nullable.JsonNullable;
import java.time.OffsetDateTime;
import javax.validation.Valid;
@@ -18,6 +19,7 @@ import javax.annotation.Generated;
* ModelList
*/
@JsonTypeName("List")
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
public class ModelList {

View File

@@ -4,6 +4,7 @@ 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.JsonTypeName;
import org.openapitools.jackson.nullable.JsonNullable;
import java.time.OffsetDateTime;
import javax.validation.Valid;
@@ -19,6 +20,7 @@ import javax.annotation.Generated;
*/
@Schema(name = "Return", description = "Model for testing reserved words")
@JsonTypeName("Return")
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
public class ModelReturn {

View File

@@ -4,6 +4,7 @@ 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.JsonTypeName;
import org.openapitools.jackson.nullable.JsonNullable;
import java.time.OffsetDateTime;
import javax.validation.Valid;
@@ -18,6 +19,7 @@ import javax.annotation.Generated;
* SpecialModelName
*/
@JsonTypeName("$special[model.name]")
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
public class SpecialModelName {