forked from loafle/openapi-generator-original
Merge remote-tracking branch 'origin/master' into 6.3.x
This commit is contained in:
@@ -21,6 +21,7 @@ src/main/java/org/openapitools/api/StoreApiDelegate.java
|
||||
src/main/java/org/openapitools/api/UserApi.java
|
||||
src/main/java/org/openapitools/api/UserApiController.java
|
||||
src/main/java/org/openapitools/api/UserApiDelegate.java
|
||||
src/main/java/org/openapitools/configuration/EnumConverterConfiguration.java
|
||||
src/main/java/org/openapitools/configuration/HomeController.java
|
||||
src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java
|
||||
src/main/java/org/openapitools/model/AdditionalPropertiesArray.java
|
||||
|
||||
@@ -32,7 +32,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Validated
|
||||
@Tag(name = "another-fake", description = "the another-fake API")
|
||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||
public interface AnotherFakeApi {
|
||||
|
||||
default AnotherFakeApiDelegate getDelegate() {
|
||||
|
||||
@@ -27,6 +27,7 @@ import javax.annotation.Generated;
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Controller
|
||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||
public class AnotherFakeApiController implements AnotherFakeApi {
|
||||
|
||||
private final AnotherFakeApiDelegate delegate;
|
||||
|
||||
@@ -46,7 +46,7 @@ public interface AnotherFakeApiDelegate {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return result.then(Mono.empty());
|
||||
return result.then(body).then(Mono.empty());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Validated
|
||||
@Tag(name = "fake", description = "the fake API")
|
||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||
public interface FakeApi {
|
||||
|
||||
default FakeApiDelegate getDelegate() {
|
||||
|
||||
@@ -37,6 +37,7 @@ import javax.annotation.Generated;
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Controller
|
||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||
public class FakeApiController implements FakeApi {
|
||||
|
||||
private final FakeApiDelegate delegate;
|
||||
|
||||
@@ -49,7 +49,7 @@ public interface FakeApiDelegate {
|
||||
ServerWebExchange exchange) {
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
return result.then(xmlItem).then(Mono.empty());
|
||||
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ public interface FakeApiDelegate {
|
||||
ServerWebExchange exchange) {
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
return result.then(body).then(Mono.empty());
|
||||
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ public interface FakeApiDelegate {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return result.then(Mono.empty());
|
||||
return result.then(body).then(Mono.empty());
|
||||
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ public interface FakeApiDelegate {
|
||||
ServerWebExchange exchange) {
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
return result.then(body).then(Mono.empty());
|
||||
|
||||
}
|
||||
|
||||
@@ -120,7 +120,7 @@ public interface FakeApiDelegate {
|
||||
ServerWebExchange exchange) {
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
return result.then(body).then(Mono.empty());
|
||||
|
||||
}
|
||||
|
||||
@@ -136,7 +136,7 @@ public interface FakeApiDelegate {
|
||||
ServerWebExchange exchange) {
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
return result.then(body).then(Mono.empty());
|
||||
|
||||
}
|
||||
|
||||
@@ -153,7 +153,7 @@ public interface FakeApiDelegate {
|
||||
ServerWebExchange exchange) {
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
return result.then(body).then(Mono.empty());
|
||||
|
||||
}
|
||||
|
||||
@@ -176,7 +176,7 @@ public interface FakeApiDelegate {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return result.then(Mono.empty());
|
||||
return result.then(body).then(Mono.empty());
|
||||
|
||||
}
|
||||
|
||||
@@ -291,7 +291,7 @@ public interface FakeApiDelegate {
|
||||
ServerWebExchange exchange) {
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
return result.then(param).then(Mono.empty());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -32,7 +32,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Validated
|
||||
@Tag(name = "fake_classname_test", description = "the fake_classname_test API")
|
||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||
public interface FakeClassnameTestApi {
|
||||
|
||||
default FakeClassnameTestApiDelegate getDelegate() {
|
||||
|
||||
@@ -27,6 +27,7 @@ import javax.annotation.Generated;
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Controller
|
||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||
public class FakeClassnameTestApiController implements FakeClassnameTestApi {
|
||||
|
||||
private final FakeClassnameTestApiDelegate delegate;
|
||||
|
||||
@@ -46,7 +46,7 @@ public interface FakeClassnameTestApiDelegate {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return result.then(Mono.empty());
|
||||
return result.then(body).then(Mono.empty());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Validated
|
||||
@Tag(name = "pet", description = "Everything about your Pets")
|
||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||
public interface PetApi {
|
||||
|
||||
default PetApiDelegate getDelegate() {
|
||||
|
||||
@@ -29,6 +29,7 @@ import javax.annotation.Generated;
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Controller
|
||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||
public class PetApiController implements PetApi {
|
||||
|
||||
private final PetApiDelegate delegate;
|
||||
|
||||
@@ -41,7 +41,7 @@ public interface PetApiDelegate {
|
||||
ServerWebExchange exchange) {
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
return result.then(body).then(Mono.empty());
|
||||
|
||||
}
|
||||
|
||||
@@ -167,7 +167,7 @@ public interface PetApiDelegate {
|
||||
ServerWebExchange exchange) {
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
return result.then(body).then(Mono.empty());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Validated
|
||||
@Tag(name = "store", description = "Access to Petstore orders")
|
||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||
public interface StoreApi {
|
||||
|
||||
default StoreApiDelegate getDelegate() {
|
||||
|
||||
@@ -28,6 +28,7 @@ import javax.annotation.Generated;
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Controller
|
||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||
public class StoreApiController implements StoreApi {
|
||||
|
||||
private final StoreApiDelegate delegate;
|
||||
|
||||
@@ -113,7 +113,7 @@ public interface StoreApiDelegate {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return result.then(Mono.empty());
|
||||
return result.then(body).then(Mono.empty());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Validated
|
||||
@Tag(name = "user", description = "Operations about user")
|
||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||
public interface UserApi {
|
||||
|
||||
default UserApiDelegate getDelegate() {
|
||||
|
||||
@@ -29,6 +29,7 @@ import javax.annotation.Generated;
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Controller
|
||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||
public class UserApiController implements UserApi {
|
||||
|
||||
private final UserApiDelegate delegate;
|
||||
|
||||
@@ -41,7 +41,7 @@ public interface UserApiDelegate {
|
||||
ServerWebExchange exchange) {
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
return result.then(body).then(Mono.empty());
|
||||
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ public interface UserApiDelegate {
|
||||
ServerWebExchange exchange) {
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
return result.thenMany(body).then(Mono.empty());
|
||||
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ public interface UserApiDelegate {
|
||||
ServerWebExchange exchange) {
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
return result.thenMany(body).then(Mono.empty());
|
||||
|
||||
}
|
||||
|
||||
@@ -167,7 +167,7 @@ public interface UserApiDelegate {
|
||||
ServerWebExchange exchange) {
|
||||
Mono<Void> result = Mono.empty();
|
||||
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
|
||||
return result.then(Mono.empty());
|
||||
return result.then(body).then(Mono.empty());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
package org.openapitools.configuration;
|
||||
|
||||
import org.openapitools.model.EnumClass;
|
||||
import org.openapitools.model.OuterEnum;
|
||||
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.convert.converter.Converter;
|
||||
|
||||
@Configuration
|
||||
public class EnumConverterConfiguration {
|
||||
|
||||
@Bean
|
||||
Converter<String, EnumClass> enumClassConverter() {
|
||||
return new Converter<String, EnumClass>() {
|
||||
@Override
|
||||
public EnumClass convert(String source) {
|
||||
return EnumClass.fromValue(source);
|
||||
}
|
||||
};
|
||||
}
|
||||
@Bean
|
||||
Converter<String, OuterEnum> outerEnumConverter() {
|
||||
return new Converter<String, OuterEnum>() {
|
||||
@Override
|
||||
public OuterEnum convert(String source) {
|
||||
return OuterEnum.fromValue(source);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
@@ -2111,6 +2111,7 @@ components:
|
||||
status:
|
||||
description: Updated status of the pet
|
||||
type: string
|
||||
type: object
|
||||
uploadFile_request:
|
||||
properties:
|
||||
additionalMetadata:
|
||||
@@ -2120,6 +2121,7 @@ components:
|
||||
description: file to upload
|
||||
format: binary
|
||||
type: string
|
||||
type: object
|
||||
testEnumParameters_request:
|
||||
properties:
|
||||
enum_form_string_array:
|
||||
@@ -2139,6 +2141,7 @@ components:
|
||||
- -efg
|
||||
- (xyz)
|
||||
type: string
|
||||
type: object
|
||||
testEndpointParameters_request:
|
||||
properties:
|
||||
integer:
|
||||
@@ -2211,6 +2214,7 @@ components:
|
||||
- double
|
||||
- number
|
||||
- pattern_without_delimiter
|
||||
type: object
|
||||
testJsonFormData_request:
|
||||
properties:
|
||||
param:
|
||||
@@ -2222,6 +2226,7 @@ components:
|
||||
required:
|
||||
- param
|
||||
- param2
|
||||
type: object
|
||||
uploadFileWithRequiredFile_request:
|
||||
properties:
|
||||
additionalMetadata:
|
||||
@@ -2233,6 +2238,7 @@ components:
|
||||
type: string
|
||||
required:
|
||||
- requiredFile
|
||||
type: object
|
||||
Dog_allOf:
|
||||
properties:
|
||||
breed:
|
||||
|
||||
Reference in New Issue
Block a user