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/configuration/SpringFoxConfiguration.java
|
||||
src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java
|
||||
|
||||
@@ -21,7 +21,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Validated
|
||||
@Api(value = "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;
|
||||
|
||||
@@ -31,7 +31,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Validated
|
||||
@Api(value = "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;
|
||||
|
||||
@@ -21,7 +21,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Validated
|
||||
@Api(value = "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;
|
||||
|
||||
@@ -24,7 +24,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Validated
|
||||
@Api(value = "pet", description = "Everything about your Pets")
|
||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||
public interface PetApi {
|
||||
|
||||
default PetApiDelegate getDelegate() {
|
||||
|
||||
@@ -30,6 +30,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;
|
||||
|
||||
@@ -22,7 +22,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Validated
|
||||
@Api(value = "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;
|
||||
|
||||
@@ -23,7 +23,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Validated
|
||||
@Api(value = "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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
@@ -2105,6 +2105,7 @@ components:
|
||||
status:
|
||||
description: Updated status of the pet
|
||||
type: string
|
||||
type: object
|
||||
uploadFile_request:
|
||||
properties:
|
||||
additionalMetadata:
|
||||
@@ -2114,6 +2115,7 @@ components:
|
||||
description: file to upload
|
||||
format: binary
|
||||
type: string
|
||||
type: object
|
||||
testEnumParameters_request:
|
||||
properties:
|
||||
enum_form_string_array:
|
||||
@@ -2133,6 +2135,7 @@ components:
|
||||
- -efg
|
||||
- (xyz)
|
||||
type: string
|
||||
type: object
|
||||
testEndpointParameters_request:
|
||||
properties:
|
||||
integer:
|
||||
@@ -2205,6 +2208,7 @@ components:
|
||||
- double
|
||||
- number
|
||||
- pattern_without_delimiter
|
||||
type: object
|
||||
testJsonFormData_request:
|
||||
properties:
|
||||
param:
|
||||
@@ -2216,6 +2220,7 @@ components:
|
||||
required:
|
||||
- param
|
||||
- param2
|
||||
type: object
|
||||
uploadFileWithRequiredFile_request:
|
||||
properties:
|
||||
additionalMetadata:
|
||||
@@ -2227,6 +2232,7 @@ components:
|
||||
type: string
|
||||
required:
|
||||
- requiredFile
|
||||
type: object
|
||||
Dog_allOf:
|
||||
properties:
|
||||
breed:
|
||||
|
||||
Reference in New Issue
Block a user