forked from loafle/openapi-generator-original
[core] Update parser and core to latest version (#1569)
* Update swagger-parser to 2.0.7 * Update swagger-core to 2.0.6
This commit is contained in:
committed by
Jérémie Bresson
parent
c05dc24e6a
commit
fb15a4baf3
@@ -19,6 +19,7 @@ import io.swagger.v3.oas.models.tags.Tag;
|
|||||||
import org.testng.annotations.Test;
|
import org.testng.annotations.Test;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.LinkedHashMap;
|
||||||
|
|
||||||
public class SerializerUtilsTest {
|
public class SerializerUtilsTest {
|
||||||
|
|
||||||
@@ -44,6 +45,7 @@ public class SerializerUtilsTest {
|
|||||||
.operationId("pingOp")
|
.operationId("pingOp")
|
||||||
.responses(new ApiResponses().addApiResponse("200", new ApiResponse().description("Ok")))));
|
.responses(new ApiResponses().addApiResponse("200", new ApiResponse().description("Ok")))));
|
||||||
openAPI.components(new Components().addSchemas("SomeObject", new ObjectSchema().description("An Obj").addProperties("id", new StringSchema())));
|
openAPI.components(new Components().addSchemas("SomeObject", new ObjectSchema().description("An Obj").addProperties("id", new StringSchema())));
|
||||||
|
openAPI.setExtensions(new LinkedHashMap<>()); // required because swagger-core is using HashMap instead of LinkedHashMap internally.
|
||||||
openAPI.addExtension("x-custom", "value1");
|
openAPI.addExtension("x-custom", "value1");
|
||||||
openAPI.addExtension("x-other", "value2");
|
openAPI.addExtension("x-other", "value2");
|
||||||
|
|
||||||
@@ -87,8 +89,8 @@ public class SerializerUtilsTest {
|
|||||||
" id:\n" +
|
" id:\n" +
|
||||||
" type: string\n" +
|
" type: string\n" +
|
||||||
" type: object\n" +
|
" type: object\n" +
|
||||||
"x-other: value2\n" +
|
"x-custom: value1\n" +
|
||||||
"x-custom: value1\n";
|
"x-other: value2\n";
|
||||||
assertEquals(content, expected);
|
assertEquals(content, expected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ public class ModelUtilsTest {
|
|||||||
public void testGetAllUsedSchemas() {
|
public void testGetAllUsedSchemas() {
|
||||||
final OpenAPI openAPI = new OpenAPIParser().readLocation("src/test/resources/3_0/unusedSchemas.yaml", null, new ParseOptions()).getOpenAPI();
|
final OpenAPI openAPI = new OpenAPIParser().readLocation("src/test/resources/3_0/unusedSchemas.yaml", null, new ParseOptions()).getOpenAPI();
|
||||||
List<String> allUsedSchemas = ModelUtils.getAllUsedSchemas(openAPI);
|
List<String> allUsedSchemas = ModelUtils.getAllUsedSchemas(openAPI);
|
||||||
Assert.assertEquals(allUsedSchemas.size(), 30);
|
Assert.assertEquals(allUsedSchemas.size(), 32);
|
||||||
|
|
||||||
Assert.assertTrue(allUsedSchemas.contains("SomeObjShared"), "contains 'SomeObjShared'");
|
Assert.assertTrue(allUsedSchemas.contains("SomeObjShared"), "contains 'SomeObjShared'");
|
||||||
Assert.assertTrue(allUsedSchemas.contains("SomeObj1"), "contains 'UnusedObj1'");
|
Assert.assertTrue(allUsedSchemas.contains("SomeObj1"), "contains 'UnusedObj1'");
|
||||||
@@ -76,6 +76,8 @@ public class ModelUtilsTest {
|
|||||||
Assert.assertTrue(allUsedSchemas.contains("OtherObj20"), "contains 'OtherObj20'");
|
Assert.assertTrue(allUsedSchemas.contains("OtherObj20"), "contains 'OtherObj20'");
|
||||||
Assert.assertTrue(allUsedSchemas.contains("PingDataInput21"), "contains 'PingDataInput21'");
|
Assert.assertTrue(allUsedSchemas.contains("PingDataInput21"), "contains 'PingDataInput21'");
|
||||||
Assert.assertTrue(allUsedSchemas.contains("PingDataOutput21"), "contains 'PingDataOutput21'");
|
Assert.assertTrue(allUsedSchemas.contains("PingDataOutput21"), "contains 'PingDataOutput21'");
|
||||||
|
Assert.assertTrue(allUsedSchemas.contains("SInput22"), "contains 'SInput22'");
|
||||||
|
Assert.assertTrue(allUsedSchemas.contains("SOutput22"), "contains 'SInput22'");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
@@ -127,7 +127,7 @@
|
|||||||
"enum": ["available", "pending", "sold"]
|
"enum": ["available", "pending", "sold"]
|
||||||
},
|
},
|
||||||
"collectionFormat": "multi",
|
"collectionFormat": "multi",
|
||||||
"default": "available"
|
"default": ["available"]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
|
|||||||
@@ -263,6 +263,23 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/PingDataOutput21'
|
$ref: '#/components/schemas/PingDataOutput21'
|
||||||
|
/some/p22:
|
||||||
|
post:
|
||||||
|
operationId: op22
|
||||||
|
parameters:
|
||||||
|
- name: callbackUrl
|
||||||
|
in: query
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
format: uri
|
||||||
|
example: https://some-server.com
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: OK
|
||||||
|
callbacks:
|
||||||
|
sharedCallback:
|
||||||
|
$ref: "#/components/callbacks/sharedCallback22"
|
||||||
components:
|
components:
|
||||||
schemas:
|
schemas:
|
||||||
UnusedObj1:
|
UnusedObj1:
|
||||||
@@ -507,6 +524,20 @@ components:
|
|||||||
type: integer
|
type: integer
|
||||||
reply:
|
reply:
|
||||||
type: String
|
type: String
|
||||||
|
SInput22:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
uuid:
|
||||||
|
type: String
|
||||||
|
request:
|
||||||
|
type: String
|
||||||
|
SOutput22:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
uuid:
|
||||||
|
type: String
|
||||||
|
response:
|
||||||
|
type: String
|
||||||
SomeObjShared:
|
SomeObjShared:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@@ -560,4 +591,20 @@ components:
|
|||||||
in: query
|
in: query
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/SomeObj11'
|
$ref: '#/components/schemas/SomeObj11'
|
||||||
|
callbacks:
|
||||||
|
sharedCallback22:
|
||||||
|
'{$request.query.callbackUrl}/shared':
|
||||||
|
post:
|
||||||
|
requestBody:
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/SInput22'
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: Ok
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/SOutput22'
|
||||||
|
|
||||||
4
pom.xml
4
pom.xml
@@ -1341,8 +1341,8 @@
|
|||||||
<properties>
|
<properties>
|
||||||
<maven.compiler.source>1.8</maven.compiler.source>
|
<maven.compiler.source>1.8</maven.compiler.source>
|
||||||
<maven.compiler.target>1.8</maven.compiler.target>
|
<maven.compiler.target>1.8</maven.compiler.target>
|
||||||
<swagger-parser-version>2.0.4</swagger-parser-version>
|
<swagger-parser-version>2.0.7</swagger-parser-version>
|
||||||
<swagger-core-version>2.0.4</swagger-core-version>
|
<swagger-core-version>2.0.6</swagger-core-version>
|
||||||
<scala-version>2.11.1</scala-version>
|
<scala-version>2.11.1</scala-version>
|
||||||
<felix-version>3.3.1</felix-version>
|
<felix-version>3.3.1</felix-version>
|
||||||
<commons-io-version>2.4</commons-io-version>
|
<commons-io-version>2.4</commons-io-version>
|
||||||
|
|||||||
@@ -1078,6 +1078,40 @@ paths:
|
|||||||
- pet
|
- pet
|
||||||
components:
|
components:
|
||||||
schemas:
|
schemas:
|
||||||
|
Order:
|
||||||
|
example:
|
||||||
|
petId: 6
|
||||||
|
quantity: 1
|
||||||
|
id: 0
|
||||||
|
shipDate: 2000-01-23T04:56:07.000+00:00
|
||||||
|
complete: false
|
||||||
|
status: placed
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
petId:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
quantity:
|
||||||
|
format: int32
|
||||||
|
type: integer
|
||||||
|
shipDate:
|
||||||
|
format: date-time
|
||||||
|
type: string
|
||||||
|
status:
|
||||||
|
description: Order Status
|
||||||
|
enum:
|
||||||
|
- placed
|
||||||
|
- approved
|
||||||
|
- delivered
|
||||||
|
type: string
|
||||||
|
complete:
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
xml:
|
||||||
|
name: Order
|
||||||
Category:
|
Category:
|
||||||
example:
|
example:
|
||||||
name: default-name
|
name: default-name
|
||||||
@@ -1128,45 +1162,72 @@ components:
|
|||||||
type: object
|
type: object
|
||||||
xml:
|
xml:
|
||||||
name: User
|
name: User
|
||||||
OuterNumber:
|
Tag:
|
||||||
type: number
|
example:
|
||||||
ArrayOfNumberOnly:
|
name: name
|
||||||
|
id: 1
|
||||||
properties:
|
properties:
|
||||||
ArrayNumber:
|
id:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
xml:
|
||||||
|
name: Tag
|
||||||
|
Pet:
|
||||||
|
example:
|
||||||
|
photoUrls:
|
||||||
|
- photoUrls
|
||||||
|
- photoUrls
|
||||||
|
name: doggie
|
||||||
|
id: 0
|
||||||
|
category:
|
||||||
|
name: default-name
|
||||||
|
id: 6
|
||||||
|
tags:
|
||||||
|
- name: name
|
||||||
|
id: 1
|
||||||
|
- name: name
|
||||||
|
id: 1
|
||||||
|
status: available
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
x-is-unique: true
|
||||||
|
category:
|
||||||
|
$ref: '#/components/schemas/Category'
|
||||||
|
name:
|
||||||
|
example: doggie
|
||||||
|
type: string
|
||||||
|
photoUrls:
|
||||||
items:
|
items:
|
||||||
type: number
|
type: string
|
||||||
type: array
|
type: array
|
||||||
|
xml:
|
||||||
|
name: photoUrl
|
||||||
|
wrapped: true
|
||||||
|
tags:
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/Tag'
|
||||||
|
type: array
|
||||||
|
xml:
|
||||||
|
name: tag
|
||||||
|
wrapped: true
|
||||||
|
status:
|
||||||
|
description: pet status in the store
|
||||||
|
enum:
|
||||||
|
- available
|
||||||
|
- pending
|
||||||
|
- sold
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- name
|
||||||
|
- photoUrls
|
||||||
type: object
|
type: object
|
||||||
Capitalization:
|
xml:
|
||||||
properties:
|
name: Pet
|
||||||
smallCamel:
|
|
||||||
type: string
|
|
||||||
CapitalCamel:
|
|
||||||
type: string
|
|
||||||
small_Snake:
|
|
||||||
type: string
|
|
||||||
Capital_Snake:
|
|
||||||
type: string
|
|
||||||
SCA_ETH_Flow_Points:
|
|
||||||
type: string
|
|
||||||
ATT_NAME:
|
|
||||||
description: |
|
|
||||||
Name of the pet
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
MixedPropertiesAndAdditionalPropertiesClass:
|
|
||||||
properties:
|
|
||||||
uuid:
|
|
||||||
format: uuid
|
|
||||||
type: string
|
|
||||||
dateTime:
|
|
||||||
format: date-time
|
|
||||||
type: string
|
|
||||||
map:
|
|
||||||
additionalProperties:
|
|
||||||
$ref: '#/components/schemas/Animal'
|
|
||||||
type: object
|
|
||||||
type: object
|
|
||||||
ApiResponse:
|
ApiResponse:
|
||||||
example:
|
example:
|
||||||
code: 0
|
code: 0
|
||||||
@@ -1181,6 +1242,23 @@ components:
|
|||||||
message:
|
message:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
$special[model.name]:
|
||||||
|
properties:
|
||||||
|
$special[property.name]:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
type: object
|
||||||
|
xml:
|
||||||
|
name: $special[model.name]
|
||||||
|
Return:
|
||||||
|
description: Model for testing reserved words
|
||||||
|
properties:
|
||||||
|
return:
|
||||||
|
format: int32
|
||||||
|
type: integer
|
||||||
|
type: object
|
||||||
|
xml:
|
||||||
|
name: Return
|
||||||
Name:
|
Name:
|
||||||
description: Model for testing model name same as property name
|
description: Model for testing model name same as property name
|
||||||
properties:
|
properties:
|
||||||
@@ -1201,23 +1279,6 @@ components:
|
|||||||
type: object
|
type: object
|
||||||
xml:
|
xml:
|
||||||
name: Name
|
name: Name
|
||||||
EnumClass:
|
|
||||||
default: -efg
|
|
||||||
enum:
|
|
||||||
- _abc
|
|
||||||
- -efg
|
|
||||||
- (xyz)
|
|
||||||
type: string
|
|
||||||
List:
|
|
||||||
properties:
|
|
||||||
123-list:
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
NumberOnly:
|
|
||||||
properties:
|
|
||||||
JustNumber:
|
|
||||||
type: number
|
|
||||||
type: object
|
|
||||||
200_response:
|
200_response:
|
||||||
description: Model for testing model name starting with number
|
description: Model for testing model name starting with number
|
||||||
properties:
|
properties:
|
||||||
@@ -1229,11 +1290,10 @@ components:
|
|||||||
type: object
|
type: object
|
||||||
xml:
|
xml:
|
||||||
name: Name
|
name: Name
|
||||||
Client:
|
ClassModel:
|
||||||
example:
|
description: Model for testing model with "_class" property
|
||||||
client: client
|
|
||||||
properties:
|
properties:
|
||||||
client:
|
_class:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
Dog:
|
Dog:
|
||||||
@@ -1243,158 +1303,29 @@ components:
|
|||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
Enum_Test:
|
Cat:
|
||||||
|
allOf:
|
||||||
|
- $ref: '#/components/schemas/Animal'
|
||||||
|
- properties:
|
||||||
|
declawed:
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
Animal:
|
||||||
|
discriminator:
|
||||||
|
propertyName: className
|
||||||
properties:
|
properties:
|
||||||
enum_string:
|
className:
|
||||||
enum:
|
|
||||||
- UPPER
|
|
||||||
- lower
|
|
||||||
- ""
|
|
||||||
type: string
|
type: string
|
||||||
enum_string_required:
|
color:
|
||||||
enum:
|
default: red
|
||||||
- UPPER
|
|
||||||
- lower
|
|
||||||
- ""
|
|
||||||
type: string
|
type: string
|
||||||
enum_integer:
|
|
||||||
enum:
|
|
||||||
- 1
|
|
||||||
- -1
|
|
||||||
format: int32
|
|
||||||
type: integer
|
|
||||||
enum_number:
|
|
||||||
enum:
|
|
||||||
- 1.1
|
|
||||||
- -1.2
|
|
||||||
format: double
|
|
||||||
type: number
|
|
||||||
outerEnum:
|
|
||||||
$ref: '#/components/schemas/OuterEnum'
|
|
||||||
required:
|
required:
|
||||||
- enum_string_required
|
- className
|
||||||
type: object
|
|
||||||
Order:
|
|
||||||
example:
|
|
||||||
petId: 6
|
|
||||||
quantity: 1
|
|
||||||
id: 0
|
|
||||||
shipDate: 2000-01-23T04:56:07.000+00:00
|
|
||||||
complete: false
|
|
||||||
status: placed
|
|
||||||
properties:
|
|
||||||
id:
|
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
petId:
|
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
quantity:
|
|
||||||
format: int32
|
|
||||||
type: integer
|
|
||||||
shipDate:
|
|
||||||
format: date-time
|
|
||||||
type: string
|
|
||||||
status:
|
|
||||||
description: Order Status
|
|
||||||
enum:
|
|
||||||
- placed
|
|
||||||
- approved
|
|
||||||
- delivered
|
|
||||||
type: string
|
|
||||||
complete:
|
|
||||||
default: false
|
|
||||||
type: boolean
|
|
||||||
type: object
|
|
||||||
xml:
|
|
||||||
name: Order
|
|
||||||
AdditionalPropertiesClass:
|
|
||||||
properties:
|
|
||||||
map_property:
|
|
||||||
additionalProperties:
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
map_of_map_property:
|
|
||||||
additionalProperties:
|
|
||||||
additionalProperties:
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
type: object
|
|
||||||
type: object
|
|
||||||
$special[model.name]:
|
|
||||||
properties:
|
|
||||||
$special[property.name]:
|
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
type: object
|
|
||||||
xml:
|
|
||||||
name: $special[model.name]
|
|
||||||
Return:
|
|
||||||
description: Model for testing reserved words
|
|
||||||
properties:
|
|
||||||
return:
|
|
||||||
format: int32
|
|
||||||
type: integer
|
|
||||||
type: object
|
|
||||||
xml:
|
|
||||||
name: Return
|
|
||||||
ReadOnlyFirst:
|
|
||||||
properties:
|
|
||||||
bar:
|
|
||||||
readOnly: true
|
|
||||||
type: string
|
|
||||||
baz:
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
ArrayOfArrayOfNumberOnly:
|
|
||||||
properties:
|
|
||||||
ArrayArrayNumber:
|
|
||||||
items:
|
|
||||||
items:
|
|
||||||
type: number
|
|
||||||
type: array
|
|
||||||
type: array
|
|
||||||
type: object
|
|
||||||
OuterEnum:
|
|
||||||
enum:
|
|
||||||
- placed
|
|
||||||
- approved
|
|
||||||
- delivered
|
|
||||||
type: string
|
|
||||||
ArrayTest:
|
|
||||||
properties:
|
|
||||||
array_of_string:
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
array_array_of_integer:
|
|
||||||
items:
|
|
||||||
items:
|
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
type: array
|
|
||||||
type: array
|
|
||||||
array_array_of_model:
|
|
||||||
items:
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/ReadOnlyFirst'
|
|
||||||
type: array
|
|
||||||
type: array
|
|
||||||
type: object
|
|
||||||
OuterComposite:
|
|
||||||
example:
|
|
||||||
my_string: my_string
|
|
||||||
my_number: 0.80082819046101150206595775671303272247314453125
|
|
||||||
my_boolean: true
|
|
||||||
properties:
|
|
||||||
my_number:
|
|
||||||
type: number
|
|
||||||
my_string:
|
|
||||||
type: string
|
|
||||||
my_boolean:
|
|
||||||
type: boolean
|
|
||||||
x-codegen-body-parameter-name: boolean_post_body
|
|
||||||
type: object
|
type: object
|
||||||
|
AnimalFarm:
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/Animal'
|
||||||
|
type: array
|
||||||
format_test:
|
format_test:
|
||||||
properties:
|
properties:
|
||||||
integer:
|
integer:
|
||||||
@@ -1453,70 +1384,116 @@ components:
|
|||||||
- number
|
- number
|
||||||
- password
|
- password
|
||||||
type: object
|
type: object
|
||||||
EnumArrays:
|
EnumClass:
|
||||||
properties:
|
default: -efg
|
||||||
just_symbol:
|
enum:
|
||||||
enum:
|
- _abc
|
||||||
- '>='
|
- -efg
|
||||||
- $
|
- (xyz)
|
||||||
type: string
|
|
||||||
array_enum:
|
|
||||||
items:
|
|
||||||
enum:
|
|
||||||
- fish
|
|
||||||
- crab
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
type: object
|
|
||||||
OuterString:
|
|
||||||
type: string
|
type: string
|
||||||
ClassModel:
|
Enum_Test:
|
||||||
description: Model for testing model with "_class" property
|
|
||||||
properties:
|
properties:
|
||||||
_class:
|
enum_string:
|
||||||
|
enum:
|
||||||
|
- UPPER
|
||||||
|
- lower
|
||||||
|
- ""
|
||||||
type: string
|
type: string
|
||||||
type: object
|
enum_string_required:
|
||||||
OuterBoolean:
|
enum:
|
||||||
type: boolean
|
- UPPER
|
||||||
x-codegen-body-parameter-name: boolean_post_body
|
- lower
|
||||||
FileSchemaTestClass:
|
- ""
|
||||||
example:
|
|
||||||
file:
|
|
||||||
sourceURI: sourceURI
|
|
||||||
files:
|
|
||||||
- sourceURI: sourceURI
|
|
||||||
- sourceURI: sourceURI
|
|
||||||
properties:
|
|
||||||
file:
|
|
||||||
$ref: '#/components/schemas/File'
|
|
||||||
files:
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/File'
|
|
||||||
type: array
|
|
||||||
type: object
|
|
||||||
Animal:
|
|
||||||
discriminator:
|
|
||||||
propertyName: className
|
|
||||||
properties:
|
|
||||||
className:
|
|
||||||
type: string
|
|
||||||
color:
|
|
||||||
default: red
|
|
||||||
type: string
|
type: string
|
||||||
|
enum_integer:
|
||||||
|
enum:
|
||||||
|
- 1
|
||||||
|
- -1
|
||||||
|
format: int32
|
||||||
|
type: integer
|
||||||
|
enum_number:
|
||||||
|
enum:
|
||||||
|
- 1.1
|
||||||
|
- -1.2
|
||||||
|
format: double
|
||||||
|
type: number
|
||||||
|
outerEnum:
|
||||||
|
$ref: '#/components/schemas/OuterEnum'
|
||||||
required:
|
required:
|
||||||
- className
|
- enum_string_required
|
||||||
type: object
|
type: object
|
||||||
StringBooleanMap:
|
AdditionalPropertiesClass:
|
||||||
additionalProperties:
|
properties:
|
||||||
type: boolean
|
map_property:
|
||||||
|
additionalProperties:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
map_of_map_property:
|
||||||
|
additionalProperties:
|
||||||
|
additionalProperties:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
MixedPropertiesAndAdditionalPropertiesClass:
|
||||||
|
properties:
|
||||||
|
uuid:
|
||||||
|
format: uuid
|
||||||
|
type: string
|
||||||
|
dateTime:
|
||||||
|
format: date-time
|
||||||
|
type: string
|
||||||
|
map:
|
||||||
|
additionalProperties:
|
||||||
|
$ref: '#/components/schemas/Animal'
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
List:
|
||||||
|
properties:
|
||||||
|
123-list:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
Client:
|
||||||
|
example:
|
||||||
|
client: client
|
||||||
|
properties:
|
||||||
|
client:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
ReadOnlyFirst:
|
||||||
|
properties:
|
||||||
|
bar:
|
||||||
|
readOnly: true
|
||||||
|
type: string
|
||||||
|
baz:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
hasOnlyReadOnly:
|
||||||
|
properties:
|
||||||
|
bar:
|
||||||
|
readOnly: true
|
||||||
|
type: string
|
||||||
|
foo:
|
||||||
|
readOnly: true
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
Capitalization:
|
||||||
|
properties:
|
||||||
|
smallCamel:
|
||||||
|
type: string
|
||||||
|
CapitalCamel:
|
||||||
|
type: string
|
||||||
|
small_Snake:
|
||||||
|
type: string
|
||||||
|
Capital_Snake:
|
||||||
|
type: string
|
||||||
|
SCA_ETH_Flow_Points:
|
||||||
|
type: string
|
||||||
|
ATT_NAME:
|
||||||
|
description: |
|
||||||
|
Name of the pet
|
||||||
|
type: string
|
||||||
type: object
|
type: object
|
||||||
Cat:
|
|
||||||
allOf:
|
|
||||||
- $ref: '#/components/schemas/Animal'
|
|
||||||
- properties:
|
|
||||||
declawed:
|
|
||||||
type: boolean
|
|
||||||
type: object
|
|
||||||
MapTest:
|
MapTest:
|
||||||
properties:
|
properties:
|
||||||
map_map_of_string:
|
map_map_of_string:
|
||||||
@@ -1541,23 +1518,108 @@ components:
|
|||||||
type: boolean
|
type: boolean
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
Tag:
|
ArrayTest:
|
||||||
example:
|
|
||||||
name: name
|
|
||||||
id: 1
|
|
||||||
properties:
|
properties:
|
||||||
id:
|
array_of_string:
|
||||||
format: int64
|
items:
|
||||||
type: integer
|
type: string
|
||||||
name:
|
type: array
|
||||||
type: string
|
array_array_of_integer:
|
||||||
|
items:
|
||||||
|
items:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
type: array
|
||||||
|
type: array
|
||||||
|
array_array_of_model:
|
||||||
|
items:
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/ReadOnlyFirst'
|
||||||
|
type: array
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
NumberOnly:
|
||||||
|
properties:
|
||||||
|
JustNumber:
|
||||||
|
type: number
|
||||||
|
type: object
|
||||||
|
ArrayOfNumberOnly:
|
||||||
|
properties:
|
||||||
|
ArrayNumber:
|
||||||
|
items:
|
||||||
|
type: number
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
ArrayOfArrayOfNumberOnly:
|
||||||
|
properties:
|
||||||
|
ArrayArrayNumber:
|
||||||
|
items:
|
||||||
|
items:
|
||||||
|
type: number
|
||||||
|
type: array
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
EnumArrays:
|
||||||
|
properties:
|
||||||
|
just_symbol:
|
||||||
|
enum:
|
||||||
|
- '>='
|
||||||
|
- $
|
||||||
|
type: string
|
||||||
|
array_enum:
|
||||||
|
items:
|
||||||
|
enum:
|
||||||
|
- fish
|
||||||
|
- crab
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
OuterEnum:
|
||||||
|
enum:
|
||||||
|
- placed
|
||||||
|
- approved
|
||||||
|
- delivered
|
||||||
|
type: string
|
||||||
|
OuterComposite:
|
||||||
|
example:
|
||||||
|
my_string: my_string
|
||||||
|
my_number: 0.80082819046101150206595775671303272247314453125
|
||||||
|
my_boolean: true
|
||||||
|
properties:
|
||||||
|
my_number:
|
||||||
|
type: number
|
||||||
|
my_string:
|
||||||
|
type: string
|
||||||
|
my_boolean:
|
||||||
|
type: boolean
|
||||||
|
x-codegen-body-parameter-name: boolean_post_body
|
||||||
|
type: object
|
||||||
|
OuterNumber:
|
||||||
|
type: number
|
||||||
|
OuterString:
|
||||||
|
type: string
|
||||||
|
OuterBoolean:
|
||||||
|
type: boolean
|
||||||
|
x-codegen-body-parameter-name: boolean_post_body
|
||||||
|
StringBooleanMap:
|
||||||
|
additionalProperties:
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
FileSchemaTestClass:
|
||||||
|
example:
|
||||||
|
file:
|
||||||
|
sourceURI: sourceURI
|
||||||
|
files:
|
||||||
|
- sourceURI: sourceURI
|
||||||
|
- sourceURI: sourceURI
|
||||||
|
properties:
|
||||||
|
file:
|
||||||
|
$ref: '#/components/schemas/File'
|
||||||
|
files:
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/File'
|
||||||
|
type: array
|
||||||
type: object
|
type: object
|
||||||
xml:
|
|
||||||
name: Tag
|
|
||||||
AnimalFarm:
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/Animal'
|
|
||||||
type: array
|
|
||||||
File:
|
File:
|
||||||
description: Must be named `File` for test.
|
description: Must be named `File` for test.
|
||||||
example:
|
example:
|
||||||
@@ -1567,68 +1629,6 @@ components:
|
|||||||
description: Test capitalization
|
description: Test capitalization
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
Pet:
|
|
||||||
example:
|
|
||||||
photoUrls:
|
|
||||||
- photoUrls
|
|
||||||
- photoUrls
|
|
||||||
name: doggie
|
|
||||||
id: 0
|
|
||||||
category:
|
|
||||||
name: default-name
|
|
||||||
id: 6
|
|
||||||
tags:
|
|
||||||
- name: name
|
|
||||||
id: 1
|
|
||||||
- name: name
|
|
||||||
id: 1
|
|
||||||
status: available
|
|
||||||
properties:
|
|
||||||
id:
|
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
x-is-unique: true
|
|
||||||
category:
|
|
||||||
$ref: '#/components/schemas/Category'
|
|
||||||
name:
|
|
||||||
example: doggie
|
|
||||||
type: string
|
|
||||||
photoUrls:
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
xml:
|
|
||||||
name: photoUrl
|
|
||||||
wrapped: true
|
|
||||||
tags:
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/Tag'
|
|
||||||
type: array
|
|
||||||
xml:
|
|
||||||
name: tag
|
|
||||||
wrapped: true
|
|
||||||
status:
|
|
||||||
description: pet status in the store
|
|
||||||
enum:
|
|
||||||
- available
|
|
||||||
- pending
|
|
||||||
- sold
|
|
||||||
type: string
|
|
||||||
required:
|
|
||||||
- name
|
|
||||||
- photoUrls
|
|
||||||
type: object
|
|
||||||
xml:
|
|
||||||
name: Pet
|
|
||||||
hasOnlyReadOnly:
|
|
||||||
properties:
|
|
||||||
bar:
|
|
||||||
readOnly: true
|
|
||||||
type: string
|
|
||||||
foo:
|
|
||||||
readOnly: true
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
@@ -1638,9 +1638,6 @@ components:
|
|||||||
write:pets: modify pets in your account
|
write:pets: modify pets in your account
|
||||||
read:pets: read your pets
|
read:pets: read your pets
|
||||||
type: oauth2
|
type: oauth2
|
||||||
http_basic_test:
|
|
||||||
scheme: basic
|
|
||||||
type: http
|
|
||||||
api_key:
|
api_key:
|
||||||
in: header
|
in: header
|
||||||
name: api_key
|
name: api_key
|
||||||
@@ -1649,3 +1646,6 @@ components:
|
|||||||
in: query
|
in: query
|
||||||
name: api_key_query
|
name: api_key_query
|
||||||
type: apiKey
|
type: apiKey
|
||||||
|
http_basic_test:
|
||||||
|
scheme: basic
|
||||||
|
type: http
|
||||||
|
|||||||
@@ -1078,6 +1078,40 @@ paths:
|
|||||||
- pet
|
- pet
|
||||||
components:
|
components:
|
||||||
schemas:
|
schemas:
|
||||||
|
Order:
|
||||||
|
example:
|
||||||
|
petId: 6
|
||||||
|
quantity: 1
|
||||||
|
id: 0
|
||||||
|
shipDate: 2000-01-23T04:56:07.000+00:00
|
||||||
|
complete: false
|
||||||
|
status: placed
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
petId:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
quantity:
|
||||||
|
format: int32
|
||||||
|
type: integer
|
||||||
|
shipDate:
|
||||||
|
format: date-time
|
||||||
|
type: string
|
||||||
|
status:
|
||||||
|
description: Order Status
|
||||||
|
enum:
|
||||||
|
- placed
|
||||||
|
- approved
|
||||||
|
- delivered
|
||||||
|
type: string
|
||||||
|
complete:
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
xml:
|
||||||
|
name: Order
|
||||||
Category:
|
Category:
|
||||||
example:
|
example:
|
||||||
name: default-name
|
name: default-name
|
||||||
@@ -1128,45 +1162,72 @@ components:
|
|||||||
type: object
|
type: object
|
||||||
xml:
|
xml:
|
||||||
name: User
|
name: User
|
||||||
OuterNumber:
|
Tag:
|
||||||
type: number
|
example:
|
||||||
ArrayOfNumberOnly:
|
name: name
|
||||||
|
id: 1
|
||||||
properties:
|
properties:
|
||||||
ArrayNumber:
|
id:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
xml:
|
||||||
|
name: Tag
|
||||||
|
Pet:
|
||||||
|
example:
|
||||||
|
photoUrls:
|
||||||
|
- photoUrls
|
||||||
|
- photoUrls
|
||||||
|
name: doggie
|
||||||
|
id: 0
|
||||||
|
category:
|
||||||
|
name: default-name
|
||||||
|
id: 6
|
||||||
|
tags:
|
||||||
|
- name: name
|
||||||
|
id: 1
|
||||||
|
- name: name
|
||||||
|
id: 1
|
||||||
|
status: available
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
x-is-unique: true
|
||||||
|
category:
|
||||||
|
$ref: '#/components/schemas/Category'
|
||||||
|
name:
|
||||||
|
example: doggie
|
||||||
|
type: string
|
||||||
|
photoUrls:
|
||||||
items:
|
items:
|
||||||
type: number
|
type: string
|
||||||
type: array
|
type: array
|
||||||
|
xml:
|
||||||
|
name: photoUrl
|
||||||
|
wrapped: true
|
||||||
|
tags:
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/Tag'
|
||||||
|
type: array
|
||||||
|
xml:
|
||||||
|
name: tag
|
||||||
|
wrapped: true
|
||||||
|
status:
|
||||||
|
description: pet status in the store
|
||||||
|
enum:
|
||||||
|
- available
|
||||||
|
- pending
|
||||||
|
- sold
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- name
|
||||||
|
- photoUrls
|
||||||
type: object
|
type: object
|
||||||
Capitalization:
|
xml:
|
||||||
properties:
|
name: Pet
|
||||||
smallCamel:
|
|
||||||
type: string
|
|
||||||
CapitalCamel:
|
|
||||||
type: string
|
|
||||||
small_Snake:
|
|
||||||
type: string
|
|
||||||
Capital_Snake:
|
|
||||||
type: string
|
|
||||||
SCA_ETH_Flow_Points:
|
|
||||||
type: string
|
|
||||||
ATT_NAME:
|
|
||||||
description: |
|
|
||||||
Name of the pet
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
MixedPropertiesAndAdditionalPropertiesClass:
|
|
||||||
properties:
|
|
||||||
uuid:
|
|
||||||
format: uuid
|
|
||||||
type: string
|
|
||||||
dateTime:
|
|
||||||
format: date-time
|
|
||||||
type: string
|
|
||||||
map:
|
|
||||||
additionalProperties:
|
|
||||||
$ref: '#/components/schemas/Animal'
|
|
||||||
type: object
|
|
||||||
type: object
|
|
||||||
ApiResponse:
|
ApiResponse:
|
||||||
example:
|
example:
|
||||||
code: 0
|
code: 0
|
||||||
@@ -1181,6 +1242,23 @@ components:
|
|||||||
message:
|
message:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
$special[model.name]:
|
||||||
|
properties:
|
||||||
|
$special[property.name]:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
type: object
|
||||||
|
xml:
|
||||||
|
name: $special[model.name]
|
||||||
|
Return:
|
||||||
|
description: Model for testing reserved words
|
||||||
|
properties:
|
||||||
|
return:
|
||||||
|
format: int32
|
||||||
|
type: integer
|
||||||
|
type: object
|
||||||
|
xml:
|
||||||
|
name: Return
|
||||||
Name:
|
Name:
|
||||||
description: Model for testing model name same as property name
|
description: Model for testing model name same as property name
|
||||||
properties:
|
properties:
|
||||||
@@ -1201,23 +1279,6 @@ components:
|
|||||||
type: object
|
type: object
|
||||||
xml:
|
xml:
|
||||||
name: Name
|
name: Name
|
||||||
EnumClass:
|
|
||||||
default: -efg
|
|
||||||
enum:
|
|
||||||
- _abc
|
|
||||||
- -efg
|
|
||||||
- (xyz)
|
|
||||||
type: string
|
|
||||||
List:
|
|
||||||
properties:
|
|
||||||
123-list:
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
NumberOnly:
|
|
||||||
properties:
|
|
||||||
JustNumber:
|
|
||||||
type: number
|
|
||||||
type: object
|
|
||||||
200_response:
|
200_response:
|
||||||
description: Model for testing model name starting with number
|
description: Model for testing model name starting with number
|
||||||
properties:
|
properties:
|
||||||
@@ -1229,11 +1290,10 @@ components:
|
|||||||
type: object
|
type: object
|
||||||
xml:
|
xml:
|
||||||
name: Name
|
name: Name
|
||||||
Client:
|
ClassModel:
|
||||||
example:
|
description: Model for testing model with "_class" property
|
||||||
client: client
|
|
||||||
properties:
|
properties:
|
||||||
client:
|
_class:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
Dog:
|
Dog:
|
||||||
@@ -1243,158 +1303,29 @@ components:
|
|||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
Enum_Test:
|
Cat:
|
||||||
|
allOf:
|
||||||
|
- $ref: '#/components/schemas/Animal'
|
||||||
|
- properties:
|
||||||
|
declawed:
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
Animal:
|
||||||
|
discriminator:
|
||||||
|
propertyName: className
|
||||||
properties:
|
properties:
|
||||||
enum_string:
|
className:
|
||||||
enum:
|
|
||||||
- UPPER
|
|
||||||
- lower
|
|
||||||
- ""
|
|
||||||
type: string
|
type: string
|
||||||
enum_string_required:
|
color:
|
||||||
enum:
|
default: red
|
||||||
- UPPER
|
|
||||||
- lower
|
|
||||||
- ""
|
|
||||||
type: string
|
type: string
|
||||||
enum_integer:
|
|
||||||
enum:
|
|
||||||
- 1
|
|
||||||
- -1
|
|
||||||
format: int32
|
|
||||||
type: integer
|
|
||||||
enum_number:
|
|
||||||
enum:
|
|
||||||
- 1.1
|
|
||||||
- -1.2
|
|
||||||
format: double
|
|
||||||
type: number
|
|
||||||
outerEnum:
|
|
||||||
$ref: '#/components/schemas/OuterEnum'
|
|
||||||
required:
|
required:
|
||||||
- enum_string_required
|
- className
|
||||||
type: object
|
|
||||||
Order:
|
|
||||||
example:
|
|
||||||
petId: 6
|
|
||||||
quantity: 1
|
|
||||||
id: 0
|
|
||||||
shipDate: 2000-01-23T04:56:07.000+00:00
|
|
||||||
complete: false
|
|
||||||
status: placed
|
|
||||||
properties:
|
|
||||||
id:
|
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
petId:
|
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
quantity:
|
|
||||||
format: int32
|
|
||||||
type: integer
|
|
||||||
shipDate:
|
|
||||||
format: date-time
|
|
||||||
type: string
|
|
||||||
status:
|
|
||||||
description: Order Status
|
|
||||||
enum:
|
|
||||||
- placed
|
|
||||||
- approved
|
|
||||||
- delivered
|
|
||||||
type: string
|
|
||||||
complete:
|
|
||||||
default: false
|
|
||||||
type: boolean
|
|
||||||
type: object
|
|
||||||
xml:
|
|
||||||
name: Order
|
|
||||||
AdditionalPropertiesClass:
|
|
||||||
properties:
|
|
||||||
map_property:
|
|
||||||
additionalProperties:
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
map_of_map_property:
|
|
||||||
additionalProperties:
|
|
||||||
additionalProperties:
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
type: object
|
|
||||||
type: object
|
|
||||||
$special[model.name]:
|
|
||||||
properties:
|
|
||||||
$special[property.name]:
|
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
type: object
|
|
||||||
xml:
|
|
||||||
name: $special[model.name]
|
|
||||||
Return:
|
|
||||||
description: Model for testing reserved words
|
|
||||||
properties:
|
|
||||||
return:
|
|
||||||
format: int32
|
|
||||||
type: integer
|
|
||||||
type: object
|
|
||||||
xml:
|
|
||||||
name: Return
|
|
||||||
ReadOnlyFirst:
|
|
||||||
properties:
|
|
||||||
bar:
|
|
||||||
readOnly: true
|
|
||||||
type: string
|
|
||||||
baz:
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
ArrayOfArrayOfNumberOnly:
|
|
||||||
properties:
|
|
||||||
ArrayArrayNumber:
|
|
||||||
items:
|
|
||||||
items:
|
|
||||||
type: number
|
|
||||||
type: array
|
|
||||||
type: array
|
|
||||||
type: object
|
|
||||||
OuterEnum:
|
|
||||||
enum:
|
|
||||||
- placed
|
|
||||||
- approved
|
|
||||||
- delivered
|
|
||||||
type: string
|
|
||||||
ArrayTest:
|
|
||||||
properties:
|
|
||||||
array_of_string:
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
array_array_of_integer:
|
|
||||||
items:
|
|
||||||
items:
|
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
type: array
|
|
||||||
type: array
|
|
||||||
array_array_of_model:
|
|
||||||
items:
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/ReadOnlyFirst'
|
|
||||||
type: array
|
|
||||||
type: array
|
|
||||||
type: object
|
|
||||||
OuterComposite:
|
|
||||||
example:
|
|
||||||
my_string: my_string
|
|
||||||
my_number: 0.80082819046101150206595775671303272247314453125
|
|
||||||
my_boolean: true
|
|
||||||
properties:
|
|
||||||
my_number:
|
|
||||||
type: number
|
|
||||||
my_string:
|
|
||||||
type: string
|
|
||||||
my_boolean:
|
|
||||||
type: boolean
|
|
||||||
x-codegen-body-parameter-name: boolean_post_body
|
|
||||||
type: object
|
type: object
|
||||||
|
AnimalFarm:
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/Animal'
|
||||||
|
type: array
|
||||||
format_test:
|
format_test:
|
||||||
properties:
|
properties:
|
||||||
integer:
|
integer:
|
||||||
@@ -1453,70 +1384,116 @@ components:
|
|||||||
- number
|
- number
|
||||||
- password
|
- password
|
||||||
type: object
|
type: object
|
||||||
EnumArrays:
|
EnumClass:
|
||||||
properties:
|
default: -efg
|
||||||
just_symbol:
|
enum:
|
||||||
enum:
|
- _abc
|
||||||
- '>='
|
- -efg
|
||||||
- $
|
- (xyz)
|
||||||
type: string
|
|
||||||
array_enum:
|
|
||||||
items:
|
|
||||||
enum:
|
|
||||||
- fish
|
|
||||||
- crab
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
type: object
|
|
||||||
OuterString:
|
|
||||||
type: string
|
type: string
|
||||||
ClassModel:
|
Enum_Test:
|
||||||
description: Model for testing model with "_class" property
|
|
||||||
properties:
|
properties:
|
||||||
_class:
|
enum_string:
|
||||||
|
enum:
|
||||||
|
- UPPER
|
||||||
|
- lower
|
||||||
|
- ""
|
||||||
type: string
|
type: string
|
||||||
type: object
|
enum_string_required:
|
||||||
OuterBoolean:
|
enum:
|
||||||
type: boolean
|
- UPPER
|
||||||
x-codegen-body-parameter-name: boolean_post_body
|
- lower
|
||||||
FileSchemaTestClass:
|
- ""
|
||||||
example:
|
|
||||||
file:
|
|
||||||
sourceURI: sourceURI
|
|
||||||
files:
|
|
||||||
- sourceURI: sourceURI
|
|
||||||
- sourceURI: sourceURI
|
|
||||||
properties:
|
|
||||||
file:
|
|
||||||
$ref: '#/components/schemas/File'
|
|
||||||
files:
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/File'
|
|
||||||
type: array
|
|
||||||
type: object
|
|
||||||
Animal:
|
|
||||||
discriminator:
|
|
||||||
propertyName: className
|
|
||||||
properties:
|
|
||||||
className:
|
|
||||||
type: string
|
|
||||||
color:
|
|
||||||
default: red
|
|
||||||
type: string
|
type: string
|
||||||
|
enum_integer:
|
||||||
|
enum:
|
||||||
|
- 1
|
||||||
|
- -1
|
||||||
|
format: int32
|
||||||
|
type: integer
|
||||||
|
enum_number:
|
||||||
|
enum:
|
||||||
|
- 1.1
|
||||||
|
- -1.2
|
||||||
|
format: double
|
||||||
|
type: number
|
||||||
|
outerEnum:
|
||||||
|
$ref: '#/components/schemas/OuterEnum'
|
||||||
required:
|
required:
|
||||||
- className
|
- enum_string_required
|
||||||
type: object
|
type: object
|
||||||
StringBooleanMap:
|
AdditionalPropertiesClass:
|
||||||
additionalProperties:
|
properties:
|
||||||
type: boolean
|
map_property:
|
||||||
|
additionalProperties:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
map_of_map_property:
|
||||||
|
additionalProperties:
|
||||||
|
additionalProperties:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
MixedPropertiesAndAdditionalPropertiesClass:
|
||||||
|
properties:
|
||||||
|
uuid:
|
||||||
|
format: uuid
|
||||||
|
type: string
|
||||||
|
dateTime:
|
||||||
|
format: date-time
|
||||||
|
type: string
|
||||||
|
map:
|
||||||
|
additionalProperties:
|
||||||
|
$ref: '#/components/schemas/Animal'
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
List:
|
||||||
|
properties:
|
||||||
|
123-list:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
Client:
|
||||||
|
example:
|
||||||
|
client: client
|
||||||
|
properties:
|
||||||
|
client:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
ReadOnlyFirst:
|
||||||
|
properties:
|
||||||
|
bar:
|
||||||
|
readOnly: true
|
||||||
|
type: string
|
||||||
|
baz:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
hasOnlyReadOnly:
|
||||||
|
properties:
|
||||||
|
bar:
|
||||||
|
readOnly: true
|
||||||
|
type: string
|
||||||
|
foo:
|
||||||
|
readOnly: true
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
Capitalization:
|
||||||
|
properties:
|
||||||
|
smallCamel:
|
||||||
|
type: string
|
||||||
|
CapitalCamel:
|
||||||
|
type: string
|
||||||
|
small_Snake:
|
||||||
|
type: string
|
||||||
|
Capital_Snake:
|
||||||
|
type: string
|
||||||
|
SCA_ETH_Flow_Points:
|
||||||
|
type: string
|
||||||
|
ATT_NAME:
|
||||||
|
description: |
|
||||||
|
Name of the pet
|
||||||
|
type: string
|
||||||
type: object
|
type: object
|
||||||
Cat:
|
|
||||||
allOf:
|
|
||||||
- $ref: '#/components/schemas/Animal'
|
|
||||||
- properties:
|
|
||||||
declawed:
|
|
||||||
type: boolean
|
|
||||||
type: object
|
|
||||||
MapTest:
|
MapTest:
|
||||||
properties:
|
properties:
|
||||||
map_map_of_string:
|
map_map_of_string:
|
||||||
@@ -1541,23 +1518,108 @@ components:
|
|||||||
type: boolean
|
type: boolean
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
Tag:
|
ArrayTest:
|
||||||
example:
|
|
||||||
name: name
|
|
||||||
id: 1
|
|
||||||
properties:
|
properties:
|
||||||
id:
|
array_of_string:
|
||||||
format: int64
|
items:
|
||||||
type: integer
|
type: string
|
||||||
name:
|
type: array
|
||||||
type: string
|
array_array_of_integer:
|
||||||
|
items:
|
||||||
|
items:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
type: array
|
||||||
|
type: array
|
||||||
|
array_array_of_model:
|
||||||
|
items:
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/ReadOnlyFirst'
|
||||||
|
type: array
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
NumberOnly:
|
||||||
|
properties:
|
||||||
|
JustNumber:
|
||||||
|
type: number
|
||||||
|
type: object
|
||||||
|
ArrayOfNumberOnly:
|
||||||
|
properties:
|
||||||
|
ArrayNumber:
|
||||||
|
items:
|
||||||
|
type: number
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
ArrayOfArrayOfNumberOnly:
|
||||||
|
properties:
|
||||||
|
ArrayArrayNumber:
|
||||||
|
items:
|
||||||
|
items:
|
||||||
|
type: number
|
||||||
|
type: array
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
EnumArrays:
|
||||||
|
properties:
|
||||||
|
just_symbol:
|
||||||
|
enum:
|
||||||
|
- '>='
|
||||||
|
- $
|
||||||
|
type: string
|
||||||
|
array_enum:
|
||||||
|
items:
|
||||||
|
enum:
|
||||||
|
- fish
|
||||||
|
- crab
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
OuterEnum:
|
||||||
|
enum:
|
||||||
|
- placed
|
||||||
|
- approved
|
||||||
|
- delivered
|
||||||
|
type: string
|
||||||
|
OuterComposite:
|
||||||
|
example:
|
||||||
|
my_string: my_string
|
||||||
|
my_number: 0.80082819046101150206595775671303272247314453125
|
||||||
|
my_boolean: true
|
||||||
|
properties:
|
||||||
|
my_number:
|
||||||
|
type: number
|
||||||
|
my_string:
|
||||||
|
type: string
|
||||||
|
my_boolean:
|
||||||
|
type: boolean
|
||||||
|
x-codegen-body-parameter-name: boolean_post_body
|
||||||
|
type: object
|
||||||
|
OuterNumber:
|
||||||
|
type: number
|
||||||
|
OuterString:
|
||||||
|
type: string
|
||||||
|
OuterBoolean:
|
||||||
|
type: boolean
|
||||||
|
x-codegen-body-parameter-name: boolean_post_body
|
||||||
|
StringBooleanMap:
|
||||||
|
additionalProperties:
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
FileSchemaTestClass:
|
||||||
|
example:
|
||||||
|
file:
|
||||||
|
sourceURI: sourceURI
|
||||||
|
files:
|
||||||
|
- sourceURI: sourceURI
|
||||||
|
- sourceURI: sourceURI
|
||||||
|
properties:
|
||||||
|
file:
|
||||||
|
$ref: '#/components/schemas/File'
|
||||||
|
files:
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/File'
|
||||||
|
type: array
|
||||||
type: object
|
type: object
|
||||||
xml:
|
|
||||||
name: Tag
|
|
||||||
AnimalFarm:
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/Animal'
|
|
||||||
type: array
|
|
||||||
File:
|
File:
|
||||||
description: Must be named `File` for test.
|
description: Must be named `File` for test.
|
||||||
example:
|
example:
|
||||||
@@ -1567,68 +1629,6 @@ components:
|
|||||||
description: Test capitalization
|
description: Test capitalization
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
Pet:
|
|
||||||
example:
|
|
||||||
photoUrls:
|
|
||||||
- photoUrls
|
|
||||||
- photoUrls
|
|
||||||
name: doggie
|
|
||||||
id: 0
|
|
||||||
category:
|
|
||||||
name: default-name
|
|
||||||
id: 6
|
|
||||||
tags:
|
|
||||||
- name: name
|
|
||||||
id: 1
|
|
||||||
- name: name
|
|
||||||
id: 1
|
|
||||||
status: available
|
|
||||||
properties:
|
|
||||||
id:
|
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
x-is-unique: true
|
|
||||||
category:
|
|
||||||
$ref: '#/components/schemas/Category'
|
|
||||||
name:
|
|
||||||
example: doggie
|
|
||||||
type: string
|
|
||||||
photoUrls:
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
xml:
|
|
||||||
name: photoUrl
|
|
||||||
wrapped: true
|
|
||||||
tags:
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/Tag'
|
|
||||||
type: array
|
|
||||||
xml:
|
|
||||||
name: tag
|
|
||||||
wrapped: true
|
|
||||||
status:
|
|
||||||
description: pet status in the store
|
|
||||||
enum:
|
|
||||||
- available
|
|
||||||
- pending
|
|
||||||
- sold
|
|
||||||
type: string
|
|
||||||
required:
|
|
||||||
- name
|
|
||||||
- photoUrls
|
|
||||||
type: object
|
|
||||||
xml:
|
|
||||||
name: Pet
|
|
||||||
hasOnlyReadOnly:
|
|
||||||
properties:
|
|
||||||
bar:
|
|
||||||
readOnly: true
|
|
||||||
type: string
|
|
||||||
foo:
|
|
||||||
readOnly: true
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
@@ -1638,9 +1638,6 @@ components:
|
|||||||
write:pets: modify pets in your account
|
write:pets: modify pets in your account
|
||||||
read:pets: read your pets
|
read:pets: read your pets
|
||||||
type: oauth2
|
type: oauth2
|
||||||
http_basic_test:
|
|
||||||
scheme: basic
|
|
||||||
type: http
|
|
||||||
api_key:
|
api_key:
|
||||||
in: header
|
in: header
|
||||||
name: api_key
|
name: api_key
|
||||||
@@ -1649,3 +1646,6 @@ components:
|
|||||||
in: query
|
in: query
|
||||||
name: api_key_query
|
name: api_key_query
|
||||||
type: apiKey
|
type: apiKey
|
||||||
|
http_basic_test:
|
||||||
|
scheme: basic
|
||||||
|
type: http
|
||||||
|
|||||||
@@ -1148,6 +1148,40 @@ paths:
|
|||||||
- tag: pet
|
- tag: pet
|
||||||
components:
|
components:
|
||||||
schemas:
|
schemas:
|
||||||
|
Order:
|
||||||
|
example:
|
||||||
|
petId: 6
|
||||||
|
quantity: 1
|
||||||
|
id: 0
|
||||||
|
shipDate: 2000-01-23T04:56:07.000+00:00
|
||||||
|
complete: false
|
||||||
|
status: placed
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
petId:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
quantity:
|
||||||
|
format: int32
|
||||||
|
type: integer
|
||||||
|
shipDate:
|
||||||
|
format: date-time
|
||||||
|
type: string
|
||||||
|
status:
|
||||||
|
description: Order Status
|
||||||
|
enum:
|
||||||
|
- placed
|
||||||
|
- approved
|
||||||
|
- delivered
|
||||||
|
type: string
|
||||||
|
complete:
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
xml:
|
||||||
|
name: Order
|
||||||
Category:
|
Category:
|
||||||
example:
|
example:
|
||||||
name: default-name
|
name: default-name
|
||||||
@@ -1198,45 +1232,72 @@ components:
|
|||||||
type: object
|
type: object
|
||||||
xml:
|
xml:
|
||||||
name: User
|
name: User
|
||||||
OuterNumber:
|
Tag:
|
||||||
type: number
|
example:
|
||||||
ArrayOfNumberOnly:
|
name: name
|
||||||
|
id: 1
|
||||||
properties:
|
properties:
|
||||||
ArrayNumber:
|
id:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
xml:
|
||||||
|
name: Tag
|
||||||
|
Pet:
|
||||||
|
example:
|
||||||
|
photoUrls:
|
||||||
|
- photoUrls
|
||||||
|
- photoUrls
|
||||||
|
name: doggie
|
||||||
|
id: 0
|
||||||
|
category:
|
||||||
|
name: default-name
|
||||||
|
id: 6
|
||||||
|
tags:
|
||||||
|
- name: name
|
||||||
|
id: 1
|
||||||
|
- name: name
|
||||||
|
id: 1
|
||||||
|
status: available
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
x-is-unique: true
|
||||||
|
category:
|
||||||
|
$ref: '#/components/schemas/Category'
|
||||||
|
name:
|
||||||
|
example: doggie
|
||||||
|
type: string
|
||||||
|
photoUrls:
|
||||||
items:
|
items:
|
||||||
type: number
|
type: string
|
||||||
type: array
|
type: array
|
||||||
|
xml:
|
||||||
|
name: photoUrl
|
||||||
|
wrapped: true
|
||||||
|
tags:
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/Tag'
|
||||||
|
type: array
|
||||||
|
xml:
|
||||||
|
name: tag
|
||||||
|
wrapped: true
|
||||||
|
status:
|
||||||
|
description: pet status in the store
|
||||||
|
enum:
|
||||||
|
- available
|
||||||
|
- pending
|
||||||
|
- sold
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- name
|
||||||
|
- photoUrls
|
||||||
type: object
|
type: object
|
||||||
Capitalization:
|
xml:
|
||||||
properties:
|
name: Pet
|
||||||
smallCamel:
|
|
||||||
type: string
|
|
||||||
CapitalCamel:
|
|
||||||
type: string
|
|
||||||
small_Snake:
|
|
||||||
type: string
|
|
||||||
Capital_Snake:
|
|
||||||
type: string
|
|
||||||
SCA_ETH_Flow_Points:
|
|
||||||
type: string
|
|
||||||
ATT_NAME:
|
|
||||||
description: |
|
|
||||||
Name of the pet
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
MixedPropertiesAndAdditionalPropertiesClass:
|
|
||||||
properties:
|
|
||||||
uuid:
|
|
||||||
format: uuid
|
|
||||||
type: string
|
|
||||||
dateTime:
|
|
||||||
format: date-time
|
|
||||||
type: string
|
|
||||||
map:
|
|
||||||
additionalProperties:
|
|
||||||
$ref: '#/components/schemas/Animal'
|
|
||||||
type: object
|
|
||||||
type: object
|
|
||||||
ApiResponse:
|
ApiResponse:
|
||||||
example:
|
example:
|
||||||
code: 0
|
code: 0
|
||||||
@@ -1251,6 +1312,23 @@ components:
|
|||||||
message:
|
message:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
$special[model.name]:
|
||||||
|
properties:
|
||||||
|
$special[property.name]:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
type: object
|
||||||
|
xml:
|
||||||
|
name: $special[model.name]
|
||||||
|
Return:
|
||||||
|
description: Model for testing reserved words
|
||||||
|
properties:
|
||||||
|
return:
|
||||||
|
format: int32
|
||||||
|
type: integer
|
||||||
|
type: object
|
||||||
|
xml:
|
||||||
|
name: Return
|
||||||
Name:
|
Name:
|
||||||
description: Model for testing model name same as property name
|
description: Model for testing model name same as property name
|
||||||
properties:
|
properties:
|
||||||
@@ -1271,25 +1349,6 @@ components:
|
|||||||
type: object
|
type: object
|
||||||
xml:
|
xml:
|
||||||
name: Name
|
name: Name
|
||||||
EnumClass:
|
|
||||||
default: -efg
|
|
||||||
enum:
|
|
||||||
- _abc
|
|
||||||
- -efg
|
|
||||||
- (xyz)
|
|
||||||
type: string
|
|
||||||
List:
|
|
||||||
example:
|
|
||||||
123-list: 123-list
|
|
||||||
properties:
|
|
||||||
123-list:
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
NumberOnly:
|
|
||||||
properties:
|
|
||||||
JustNumber:
|
|
||||||
type: number
|
|
||||||
type: object
|
|
||||||
200_response:
|
200_response:
|
||||||
description: Model for testing model name starting with number
|
description: Model for testing model name starting with number
|
||||||
properties:
|
properties:
|
||||||
@@ -1301,11 +1360,10 @@ components:
|
|||||||
type: object
|
type: object
|
||||||
xml:
|
xml:
|
||||||
name: Name
|
name: Name
|
||||||
Client:
|
ClassModel:
|
||||||
example:
|
description: Model for testing model with "_class" property
|
||||||
client: client
|
|
||||||
properties:
|
properties:
|
||||||
client:
|
_class:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
Dog:
|
Dog:
|
||||||
@@ -1315,158 +1373,29 @@ components:
|
|||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
Enum_Test:
|
Cat:
|
||||||
|
allOf:
|
||||||
|
- $ref: '#/components/schemas/Animal'
|
||||||
|
- properties:
|
||||||
|
declawed:
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
Animal:
|
||||||
|
discriminator:
|
||||||
|
propertyName: className
|
||||||
properties:
|
properties:
|
||||||
enum_string:
|
className:
|
||||||
enum:
|
|
||||||
- UPPER
|
|
||||||
- lower
|
|
||||||
- ""
|
|
||||||
type: string
|
type: string
|
||||||
enum_string_required:
|
color:
|
||||||
enum:
|
default: red
|
||||||
- UPPER
|
|
||||||
- lower
|
|
||||||
- ""
|
|
||||||
type: string
|
type: string
|
||||||
enum_integer:
|
|
||||||
enum:
|
|
||||||
- 1
|
|
||||||
- -1
|
|
||||||
format: int32
|
|
||||||
type: integer
|
|
||||||
enum_number:
|
|
||||||
enum:
|
|
||||||
- 1.1
|
|
||||||
- -1.2
|
|
||||||
format: double
|
|
||||||
type: number
|
|
||||||
outerEnum:
|
|
||||||
$ref: '#/components/schemas/OuterEnum'
|
|
||||||
required:
|
required:
|
||||||
- enum_string_required
|
- className
|
||||||
type: object
|
|
||||||
Order:
|
|
||||||
example:
|
|
||||||
petId: 6
|
|
||||||
quantity: 1
|
|
||||||
id: 0
|
|
||||||
shipDate: 2000-01-23T04:56:07.000+00:00
|
|
||||||
complete: false
|
|
||||||
status: placed
|
|
||||||
properties:
|
|
||||||
id:
|
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
petId:
|
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
quantity:
|
|
||||||
format: int32
|
|
||||||
type: integer
|
|
||||||
shipDate:
|
|
||||||
format: date-time
|
|
||||||
type: string
|
|
||||||
status:
|
|
||||||
description: Order Status
|
|
||||||
enum:
|
|
||||||
- placed
|
|
||||||
- approved
|
|
||||||
- delivered
|
|
||||||
type: string
|
|
||||||
complete:
|
|
||||||
default: false
|
|
||||||
type: boolean
|
|
||||||
type: object
|
|
||||||
xml:
|
|
||||||
name: Order
|
|
||||||
AdditionalPropertiesClass:
|
|
||||||
properties:
|
|
||||||
map_property:
|
|
||||||
additionalProperties:
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
map_of_map_property:
|
|
||||||
additionalProperties:
|
|
||||||
additionalProperties:
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
type: object
|
|
||||||
type: object
|
|
||||||
$special[model.name]:
|
|
||||||
properties:
|
|
||||||
$special[property.name]:
|
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
type: object
|
|
||||||
xml:
|
|
||||||
name: $special[model.name]
|
|
||||||
Return:
|
|
||||||
description: Model for testing reserved words
|
|
||||||
properties:
|
|
||||||
return:
|
|
||||||
format: int32
|
|
||||||
type: integer
|
|
||||||
type: object
|
|
||||||
xml:
|
|
||||||
name: Return
|
|
||||||
ReadOnlyFirst:
|
|
||||||
properties:
|
|
||||||
bar:
|
|
||||||
readOnly: true
|
|
||||||
type: string
|
|
||||||
baz:
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
ArrayOfArrayOfNumberOnly:
|
|
||||||
properties:
|
|
||||||
ArrayArrayNumber:
|
|
||||||
items:
|
|
||||||
items:
|
|
||||||
type: number
|
|
||||||
type: array
|
|
||||||
type: array
|
|
||||||
type: object
|
|
||||||
OuterEnum:
|
|
||||||
enum:
|
|
||||||
- placed
|
|
||||||
- approved
|
|
||||||
- delivered
|
|
||||||
type: string
|
|
||||||
ArrayTest:
|
|
||||||
properties:
|
|
||||||
array_of_string:
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
array_array_of_integer:
|
|
||||||
items:
|
|
||||||
items:
|
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
type: array
|
|
||||||
type: array
|
|
||||||
array_array_of_model:
|
|
||||||
items:
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/ReadOnlyFirst'
|
|
||||||
type: array
|
|
||||||
type: array
|
|
||||||
type: object
|
|
||||||
OuterComposite:
|
|
||||||
example:
|
|
||||||
my_string: my_string
|
|
||||||
my_number: 0.80082819046101150206595775671303272247314453125
|
|
||||||
my_boolean: true
|
|
||||||
properties:
|
|
||||||
my_number:
|
|
||||||
type: number
|
|
||||||
my_string:
|
|
||||||
type: string
|
|
||||||
my_boolean:
|
|
||||||
type: boolean
|
|
||||||
x-codegen-body-parameter-name: boolean_post_body
|
|
||||||
type: object
|
type: object
|
||||||
|
AnimalFarm:
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/Animal'
|
||||||
|
type: array
|
||||||
format_test:
|
format_test:
|
||||||
properties:
|
properties:
|
||||||
integer:
|
integer:
|
||||||
@@ -1525,70 +1454,118 @@ components:
|
|||||||
- number
|
- number
|
||||||
- password
|
- password
|
||||||
type: object
|
type: object
|
||||||
EnumArrays:
|
EnumClass:
|
||||||
properties:
|
default: -efg
|
||||||
just_symbol:
|
enum:
|
||||||
enum:
|
- _abc
|
||||||
- '>='
|
- -efg
|
||||||
- $
|
- (xyz)
|
||||||
type: string
|
|
||||||
array_enum:
|
|
||||||
items:
|
|
||||||
enum:
|
|
||||||
- fish
|
|
||||||
- crab
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
type: object
|
|
||||||
OuterString:
|
|
||||||
type: string
|
type: string
|
||||||
ClassModel:
|
Enum_Test:
|
||||||
description: Model for testing model with "_class" property
|
|
||||||
properties:
|
properties:
|
||||||
_class:
|
enum_string:
|
||||||
|
enum:
|
||||||
|
- UPPER
|
||||||
|
- lower
|
||||||
|
- ""
|
||||||
type: string
|
type: string
|
||||||
type: object
|
enum_string_required:
|
||||||
OuterBoolean:
|
enum:
|
||||||
type: boolean
|
- UPPER
|
||||||
x-codegen-body-parameter-name: boolean_post_body
|
- lower
|
||||||
FileSchemaTestClass:
|
- ""
|
||||||
example:
|
|
||||||
file:
|
|
||||||
sourceURI: sourceURI
|
|
||||||
files:
|
|
||||||
- sourceURI: sourceURI
|
|
||||||
- sourceURI: sourceURI
|
|
||||||
properties:
|
|
||||||
file:
|
|
||||||
$ref: '#/components/schemas/File'
|
|
||||||
files:
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/File'
|
|
||||||
type: array
|
|
||||||
type: object
|
|
||||||
Animal:
|
|
||||||
discriminator:
|
|
||||||
propertyName: className
|
|
||||||
properties:
|
|
||||||
className:
|
|
||||||
type: string
|
|
||||||
color:
|
|
||||||
default: red
|
|
||||||
type: string
|
type: string
|
||||||
|
enum_integer:
|
||||||
|
enum:
|
||||||
|
- 1
|
||||||
|
- -1
|
||||||
|
format: int32
|
||||||
|
type: integer
|
||||||
|
enum_number:
|
||||||
|
enum:
|
||||||
|
- 1.1
|
||||||
|
- -1.2
|
||||||
|
format: double
|
||||||
|
type: number
|
||||||
|
outerEnum:
|
||||||
|
$ref: '#/components/schemas/OuterEnum'
|
||||||
required:
|
required:
|
||||||
- className
|
- enum_string_required
|
||||||
type: object
|
type: object
|
||||||
StringBooleanMap:
|
AdditionalPropertiesClass:
|
||||||
additionalProperties:
|
properties:
|
||||||
type: boolean
|
map_property:
|
||||||
|
additionalProperties:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
map_of_map_property:
|
||||||
|
additionalProperties:
|
||||||
|
additionalProperties:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
MixedPropertiesAndAdditionalPropertiesClass:
|
||||||
|
properties:
|
||||||
|
uuid:
|
||||||
|
format: uuid
|
||||||
|
type: string
|
||||||
|
dateTime:
|
||||||
|
format: date-time
|
||||||
|
type: string
|
||||||
|
map:
|
||||||
|
additionalProperties:
|
||||||
|
$ref: '#/components/schemas/Animal'
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
List:
|
||||||
|
example:
|
||||||
|
123-list: 123-list
|
||||||
|
properties:
|
||||||
|
123-list:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
Client:
|
||||||
|
example:
|
||||||
|
client: client
|
||||||
|
properties:
|
||||||
|
client:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
ReadOnlyFirst:
|
||||||
|
properties:
|
||||||
|
bar:
|
||||||
|
readOnly: true
|
||||||
|
type: string
|
||||||
|
baz:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
hasOnlyReadOnly:
|
||||||
|
properties:
|
||||||
|
bar:
|
||||||
|
readOnly: true
|
||||||
|
type: string
|
||||||
|
foo:
|
||||||
|
readOnly: true
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
Capitalization:
|
||||||
|
properties:
|
||||||
|
smallCamel:
|
||||||
|
type: string
|
||||||
|
CapitalCamel:
|
||||||
|
type: string
|
||||||
|
small_Snake:
|
||||||
|
type: string
|
||||||
|
Capital_Snake:
|
||||||
|
type: string
|
||||||
|
SCA_ETH_Flow_Points:
|
||||||
|
type: string
|
||||||
|
ATT_NAME:
|
||||||
|
description: |
|
||||||
|
Name of the pet
|
||||||
|
type: string
|
||||||
type: object
|
type: object
|
||||||
Cat:
|
|
||||||
allOf:
|
|
||||||
- $ref: '#/components/schemas/Animal'
|
|
||||||
- properties:
|
|
||||||
declawed:
|
|
||||||
type: boolean
|
|
||||||
type: object
|
|
||||||
MapTest:
|
MapTest:
|
||||||
properties:
|
properties:
|
||||||
map_map_of_string:
|
map_map_of_string:
|
||||||
@@ -1613,23 +1590,108 @@ components:
|
|||||||
type: boolean
|
type: boolean
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
Tag:
|
ArrayTest:
|
||||||
example:
|
|
||||||
name: name
|
|
||||||
id: 1
|
|
||||||
properties:
|
properties:
|
||||||
id:
|
array_of_string:
|
||||||
format: int64
|
items:
|
||||||
type: integer
|
type: string
|
||||||
name:
|
type: array
|
||||||
type: string
|
array_array_of_integer:
|
||||||
|
items:
|
||||||
|
items:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
type: array
|
||||||
|
type: array
|
||||||
|
array_array_of_model:
|
||||||
|
items:
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/ReadOnlyFirst'
|
||||||
|
type: array
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
NumberOnly:
|
||||||
|
properties:
|
||||||
|
JustNumber:
|
||||||
|
type: number
|
||||||
|
type: object
|
||||||
|
ArrayOfNumberOnly:
|
||||||
|
properties:
|
||||||
|
ArrayNumber:
|
||||||
|
items:
|
||||||
|
type: number
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
ArrayOfArrayOfNumberOnly:
|
||||||
|
properties:
|
||||||
|
ArrayArrayNumber:
|
||||||
|
items:
|
||||||
|
items:
|
||||||
|
type: number
|
||||||
|
type: array
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
EnumArrays:
|
||||||
|
properties:
|
||||||
|
just_symbol:
|
||||||
|
enum:
|
||||||
|
- '>='
|
||||||
|
- $
|
||||||
|
type: string
|
||||||
|
array_enum:
|
||||||
|
items:
|
||||||
|
enum:
|
||||||
|
- fish
|
||||||
|
- crab
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
OuterEnum:
|
||||||
|
enum:
|
||||||
|
- placed
|
||||||
|
- approved
|
||||||
|
- delivered
|
||||||
|
type: string
|
||||||
|
OuterComposite:
|
||||||
|
example:
|
||||||
|
my_string: my_string
|
||||||
|
my_number: 0.80082819046101150206595775671303272247314453125
|
||||||
|
my_boolean: true
|
||||||
|
properties:
|
||||||
|
my_number:
|
||||||
|
type: number
|
||||||
|
my_string:
|
||||||
|
type: string
|
||||||
|
my_boolean:
|
||||||
|
type: boolean
|
||||||
|
x-codegen-body-parameter-name: boolean_post_body
|
||||||
|
type: object
|
||||||
|
OuterNumber:
|
||||||
|
type: number
|
||||||
|
OuterString:
|
||||||
|
type: string
|
||||||
|
OuterBoolean:
|
||||||
|
type: boolean
|
||||||
|
x-codegen-body-parameter-name: boolean_post_body
|
||||||
|
StringBooleanMap:
|
||||||
|
additionalProperties:
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
FileSchemaTestClass:
|
||||||
|
example:
|
||||||
|
file:
|
||||||
|
sourceURI: sourceURI
|
||||||
|
files:
|
||||||
|
- sourceURI: sourceURI
|
||||||
|
- sourceURI: sourceURI
|
||||||
|
properties:
|
||||||
|
file:
|
||||||
|
$ref: '#/components/schemas/File'
|
||||||
|
files:
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/File'
|
||||||
|
type: array
|
||||||
type: object
|
type: object
|
||||||
xml:
|
|
||||||
name: Tag
|
|
||||||
AnimalFarm:
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/Animal'
|
|
||||||
type: array
|
|
||||||
File:
|
File:
|
||||||
description: Must be named `File` for test.
|
description: Must be named `File` for test.
|
||||||
example:
|
example:
|
||||||
@@ -1639,68 +1701,6 @@ components:
|
|||||||
description: Test capitalization
|
description: Test capitalization
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
Pet:
|
|
||||||
example:
|
|
||||||
photoUrls:
|
|
||||||
- photoUrls
|
|
||||||
- photoUrls
|
|
||||||
name: doggie
|
|
||||||
id: 0
|
|
||||||
category:
|
|
||||||
name: default-name
|
|
||||||
id: 6
|
|
||||||
tags:
|
|
||||||
- name: name
|
|
||||||
id: 1
|
|
||||||
- name: name
|
|
||||||
id: 1
|
|
||||||
status: available
|
|
||||||
properties:
|
|
||||||
id:
|
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
x-is-unique: true
|
|
||||||
category:
|
|
||||||
$ref: '#/components/schemas/Category'
|
|
||||||
name:
|
|
||||||
example: doggie
|
|
||||||
type: string
|
|
||||||
photoUrls:
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
xml:
|
|
||||||
name: photoUrl
|
|
||||||
wrapped: true
|
|
||||||
tags:
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/Tag'
|
|
||||||
type: array
|
|
||||||
xml:
|
|
||||||
name: tag
|
|
||||||
wrapped: true
|
|
||||||
status:
|
|
||||||
description: pet status in the store
|
|
||||||
enum:
|
|
||||||
- available
|
|
||||||
- pending
|
|
||||||
- sold
|
|
||||||
type: string
|
|
||||||
required:
|
|
||||||
- name
|
|
||||||
- photoUrls
|
|
||||||
type: object
|
|
||||||
xml:
|
|
||||||
name: Pet
|
|
||||||
hasOnlyReadOnly:
|
|
||||||
properties:
|
|
||||||
bar:
|
|
||||||
readOnly: true
|
|
||||||
type: string
|
|
||||||
foo:
|
|
||||||
readOnly: true
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
@@ -1710,9 +1710,6 @@ components:
|
|||||||
write:pets: modify pets in your account
|
write:pets: modify pets in your account
|
||||||
read:pets: read your pets
|
read:pets: read your pets
|
||||||
type: oauth2
|
type: oauth2
|
||||||
http_basic_test:
|
|
||||||
scheme: basic
|
|
||||||
type: http
|
|
||||||
api_key:
|
api_key:
|
||||||
in: header
|
in: header
|
||||||
name: api_key
|
name: api_key
|
||||||
@@ -1721,3 +1718,6 @@ components:
|
|||||||
in: query
|
in: query
|
||||||
name: api_key_query
|
name: api_key_query
|
||||||
type: apiKey
|
type: apiKey
|
||||||
|
http_basic_test:
|
||||||
|
scheme: basic
|
||||||
|
type: http
|
||||||
|
|||||||
@@ -1148,6 +1148,40 @@ paths:
|
|||||||
- tag: pet
|
- tag: pet
|
||||||
components:
|
components:
|
||||||
schemas:
|
schemas:
|
||||||
|
Order:
|
||||||
|
example:
|
||||||
|
petId: 6
|
||||||
|
quantity: 1
|
||||||
|
id: 0
|
||||||
|
shipDate: 2000-01-23T04:56:07.000+00:00
|
||||||
|
complete: false
|
||||||
|
status: placed
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
petId:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
quantity:
|
||||||
|
format: int32
|
||||||
|
type: integer
|
||||||
|
shipDate:
|
||||||
|
format: date-time
|
||||||
|
type: string
|
||||||
|
status:
|
||||||
|
description: Order Status
|
||||||
|
enum:
|
||||||
|
- placed
|
||||||
|
- approved
|
||||||
|
- delivered
|
||||||
|
type: string
|
||||||
|
complete:
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
xml:
|
||||||
|
name: Order
|
||||||
Category:
|
Category:
|
||||||
example:
|
example:
|
||||||
name: default-name
|
name: default-name
|
||||||
@@ -1198,45 +1232,72 @@ components:
|
|||||||
type: object
|
type: object
|
||||||
xml:
|
xml:
|
||||||
name: User
|
name: User
|
||||||
OuterNumber:
|
Tag:
|
||||||
type: number
|
example:
|
||||||
ArrayOfNumberOnly:
|
name: name
|
||||||
|
id: 1
|
||||||
properties:
|
properties:
|
||||||
ArrayNumber:
|
id:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
xml:
|
||||||
|
name: Tag
|
||||||
|
Pet:
|
||||||
|
example:
|
||||||
|
photoUrls:
|
||||||
|
- photoUrls
|
||||||
|
- photoUrls
|
||||||
|
name: doggie
|
||||||
|
id: 0
|
||||||
|
category:
|
||||||
|
name: default-name
|
||||||
|
id: 6
|
||||||
|
tags:
|
||||||
|
- name: name
|
||||||
|
id: 1
|
||||||
|
- name: name
|
||||||
|
id: 1
|
||||||
|
status: available
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
x-is-unique: true
|
||||||
|
category:
|
||||||
|
$ref: '#/components/schemas/Category'
|
||||||
|
name:
|
||||||
|
example: doggie
|
||||||
|
type: string
|
||||||
|
photoUrls:
|
||||||
items:
|
items:
|
||||||
type: number
|
type: string
|
||||||
type: array
|
type: array
|
||||||
|
xml:
|
||||||
|
name: photoUrl
|
||||||
|
wrapped: true
|
||||||
|
tags:
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/Tag'
|
||||||
|
type: array
|
||||||
|
xml:
|
||||||
|
name: tag
|
||||||
|
wrapped: true
|
||||||
|
status:
|
||||||
|
description: pet status in the store
|
||||||
|
enum:
|
||||||
|
- available
|
||||||
|
- pending
|
||||||
|
- sold
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- name
|
||||||
|
- photoUrls
|
||||||
type: object
|
type: object
|
||||||
Capitalization:
|
xml:
|
||||||
properties:
|
name: Pet
|
||||||
smallCamel:
|
|
||||||
type: string
|
|
||||||
CapitalCamel:
|
|
||||||
type: string
|
|
||||||
small_Snake:
|
|
||||||
type: string
|
|
||||||
Capital_Snake:
|
|
||||||
type: string
|
|
||||||
SCA_ETH_Flow_Points:
|
|
||||||
type: string
|
|
||||||
ATT_NAME:
|
|
||||||
description: |
|
|
||||||
Name of the pet
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
MixedPropertiesAndAdditionalPropertiesClass:
|
|
||||||
properties:
|
|
||||||
uuid:
|
|
||||||
format: uuid
|
|
||||||
type: string
|
|
||||||
dateTime:
|
|
||||||
format: date-time
|
|
||||||
type: string
|
|
||||||
map:
|
|
||||||
additionalProperties:
|
|
||||||
$ref: '#/components/schemas/Animal'
|
|
||||||
type: object
|
|
||||||
type: object
|
|
||||||
ApiResponse:
|
ApiResponse:
|
||||||
example:
|
example:
|
||||||
code: 0
|
code: 0
|
||||||
@@ -1251,6 +1312,23 @@ components:
|
|||||||
message:
|
message:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
$special[model.name]:
|
||||||
|
properties:
|
||||||
|
$special[property.name]:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
type: object
|
||||||
|
xml:
|
||||||
|
name: $special[model.name]
|
||||||
|
Return:
|
||||||
|
description: Model for testing reserved words
|
||||||
|
properties:
|
||||||
|
return:
|
||||||
|
format: int32
|
||||||
|
type: integer
|
||||||
|
type: object
|
||||||
|
xml:
|
||||||
|
name: Return
|
||||||
Name:
|
Name:
|
||||||
description: Model for testing model name same as property name
|
description: Model for testing model name same as property name
|
||||||
properties:
|
properties:
|
||||||
@@ -1271,25 +1349,6 @@ components:
|
|||||||
type: object
|
type: object
|
||||||
xml:
|
xml:
|
||||||
name: Name
|
name: Name
|
||||||
EnumClass:
|
|
||||||
default: -efg
|
|
||||||
enum:
|
|
||||||
- _abc
|
|
||||||
- -efg
|
|
||||||
- (xyz)
|
|
||||||
type: string
|
|
||||||
List:
|
|
||||||
example:
|
|
||||||
123-list: 123-list
|
|
||||||
properties:
|
|
||||||
123-list:
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
NumberOnly:
|
|
||||||
properties:
|
|
||||||
JustNumber:
|
|
||||||
type: number
|
|
||||||
type: object
|
|
||||||
200_response:
|
200_response:
|
||||||
description: Model for testing model name starting with number
|
description: Model for testing model name starting with number
|
||||||
properties:
|
properties:
|
||||||
@@ -1301,11 +1360,10 @@ components:
|
|||||||
type: object
|
type: object
|
||||||
xml:
|
xml:
|
||||||
name: Name
|
name: Name
|
||||||
Client:
|
ClassModel:
|
||||||
example:
|
description: Model for testing model with "_class" property
|
||||||
client: client
|
|
||||||
properties:
|
properties:
|
||||||
client:
|
_class:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
Dog:
|
Dog:
|
||||||
@@ -1315,158 +1373,29 @@ components:
|
|||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
Enum_Test:
|
Cat:
|
||||||
|
allOf:
|
||||||
|
- $ref: '#/components/schemas/Animal'
|
||||||
|
- properties:
|
||||||
|
declawed:
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
Animal:
|
||||||
|
discriminator:
|
||||||
|
propertyName: className
|
||||||
properties:
|
properties:
|
||||||
enum_string:
|
className:
|
||||||
enum:
|
|
||||||
- UPPER
|
|
||||||
- lower
|
|
||||||
- ""
|
|
||||||
type: string
|
type: string
|
||||||
enum_string_required:
|
color:
|
||||||
enum:
|
default: red
|
||||||
- UPPER
|
|
||||||
- lower
|
|
||||||
- ""
|
|
||||||
type: string
|
type: string
|
||||||
enum_integer:
|
|
||||||
enum:
|
|
||||||
- 1
|
|
||||||
- -1
|
|
||||||
format: int32
|
|
||||||
type: integer
|
|
||||||
enum_number:
|
|
||||||
enum:
|
|
||||||
- 1.1
|
|
||||||
- -1.2
|
|
||||||
format: double
|
|
||||||
type: number
|
|
||||||
outerEnum:
|
|
||||||
$ref: '#/components/schemas/OuterEnum'
|
|
||||||
required:
|
required:
|
||||||
- enum_string_required
|
- className
|
||||||
type: object
|
|
||||||
Order:
|
|
||||||
example:
|
|
||||||
petId: 6
|
|
||||||
quantity: 1
|
|
||||||
id: 0
|
|
||||||
shipDate: 2000-01-23T04:56:07.000+00:00
|
|
||||||
complete: false
|
|
||||||
status: placed
|
|
||||||
properties:
|
|
||||||
id:
|
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
petId:
|
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
quantity:
|
|
||||||
format: int32
|
|
||||||
type: integer
|
|
||||||
shipDate:
|
|
||||||
format: date-time
|
|
||||||
type: string
|
|
||||||
status:
|
|
||||||
description: Order Status
|
|
||||||
enum:
|
|
||||||
- placed
|
|
||||||
- approved
|
|
||||||
- delivered
|
|
||||||
type: string
|
|
||||||
complete:
|
|
||||||
default: false
|
|
||||||
type: boolean
|
|
||||||
type: object
|
|
||||||
xml:
|
|
||||||
name: Order
|
|
||||||
AdditionalPropertiesClass:
|
|
||||||
properties:
|
|
||||||
map_property:
|
|
||||||
additionalProperties:
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
map_of_map_property:
|
|
||||||
additionalProperties:
|
|
||||||
additionalProperties:
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
type: object
|
|
||||||
type: object
|
|
||||||
$special[model.name]:
|
|
||||||
properties:
|
|
||||||
$special[property.name]:
|
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
type: object
|
|
||||||
xml:
|
|
||||||
name: $special[model.name]
|
|
||||||
Return:
|
|
||||||
description: Model for testing reserved words
|
|
||||||
properties:
|
|
||||||
return:
|
|
||||||
format: int32
|
|
||||||
type: integer
|
|
||||||
type: object
|
|
||||||
xml:
|
|
||||||
name: Return
|
|
||||||
ReadOnlyFirst:
|
|
||||||
properties:
|
|
||||||
bar:
|
|
||||||
readOnly: true
|
|
||||||
type: string
|
|
||||||
baz:
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
ArrayOfArrayOfNumberOnly:
|
|
||||||
properties:
|
|
||||||
ArrayArrayNumber:
|
|
||||||
items:
|
|
||||||
items:
|
|
||||||
type: number
|
|
||||||
type: array
|
|
||||||
type: array
|
|
||||||
type: object
|
|
||||||
OuterEnum:
|
|
||||||
enum:
|
|
||||||
- placed
|
|
||||||
- approved
|
|
||||||
- delivered
|
|
||||||
type: string
|
|
||||||
ArrayTest:
|
|
||||||
properties:
|
|
||||||
array_of_string:
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
array_array_of_integer:
|
|
||||||
items:
|
|
||||||
items:
|
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
type: array
|
|
||||||
type: array
|
|
||||||
array_array_of_model:
|
|
||||||
items:
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/ReadOnlyFirst'
|
|
||||||
type: array
|
|
||||||
type: array
|
|
||||||
type: object
|
|
||||||
OuterComposite:
|
|
||||||
example:
|
|
||||||
my_string: my_string
|
|
||||||
my_number: 0.80082819046101150206595775671303272247314453125
|
|
||||||
my_boolean: true
|
|
||||||
properties:
|
|
||||||
my_number:
|
|
||||||
type: number
|
|
||||||
my_string:
|
|
||||||
type: string
|
|
||||||
my_boolean:
|
|
||||||
type: boolean
|
|
||||||
x-codegen-body-parameter-name: boolean_post_body
|
|
||||||
type: object
|
type: object
|
||||||
|
AnimalFarm:
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/Animal'
|
||||||
|
type: array
|
||||||
format_test:
|
format_test:
|
||||||
properties:
|
properties:
|
||||||
integer:
|
integer:
|
||||||
@@ -1525,70 +1454,118 @@ components:
|
|||||||
- number
|
- number
|
||||||
- password
|
- password
|
||||||
type: object
|
type: object
|
||||||
EnumArrays:
|
EnumClass:
|
||||||
properties:
|
default: -efg
|
||||||
just_symbol:
|
enum:
|
||||||
enum:
|
- _abc
|
||||||
- '>='
|
- -efg
|
||||||
- $
|
- (xyz)
|
||||||
type: string
|
|
||||||
array_enum:
|
|
||||||
items:
|
|
||||||
enum:
|
|
||||||
- fish
|
|
||||||
- crab
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
type: object
|
|
||||||
OuterString:
|
|
||||||
type: string
|
type: string
|
||||||
ClassModel:
|
Enum_Test:
|
||||||
description: Model for testing model with "_class" property
|
|
||||||
properties:
|
properties:
|
||||||
_class:
|
enum_string:
|
||||||
|
enum:
|
||||||
|
- UPPER
|
||||||
|
- lower
|
||||||
|
- ""
|
||||||
type: string
|
type: string
|
||||||
type: object
|
enum_string_required:
|
||||||
OuterBoolean:
|
enum:
|
||||||
type: boolean
|
- UPPER
|
||||||
x-codegen-body-parameter-name: boolean_post_body
|
- lower
|
||||||
FileSchemaTestClass:
|
- ""
|
||||||
example:
|
|
||||||
file:
|
|
||||||
sourceURI: sourceURI
|
|
||||||
files:
|
|
||||||
- sourceURI: sourceURI
|
|
||||||
- sourceURI: sourceURI
|
|
||||||
properties:
|
|
||||||
file:
|
|
||||||
$ref: '#/components/schemas/File'
|
|
||||||
files:
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/File'
|
|
||||||
type: array
|
|
||||||
type: object
|
|
||||||
Animal:
|
|
||||||
discriminator:
|
|
||||||
propertyName: className
|
|
||||||
properties:
|
|
||||||
className:
|
|
||||||
type: string
|
|
||||||
color:
|
|
||||||
default: red
|
|
||||||
type: string
|
type: string
|
||||||
|
enum_integer:
|
||||||
|
enum:
|
||||||
|
- 1
|
||||||
|
- -1
|
||||||
|
format: int32
|
||||||
|
type: integer
|
||||||
|
enum_number:
|
||||||
|
enum:
|
||||||
|
- 1.1
|
||||||
|
- -1.2
|
||||||
|
format: double
|
||||||
|
type: number
|
||||||
|
outerEnum:
|
||||||
|
$ref: '#/components/schemas/OuterEnum'
|
||||||
required:
|
required:
|
||||||
- className
|
- enum_string_required
|
||||||
type: object
|
type: object
|
||||||
StringBooleanMap:
|
AdditionalPropertiesClass:
|
||||||
additionalProperties:
|
properties:
|
||||||
type: boolean
|
map_property:
|
||||||
|
additionalProperties:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
map_of_map_property:
|
||||||
|
additionalProperties:
|
||||||
|
additionalProperties:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
MixedPropertiesAndAdditionalPropertiesClass:
|
||||||
|
properties:
|
||||||
|
uuid:
|
||||||
|
format: uuid
|
||||||
|
type: string
|
||||||
|
dateTime:
|
||||||
|
format: date-time
|
||||||
|
type: string
|
||||||
|
map:
|
||||||
|
additionalProperties:
|
||||||
|
$ref: '#/components/schemas/Animal'
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
List:
|
||||||
|
example:
|
||||||
|
123-list: 123-list
|
||||||
|
properties:
|
||||||
|
123-list:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
Client:
|
||||||
|
example:
|
||||||
|
client: client
|
||||||
|
properties:
|
||||||
|
client:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
ReadOnlyFirst:
|
||||||
|
properties:
|
||||||
|
bar:
|
||||||
|
readOnly: true
|
||||||
|
type: string
|
||||||
|
baz:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
hasOnlyReadOnly:
|
||||||
|
properties:
|
||||||
|
bar:
|
||||||
|
readOnly: true
|
||||||
|
type: string
|
||||||
|
foo:
|
||||||
|
readOnly: true
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
Capitalization:
|
||||||
|
properties:
|
||||||
|
smallCamel:
|
||||||
|
type: string
|
||||||
|
CapitalCamel:
|
||||||
|
type: string
|
||||||
|
small_Snake:
|
||||||
|
type: string
|
||||||
|
Capital_Snake:
|
||||||
|
type: string
|
||||||
|
SCA_ETH_Flow_Points:
|
||||||
|
type: string
|
||||||
|
ATT_NAME:
|
||||||
|
description: |
|
||||||
|
Name of the pet
|
||||||
|
type: string
|
||||||
type: object
|
type: object
|
||||||
Cat:
|
|
||||||
allOf:
|
|
||||||
- $ref: '#/components/schemas/Animal'
|
|
||||||
- properties:
|
|
||||||
declawed:
|
|
||||||
type: boolean
|
|
||||||
type: object
|
|
||||||
MapTest:
|
MapTest:
|
||||||
properties:
|
properties:
|
||||||
map_map_of_string:
|
map_map_of_string:
|
||||||
@@ -1613,23 +1590,108 @@ components:
|
|||||||
type: boolean
|
type: boolean
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
Tag:
|
ArrayTest:
|
||||||
example:
|
|
||||||
name: name
|
|
||||||
id: 1
|
|
||||||
properties:
|
properties:
|
||||||
id:
|
array_of_string:
|
||||||
format: int64
|
items:
|
||||||
type: integer
|
type: string
|
||||||
name:
|
type: array
|
||||||
type: string
|
array_array_of_integer:
|
||||||
|
items:
|
||||||
|
items:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
type: array
|
||||||
|
type: array
|
||||||
|
array_array_of_model:
|
||||||
|
items:
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/ReadOnlyFirst'
|
||||||
|
type: array
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
NumberOnly:
|
||||||
|
properties:
|
||||||
|
JustNumber:
|
||||||
|
type: number
|
||||||
|
type: object
|
||||||
|
ArrayOfNumberOnly:
|
||||||
|
properties:
|
||||||
|
ArrayNumber:
|
||||||
|
items:
|
||||||
|
type: number
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
ArrayOfArrayOfNumberOnly:
|
||||||
|
properties:
|
||||||
|
ArrayArrayNumber:
|
||||||
|
items:
|
||||||
|
items:
|
||||||
|
type: number
|
||||||
|
type: array
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
EnumArrays:
|
||||||
|
properties:
|
||||||
|
just_symbol:
|
||||||
|
enum:
|
||||||
|
- '>='
|
||||||
|
- $
|
||||||
|
type: string
|
||||||
|
array_enum:
|
||||||
|
items:
|
||||||
|
enum:
|
||||||
|
- fish
|
||||||
|
- crab
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
OuterEnum:
|
||||||
|
enum:
|
||||||
|
- placed
|
||||||
|
- approved
|
||||||
|
- delivered
|
||||||
|
type: string
|
||||||
|
OuterComposite:
|
||||||
|
example:
|
||||||
|
my_string: my_string
|
||||||
|
my_number: 0.80082819046101150206595775671303272247314453125
|
||||||
|
my_boolean: true
|
||||||
|
properties:
|
||||||
|
my_number:
|
||||||
|
type: number
|
||||||
|
my_string:
|
||||||
|
type: string
|
||||||
|
my_boolean:
|
||||||
|
type: boolean
|
||||||
|
x-codegen-body-parameter-name: boolean_post_body
|
||||||
|
type: object
|
||||||
|
OuterNumber:
|
||||||
|
type: number
|
||||||
|
OuterString:
|
||||||
|
type: string
|
||||||
|
OuterBoolean:
|
||||||
|
type: boolean
|
||||||
|
x-codegen-body-parameter-name: boolean_post_body
|
||||||
|
StringBooleanMap:
|
||||||
|
additionalProperties:
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
FileSchemaTestClass:
|
||||||
|
example:
|
||||||
|
file:
|
||||||
|
sourceURI: sourceURI
|
||||||
|
files:
|
||||||
|
- sourceURI: sourceURI
|
||||||
|
- sourceURI: sourceURI
|
||||||
|
properties:
|
||||||
|
file:
|
||||||
|
$ref: '#/components/schemas/File'
|
||||||
|
files:
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/File'
|
||||||
|
type: array
|
||||||
type: object
|
type: object
|
||||||
xml:
|
|
||||||
name: Tag
|
|
||||||
AnimalFarm:
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/Animal'
|
|
||||||
type: array
|
|
||||||
File:
|
File:
|
||||||
description: Must be named `File` for test.
|
description: Must be named `File` for test.
|
||||||
example:
|
example:
|
||||||
@@ -1639,68 +1701,6 @@ components:
|
|||||||
description: Test capitalization
|
description: Test capitalization
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
Pet:
|
|
||||||
example:
|
|
||||||
photoUrls:
|
|
||||||
- photoUrls
|
|
||||||
- photoUrls
|
|
||||||
name: doggie
|
|
||||||
id: 0
|
|
||||||
category:
|
|
||||||
name: default-name
|
|
||||||
id: 6
|
|
||||||
tags:
|
|
||||||
- name: name
|
|
||||||
id: 1
|
|
||||||
- name: name
|
|
||||||
id: 1
|
|
||||||
status: available
|
|
||||||
properties:
|
|
||||||
id:
|
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
x-is-unique: true
|
|
||||||
category:
|
|
||||||
$ref: '#/components/schemas/Category'
|
|
||||||
name:
|
|
||||||
example: doggie
|
|
||||||
type: string
|
|
||||||
photoUrls:
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
xml:
|
|
||||||
name: photoUrl
|
|
||||||
wrapped: true
|
|
||||||
tags:
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/Tag'
|
|
||||||
type: array
|
|
||||||
xml:
|
|
||||||
name: tag
|
|
||||||
wrapped: true
|
|
||||||
status:
|
|
||||||
description: pet status in the store
|
|
||||||
enum:
|
|
||||||
- available
|
|
||||||
- pending
|
|
||||||
- sold
|
|
||||||
type: string
|
|
||||||
required:
|
|
||||||
- name
|
|
||||||
- photoUrls
|
|
||||||
type: object
|
|
||||||
xml:
|
|
||||||
name: Pet
|
|
||||||
hasOnlyReadOnly:
|
|
||||||
properties:
|
|
||||||
bar:
|
|
||||||
readOnly: true
|
|
||||||
type: string
|
|
||||||
foo:
|
|
||||||
readOnly: true
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
@@ -1710,9 +1710,6 @@ components:
|
|||||||
write:pets: modify pets in your account
|
write:pets: modify pets in your account
|
||||||
read:pets: read your pets
|
read:pets: read your pets
|
||||||
type: oauth2
|
type: oauth2
|
||||||
http_basic_test:
|
|
||||||
scheme: basic
|
|
||||||
type: http
|
|
||||||
api_key:
|
api_key:
|
||||||
in: header
|
in: header
|
||||||
name: api_key
|
name: api_key
|
||||||
@@ -1721,3 +1718,6 @@ components:
|
|||||||
in: query
|
in: query
|
||||||
name: api_key_query
|
name: api_key_query
|
||||||
type: apiKey
|
type: apiKey
|
||||||
|
http_basic_test:
|
||||||
|
scheme: basic
|
||||||
|
type: http
|
||||||
|
|||||||
@@ -966,6 +966,40 @@ paths:
|
|||||||
- $another-fake?
|
- $another-fake?
|
||||||
components:
|
components:
|
||||||
schemas:
|
schemas:
|
||||||
|
Order:
|
||||||
|
example:
|
||||||
|
petId: 6
|
||||||
|
quantity: 1
|
||||||
|
id: 0
|
||||||
|
shipDate: 2000-01-23T04:56:07.000+00:00
|
||||||
|
complete: false
|
||||||
|
status: placed
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
petId:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
quantity:
|
||||||
|
format: int32
|
||||||
|
type: integer
|
||||||
|
shipDate:
|
||||||
|
format: date-time
|
||||||
|
type: string
|
||||||
|
status:
|
||||||
|
description: Order Status
|
||||||
|
enum:
|
||||||
|
- placed
|
||||||
|
- approved
|
||||||
|
- delivered
|
||||||
|
type: string
|
||||||
|
complete:
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
xml:
|
||||||
|
name: Order
|
||||||
Category:
|
Category:
|
||||||
example:
|
example:
|
||||||
name: name
|
name: name
|
||||||
@@ -1013,45 +1047,72 @@ components:
|
|||||||
type: object
|
type: object
|
||||||
xml:
|
xml:
|
||||||
name: User
|
name: User
|
||||||
OuterNumber:
|
Tag:
|
||||||
type: number
|
example:
|
||||||
ArrayOfNumberOnly:
|
name: name
|
||||||
|
id: 1
|
||||||
properties:
|
properties:
|
||||||
ArrayNumber:
|
id:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
xml:
|
||||||
|
name: Tag
|
||||||
|
Pet:
|
||||||
|
example:
|
||||||
|
photoUrls:
|
||||||
|
- photoUrls
|
||||||
|
- photoUrls
|
||||||
|
name: doggie
|
||||||
|
id: 0
|
||||||
|
category:
|
||||||
|
name: name
|
||||||
|
id: 6
|
||||||
|
tags:
|
||||||
|
- name: name
|
||||||
|
id: 1
|
||||||
|
- name: name
|
||||||
|
id: 1
|
||||||
|
status: available
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
x-is-unique: true
|
||||||
|
category:
|
||||||
|
$ref: '#/components/schemas/Category'
|
||||||
|
name:
|
||||||
|
example: doggie
|
||||||
|
type: string
|
||||||
|
photoUrls:
|
||||||
items:
|
items:
|
||||||
type: number
|
type: string
|
||||||
type: array
|
type: array
|
||||||
|
xml:
|
||||||
|
name: photoUrl
|
||||||
|
wrapped: true
|
||||||
|
tags:
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/Tag'
|
||||||
|
type: array
|
||||||
|
xml:
|
||||||
|
name: tag
|
||||||
|
wrapped: true
|
||||||
|
status:
|
||||||
|
description: pet status in the store
|
||||||
|
enum:
|
||||||
|
- available
|
||||||
|
- pending
|
||||||
|
- sold
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- name
|
||||||
|
- photoUrls
|
||||||
type: object
|
type: object
|
||||||
Capitalization:
|
xml:
|
||||||
properties:
|
name: Pet
|
||||||
smallCamel:
|
|
||||||
type: string
|
|
||||||
CapitalCamel:
|
|
||||||
type: string
|
|
||||||
small_Snake:
|
|
||||||
type: string
|
|
||||||
Capital_Snake:
|
|
||||||
type: string
|
|
||||||
SCA_ETH_Flow_Points:
|
|
||||||
type: string
|
|
||||||
ATT_NAME:
|
|
||||||
description: |
|
|
||||||
Name of the pet
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
MixedPropertiesAndAdditionalPropertiesClass:
|
|
||||||
properties:
|
|
||||||
uuid:
|
|
||||||
format: uuid
|
|
||||||
type: string
|
|
||||||
dateTime:
|
|
||||||
format: date-time
|
|
||||||
type: string
|
|
||||||
map:
|
|
||||||
additionalProperties:
|
|
||||||
$ref: '#/components/schemas/Animal'
|
|
||||||
type: object
|
|
||||||
type: object
|
|
||||||
ApiResponse:
|
ApiResponse:
|
||||||
example:
|
example:
|
||||||
code: 0
|
code: 0
|
||||||
@@ -1066,6 +1127,23 @@ components:
|
|||||||
message:
|
message:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
$special[model.name]:
|
||||||
|
properties:
|
||||||
|
$special[property.name]:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
type: object
|
||||||
|
xml:
|
||||||
|
name: $special[model.name]
|
||||||
|
Return:
|
||||||
|
description: Model for testing reserved words
|
||||||
|
properties:
|
||||||
|
return:
|
||||||
|
format: int32
|
||||||
|
type: integer
|
||||||
|
type: object
|
||||||
|
xml:
|
||||||
|
name: Return
|
||||||
Name:
|
Name:
|
||||||
description: Model for testing model name same as property name
|
description: Model for testing model name same as property name
|
||||||
properties:
|
properties:
|
||||||
@@ -1086,23 +1164,6 @@ components:
|
|||||||
type: object
|
type: object
|
||||||
xml:
|
xml:
|
||||||
name: Name
|
name: Name
|
||||||
EnumClass:
|
|
||||||
default: -efg
|
|
||||||
enum:
|
|
||||||
- _abc
|
|
||||||
- -efg
|
|
||||||
- (xyz)
|
|
||||||
type: string
|
|
||||||
List:
|
|
||||||
properties:
|
|
||||||
123-list:
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
NumberOnly:
|
|
||||||
properties:
|
|
||||||
JustNumber:
|
|
||||||
type: number
|
|
||||||
type: object
|
|
||||||
200_response:
|
200_response:
|
||||||
description: Model for testing model name starting with number
|
description: Model for testing model name starting with number
|
||||||
properties:
|
properties:
|
||||||
@@ -1114,11 +1175,10 @@ components:
|
|||||||
type: object
|
type: object
|
||||||
xml:
|
xml:
|
||||||
name: Name
|
name: Name
|
||||||
Client:
|
ClassModel:
|
||||||
example:
|
description: Model for testing model with "_class" property
|
||||||
client: client
|
|
||||||
properties:
|
properties:
|
||||||
client:
|
_class:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
Dog:
|
Dog:
|
||||||
@@ -1128,165 +1188,29 @@ components:
|
|||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
Enum_Test:
|
Cat:
|
||||||
|
allOf:
|
||||||
|
- $ref: '#/components/schemas/Animal'
|
||||||
|
- properties:
|
||||||
|
declawed:
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
Animal:
|
||||||
|
discriminator:
|
||||||
|
propertyName: className
|
||||||
properties:
|
properties:
|
||||||
enum_string:
|
className:
|
||||||
enum:
|
|
||||||
- UPPER
|
|
||||||
- lower
|
|
||||||
- ""
|
|
||||||
type: string
|
type: string
|
||||||
enum_string_required:
|
color:
|
||||||
enum:
|
default: red
|
||||||
- UPPER
|
|
||||||
- lower
|
|
||||||
- ""
|
|
||||||
type: string
|
type: string
|
||||||
enum_integer:
|
|
||||||
enum:
|
|
||||||
- 1
|
|
||||||
- -1
|
|
||||||
format: int32
|
|
||||||
type: integer
|
|
||||||
enum_number:
|
|
||||||
enum:
|
|
||||||
- 1.1
|
|
||||||
- -1.2
|
|
||||||
format: double
|
|
||||||
type: number
|
|
||||||
outerEnum:
|
|
||||||
$ref: '#/components/schemas/OuterEnum'
|
|
||||||
required:
|
required:
|
||||||
- enum_string_required
|
- className
|
||||||
type: object
|
|
||||||
Order:
|
|
||||||
example:
|
|
||||||
petId: 6
|
|
||||||
quantity: 1
|
|
||||||
id: 0
|
|
||||||
shipDate: 2000-01-23T04:56:07.000+00:00
|
|
||||||
complete: false
|
|
||||||
status: placed
|
|
||||||
properties:
|
|
||||||
id:
|
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
petId:
|
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
quantity:
|
|
||||||
format: int32
|
|
||||||
type: integer
|
|
||||||
shipDate:
|
|
||||||
format: date-time
|
|
||||||
type: string
|
|
||||||
status:
|
|
||||||
description: Order Status
|
|
||||||
enum:
|
|
||||||
- placed
|
|
||||||
- approved
|
|
||||||
- delivered
|
|
||||||
type: string
|
|
||||||
complete:
|
|
||||||
default: false
|
|
||||||
type: boolean
|
|
||||||
type: object
|
|
||||||
xml:
|
|
||||||
name: Order
|
|
||||||
AdditionalPropertiesClass:
|
|
||||||
properties:
|
|
||||||
map_property:
|
|
||||||
additionalProperties:
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
map_of_map_property:
|
|
||||||
additionalProperties:
|
|
||||||
additionalProperties:
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
type: object
|
|
||||||
type: object
|
|
||||||
$special[model.name]:
|
|
||||||
properties:
|
|
||||||
$special[property.name]:
|
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
type: object
|
|
||||||
xml:
|
|
||||||
name: $special[model.name]
|
|
||||||
Return:
|
|
||||||
description: Model for testing reserved words
|
|
||||||
properties:
|
|
||||||
return:
|
|
||||||
format: int32
|
|
||||||
type: integer
|
|
||||||
type: object
|
|
||||||
xml:
|
|
||||||
name: Return
|
|
||||||
ReadOnlyFirst:
|
|
||||||
properties:
|
|
||||||
bar:
|
|
||||||
readOnly: true
|
|
||||||
type: string
|
|
||||||
baz:
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
ArrayOfArrayOfNumberOnly:
|
|
||||||
properties:
|
|
||||||
ArrayArrayNumber:
|
|
||||||
items:
|
|
||||||
items:
|
|
||||||
type: number
|
|
||||||
type: array
|
|
||||||
type: array
|
|
||||||
type: object
|
|
||||||
OuterEnum:
|
|
||||||
enum:
|
|
||||||
- placed
|
|
||||||
- approved
|
|
||||||
- delivered
|
|
||||||
type: string
|
|
||||||
ArrayTest:
|
|
||||||
properties:
|
|
||||||
array_of_string:
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
array_array_of_integer:
|
|
||||||
items:
|
|
||||||
items:
|
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
type: array
|
|
||||||
type: array
|
|
||||||
array_array_of_model:
|
|
||||||
items:
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/ReadOnlyFirst'
|
|
||||||
type: array
|
|
||||||
type: array
|
|
||||||
array_of_enum:
|
|
||||||
items:
|
|
||||||
enum:
|
|
||||||
- UPPER
|
|
||||||
- lower
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
type: object
|
|
||||||
OuterComposite:
|
|
||||||
example:
|
|
||||||
my_string: my_string
|
|
||||||
my_number: 0.80082819046101150206595775671303272247314453125
|
|
||||||
my_boolean: true
|
|
||||||
properties:
|
|
||||||
my_number:
|
|
||||||
type: number
|
|
||||||
my_string:
|
|
||||||
type: string
|
|
||||||
my_boolean:
|
|
||||||
type: boolean
|
|
||||||
x-codegen-body-parameter-name: boolean_post_body
|
|
||||||
type: object
|
type: object
|
||||||
|
AnimalFarm:
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/Animal'
|
||||||
|
type: array
|
||||||
format_test:
|
format_test:
|
||||||
properties:
|
properties:
|
||||||
integer:
|
integer:
|
||||||
@@ -1345,60 +1269,116 @@ components:
|
|||||||
- number
|
- number
|
||||||
- password
|
- password
|
||||||
type: object
|
type: object
|
||||||
EnumArrays:
|
EnumClass:
|
||||||
properties:
|
default: -efg
|
||||||
just_symbol:
|
enum:
|
||||||
enum:
|
- _abc
|
||||||
- '>='
|
- -efg
|
||||||
- $
|
- (xyz)
|
||||||
type: string
|
|
||||||
array_enum:
|
|
||||||
items:
|
|
||||||
enum:
|
|
||||||
- fish
|
|
||||||
- crab
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
array_array_enum:
|
|
||||||
items:
|
|
||||||
items:
|
|
||||||
enum:
|
|
||||||
- Cat
|
|
||||||
- Dog
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
type: array
|
|
||||||
type: object
|
|
||||||
OuterString:
|
|
||||||
type: string
|
type: string
|
||||||
ClassModel:
|
Enum_Test:
|
||||||
description: Model for testing model with "_class" property
|
|
||||||
properties:
|
properties:
|
||||||
_class:
|
enum_string:
|
||||||
|
enum:
|
||||||
|
- UPPER
|
||||||
|
- lower
|
||||||
|
- ""
|
||||||
type: string
|
type: string
|
||||||
type: object
|
enum_string_required:
|
||||||
OuterBoolean:
|
enum:
|
||||||
type: boolean
|
- UPPER
|
||||||
x-codegen-body-parameter-name: boolean_post_body
|
- lower
|
||||||
Animal:
|
- ""
|
||||||
discriminator:
|
|
||||||
propertyName: className
|
|
||||||
properties:
|
|
||||||
className:
|
|
||||||
type: string
|
|
||||||
color:
|
|
||||||
default: red
|
|
||||||
type: string
|
type: string
|
||||||
|
enum_integer:
|
||||||
|
enum:
|
||||||
|
- 1
|
||||||
|
- -1
|
||||||
|
format: int32
|
||||||
|
type: integer
|
||||||
|
enum_number:
|
||||||
|
enum:
|
||||||
|
- 1.1
|
||||||
|
- -1.2
|
||||||
|
format: double
|
||||||
|
type: number
|
||||||
|
outerEnum:
|
||||||
|
$ref: '#/components/schemas/OuterEnum'
|
||||||
required:
|
required:
|
||||||
- className
|
- enum_string_required
|
||||||
|
type: object
|
||||||
|
AdditionalPropertiesClass:
|
||||||
|
properties:
|
||||||
|
map_property:
|
||||||
|
additionalProperties:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
map_of_map_property:
|
||||||
|
additionalProperties:
|
||||||
|
additionalProperties:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
MixedPropertiesAndAdditionalPropertiesClass:
|
||||||
|
properties:
|
||||||
|
uuid:
|
||||||
|
format: uuid
|
||||||
|
type: string
|
||||||
|
dateTime:
|
||||||
|
format: date-time
|
||||||
|
type: string
|
||||||
|
map:
|
||||||
|
additionalProperties:
|
||||||
|
$ref: '#/components/schemas/Animal'
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
List:
|
||||||
|
properties:
|
||||||
|
123-list:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
Client:
|
||||||
|
example:
|
||||||
|
client: client
|
||||||
|
properties:
|
||||||
|
client:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
ReadOnlyFirst:
|
||||||
|
properties:
|
||||||
|
bar:
|
||||||
|
readOnly: true
|
||||||
|
type: string
|
||||||
|
baz:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
hasOnlyReadOnly:
|
||||||
|
properties:
|
||||||
|
bar:
|
||||||
|
readOnly: true
|
||||||
|
type: string
|
||||||
|
foo:
|
||||||
|
readOnly: true
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
Capitalization:
|
||||||
|
properties:
|
||||||
|
smallCamel:
|
||||||
|
type: string
|
||||||
|
CapitalCamel:
|
||||||
|
type: string
|
||||||
|
small_Snake:
|
||||||
|
type: string
|
||||||
|
Capital_Snake:
|
||||||
|
type: string
|
||||||
|
SCA_ETH_Flow_Points:
|
||||||
|
type: string
|
||||||
|
ATT_NAME:
|
||||||
|
description: |
|
||||||
|
Name of the pet
|
||||||
|
type: string
|
||||||
type: object
|
type: object
|
||||||
Cat:
|
|
||||||
allOf:
|
|
||||||
- $ref: '#/components/schemas/Animal'
|
|
||||||
- properties:
|
|
||||||
declawed:
|
|
||||||
type: boolean
|
|
||||||
type: object
|
|
||||||
MapTest:
|
MapTest:
|
||||||
properties:
|
properties:
|
||||||
map_map_of_string:
|
map_map_of_string:
|
||||||
@@ -1424,85 +1404,105 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
Tag:
|
ArrayTest:
|
||||||
example:
|
|
||||||
name: name
|
|
||||||
id: 1
|
|
||||||
properties:
|
properties:
|
||||||
id:
|
array_of_string:
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
name:
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
xml:
|
|
||||||
name: Tag
|
|
||||||
AnimalFarm:
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/Animal'
|
|
||||||
type: array
|
|
||||||
Pet:
|
|
||||||
example:
|
|
||||||
photoUrls:
|
|
||||||
- photoUrls
|
|
||||||
- photoUrls
|
|
||||||
name: doggie
|
|
||||||
id: 0
|
|
||||||
category:
|
|
||||||
name: name
|
|
||||||
id: 6
|
|
||||||
tags:
|
|
||||||
- name: name
|
|
||||||
id: 1
|
|
||||||
- name: name
|
|
||||||
id: 1
|
|
||||||
status: available
|
|
||||||
properties:
|
|
||||||
id:
|
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
x-is-unique: true
|
|
||||||
category:
|
|
||||||
$ref: '#/components/schemas/Category'
|
|
||||||
name:
|
|
||||||
example: doggie
|
|
||||||
type: string
|
|
||||||
photoUrls:
|
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
type: array
|
type: array
|
||||||
xml:
|
array_array_of_integer:
|
||||||
name: photoUrl
|
|
||||||
wrapped: true
|
|
||||||
tags:
|
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/Tag'
|
items:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
type: array
|
||||||
|
type: array
|
||||||
|
array_array_of_model:
|
||||||
|
items:
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/ReadOnlyFirst'
|
||||||
|
type: array
|
||||||
|
type: array
|
||||||
|
array_of_enum:
|
||||||
|
items:
|
||||||
|
enum:
|
||||||
|
- UPPER
|
||||||
|
- lower
|
||||||
|
type: string
|
||||||
type: array
|
type: array
|
||||||
xml:
|
|
||||||
name: tag
|
|
||||||
wrapped: true
|
|
||||||
status:
|
|
||||||
description: pet status in the store
|
|
||||||
enum:
|
|
||||||
- available
|
|
||||||
- pending
|
|
||||||
- sold
|
|
||||||
type: string
|
|
||||||
required:
|
|
||||||
- name
|
|
||||||
- photoUrls
|
|
||||||
type: object
|
type: object
|
||||||
xml:
|
NumberOnly:
|
||||||
name: Pet
|
|
||||||
hasOnlyReadOnly:
|
|
||||||
properties:
|
properties:
|
||||||
bar:
|
JustNumber:
|
||||||
readOnly: true
|
type: number
|
||||||
type: string
|
|
||||||
foo:
|
|
||||||
readOnly: true
|
|
||||||
type: string
|
|
||||||
type: object
|
type: object
|
||||||
|
ArrayOfNumberOnly:
|
||||||
|
properties:
|
||||||
|
ArrayNumber:
|
||||||
|
items:
|
||||||
|
type: number
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
ArrayOfArrayOfNumberOnly:
|
||||||
|
properties:
|
||||||
|
ArrayArrayNumber:
|
||||||
|
items:
|
||||||
|
items:
|
||||||
|
type: number
|
||||||
|
type: array
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
EnumArrays:
|
||||||
|
properties:
|
||||||
|
just_symbol:
|
||||||
|
enum:
|
||||||
|
- '>='
|
||||||
|
- $
|
||||||
|
type: string
|
||||||
|
array_enum:
|
||||||
|
items:
|
||||||
|
enum:
|
||||||
|
- fish
|
||||||
|
- crab
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
array_array_enum:
|
||||||
|
items:
|
||||||
|
items:
|
||||||
|
enum:
|
||||||
|
- Cat
|
||||||
|
- Dog
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
OuterEnum:
|
||||||
|
enum:
|
||||||
|
- placed
|
||||||
|
- approved
|
||||||
|
- delivered
|
||||||
|
type: string
|
||||||
|
OuterComposite:
|
||||||
|
example:
|
||||||
|
my_string: my_string
|
||||||
|
my_number: 0.80082819046101150206595775671303272247314453125
|
||||||
|
my_boolean: true
|
||||||
|
properties:
|
||||||
|
my_number:
|
||||||
|
type: number
|
||||||
|
my_string:
|
||||||
|
type: string
|
||||||
|
my_boolean:
|
||||||
|
type: boolean
|
||||||
|
x-codegen-body-parameter-name: boolean_post_body
|
||||||
|
type: object
|
||||||
|
OuterNumber:
|
||||||
|
type: number
|
||||||
|
OuterString:
|
||||||
|
type: string
|
||||||
|
OuterBoolean:
|
||||||
|
type: boolean
|
||||||
|
x-codegen-body-parameter-name: boolean_post_body
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
@@ -1512,9 +1512,6 @@ components:
|
|||||||
write:pets: modify pets in your account
|
write:pets: modify pets in your account
|
||||||
read:pets: read your pets
|
read:pets: read your pets
|
||||||
type: oauth2
|
type: oauth2
|
||||||
http_basic_test:
|
|
||||||
scheme: basic
|
|
||||||
type: http
|
|
||||||
api_key:
|
api_key:
|
||||||
in: header
|
in: header
|
||||||
name: api_key
|
name: api_key
|
||||||
@@ -1523,4 +1520,7 @@ components:
|
|||||||
in: query
|
in: query
|
||||||
name: api_key_query
|
name: api_key_query
|
||||||
type: apiKey
|
type: apiKey
|
||||||
|
http_basic_test:
|
||||||
|
scheme: basic
|
||||||
|
type: http
|
||||||
|
|
||||||
|
|||||||
@@ -96,6 +96,17 @@ components:
|
|||||||
description: An additionalPropertiesObject
|
description: An additionalPropertiesObject
|
||||||
example: foo
|
example: foo
|
||||||
type: object
|
type: object
|
||||||
|
aNullableContainer:
|
||||||
|
properties:
|
||||||
|
NullableThing:
|
||||||
|
nullable: true
|
||||||
|
type: string
|
||||||
|
RequiredNullableThing:
|
||||||
|
nullable: true
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- RequiredNullableThing
|
||||||
|
type: object
|
||||||
ObjectOfObjects:
|
ObjectOfObjects:
|
||||||
description: An object of objects
|
description: An object of objects
|
||||||
properties:
|
properties:
|
||||||
@@ -119,15 +130,4 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
- required_thing
|
- required_thing
|
||||||
aNullableContainer:
|
|
||||||
properties:
|
|
||||||
NullableThing:
|
|
||||||
nullable: true
|
|
||||||
type: string
|
|
||||||
RequiredNullableThing:
|
|
||||||
nullable: true
|
|
||||||
type: string
|
|
||||||
required:
|
|
||||||
- RequiredNullableThing
|
|
||||||
type: object
|
|
||||||
|
|
||||||
|
|||||||
@@ -1206,6 +1206,40 @@ paths:
|
|||||||
- tag: pet
|
- tag: pet
|
||||||
components:
|
components:
|
||||||
schemas:
|
schemas:
|
||||||
|
Order:
|
||||||
|
example:
|
||||||
|
petId: 6
|
||||||
|
quantity: 1
|
||||||
|
id: 0
|
||||||
|
shipDate: 2000-01-23T04:56:07.000+00:00
|
||||||
|
complete: false
|
||||||
|
status: placed
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
petId:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
quantity:
|
||||||
|
format: int32
|
||||||
|
type: integer
|
||||||
|
shipDate:
|
||||||
|
format: date-time
|
||||||
|
type: string
|
||||||
|
status:
|
||||||
|
description: Order Status
|
||||||
|
enum:
|
||||||
|
- placed
|
||||||
|
- approved
|
||||||
|
- delivered
|
||||||
|
type: string
|
||||||
|
complete:
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
xml:
|
||||||
|
name: Order
|
||||||
Category:
|
Category:
|
||||||
example:
|
example:
|
||||||
name: default-name
|
name: default-name
|
||||||
@@ -1256,45 +1290,72 @@ components:
|
|||||||
type: object
|
type: object
|
||||||
xml:
|
xml:
|
||||||
name: User
|
name: User
|
||||||
OuterNumber:
|
Tag:
|
||||||
type: number
|
example:
|
||||||
ArrayOfNumberOnly:
|
name: name
|
||||||
|
id: 1
|
||||||
properties:
|
properties:
|
||||||
ArrayNumber:
|
id:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
xml:
|
||||||
|
name: Tag
|
||||||
|
Pet:
|
||||||
|
example:
|
||||||
|
photoUrls:
|
||||||
|
- photoUrls
|
||||||
|
- photoUrls
|
||||||
|
name: doggie
|
||||||
|
id: 0
|
||||||
|
category:
|
||||||
|
name: default-name
|
||||||
|
id: 6
|
||||||
|
tags:
|
||||||
|
- name: name
|
||||||
|
id: 1
|
||||||
|
- name: name
|
||||||
|
id: 1
|
||||||
|
status: available
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
x-is-unique: true
|
||||||
|
category:
|
||||||
|
$ref: '#/components/schemas/Category'
|
||||||
|
name:
|
||||||
|
example: doggie
|
||||||
|
type: string
|
||||||
|
photoUrls:
|
||||||
items:
|
items:
|
||||||
type: number
|
type: string
|
||||||
type: array
|
type: array
|
||||||
|
xml:
|
||||||
|
name: photoUrl
|
||||||
|
wrapped: true
|
||||||
|
tags:
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/Tag'
|
||||||
|
type: array
|
||||||
|
xml:
|
||||||
|
name: tag
|
||||||
|
wrapped: true
|
||||||
|
status:
|
||||||
|
description: pet status in the store
|
||||||
|
enum:
|
||||||
|
- available
|
||||||
|
- pending
|
||||||
|
- sold
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- name
|
||||||
|
- photoUrls
|
||||||
type: object
|
type: object
|
||||||
Capitalization:
|
xml:
|
||||||
properties:
|
name: Pet
|
||||||
smallCamel:
|
|
||||||
type: string
|
|
||||||
CapitalCamel:
|
|
||||||
type: string
|
|
||||||
small_Snake:
|
|
||||||
type: string
|
|
||||||
Capital_Snake:
|
|
||||||
type: string
|
|
||||||
SCA_ETH_Flow_Points:
|
|
||||||
type: string
|
|
||||||
ATT_NAME:
|
|
||||||
description: |
|
|
||||||
Name of the pet
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
MixedPropertiesAndAdditionalPropertiesClass:
|
|
||||||
properties:
|
|
||||||
uuid:
|
|
||||||
format: uuid
|
|
||||||
type: string
|
|
||||||
dateTime:
|
|
||||||
format: date-time
|
|
||||||
type: string
|
|
||||||
map:
|
|
||||||
additionalProperties:
|
|
||||||
$ref: '#/components/schemas/Animal'
|
|
||||||
type: object
|
|
||||||
type: object
|
|
||||||
ApiResponse:
|
ApiResponse:
|
||||||
example:
|
example:
|
||||||
code: 0
|
code: 0
|
||||||
@@ -1309,6 +1370,23 @@ components:
|
|||||||
message:
|
message:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
$special[model.name]:
|
||||||
|
properties:
|
||||||
|
$special[property.name]:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
type: object
|
||||||
|
xml:
|
||||||
|
name: $special[model.name]
|
||||||
|
Return:
|
||||||
|
description: Model for testing reserved words
|
||||||
|
properties:
|
||||||
|
return:
|
||||||
|
format: int32
|
||||||
|
type: integer
|
||||||
|
type: object
|
||||||
|
xml:
|
||||||
|
name: Return
|
||||||
Name:
|
Name:
|
||||||
description: Model for testing model name same as property name
|
description: Model for testing model name same as property name
|
||||||
properties:
|
properties:
|
||||||
@@ -1329,25 +1407,6 @@ components:
|
|||||||
type: object
|
type: object
|
||||||
xml:
|
xml:
|
||||||
name: Name
|
name: Name
|
||||||
EnumClass:
|
|
||||||
default: -efg
|
|
||||||
enum:
|
|
||||||
- _abc
|
|
||||||
- -efg
|
|
||||||
- (xyz)
|
|
||||||
type: string
|
|
||||||
List:
|
|
||||||
example:
|
|
||||||
123-list: 123-list
|
|
||||||
properties:
|
|
||||||
123-list:
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
NumberOnly:
|
|
||||||
properties:
|
|
||||||
JustNumber:
|
|
||||||
type: number
|
|
||||||
type: object
|
|
||||||
200_response:
|
200_response:
|
||||||
description: Model for testing model name starting with number
|
description: Model for testing model name starting with number
|
||||||
properties:
|
properties:
|
||||||
@@ -1359,11 +1418,10 @@ components:
|
|||||||
type: object
|
type: object
|
||||||
xml:
|
xml:
|
||||||
name: Name
|
name: Name
|
||||||
Client:
|
ClassModel:
|
||||||
example:
|
description: Model for testing model with "_class" property
|
||||||
client: client
|
|
||||||
properties:
|
properties:
|
||||||
client:
|
_class:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
Dog:
|
Dog:
|
||||||
@@ -1373,158 +1431,29 @@ components:
|
|||||||
breed:
|
breed:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
Enum_Test:
|
Cat:
|
||||||
|
allOf:
|
||||||
|
- $ref: '#/components/schemas/Animal'
|
||||||
|
- properties:
|
||||||
|
declawed:
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
Animal:
|
||||||
|
discriminator:
|
||||||
|
propertyName: className
|
||||||
properties:
|
properties:
|
||||||
enum_string:
|
className:
|
||||||
enum:
|
|
||||||
- UPPER
|
|
||||||
- lower
|
|
||||||
- ""
|
|
||||||
type: string
|
type: string
|
||||||
enum_string_required:
|
color:
|
||||||
enum:
|
default: red
|
||||||
- UPPER
|
|
||||||
- lower
|
|
||||||
- ""
|
|
||||||
type: string
|
type: string
|
||||||
enum_integer:
|
|
||||||
enum:
|
|
||||||
- 1
|
|
||||||
- -1
|
|
||||||
format: int32
|
|
||||||
type: integer
|
|
||||||
enum_number:
|
|
||||||
enum:
|
|
||||||
- 1.1
|
|
||||||
- -1.2
|
|
||||||
format: double
|
|
||||||
type: number
|
|
||||||
outerEnum:
|
|
||||||
$ref: '#/components/schemas/OuterEnum'
|
|
||||||
required:
|
required:
|
||||||
- enum_string_required
|
- className
|
||||||
type: object
|
|
||||||
Order:
|
|
||||||
example:
|
|
||||||
petId: 6
|
|
||||||
quantity: 1
|
|
||||||
id: 0
|
|
||||||
shipDate: 2000-01-23T04:56:07.000+00:00
|
|
||||||
complete: false
|
|
||||||
status: placed
|
|
||||||
properties:
|
|
||||||
id:
|
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
petId:
|
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
quantity:
|
|
||||||
format: int32
|
|
||||||
type: integer
|
|
||||||
shipDate:
|
|
||||||
format: date-time
|
|
||||||
type: string
|
|
||||||
status:
|
|
||||||
description: Order Status
|
|
||||||
enum:
|
|
||||||
- placed
|
|
||||||
- approved
|
|
||||||
- delivered
|
|
||||||
type: string
|
|
||||||
complete:
|
|
||||||
default: false
|
|
||||||
type: boolean
|
|
||||||
type: object
|
|
||||||
xml:
|
|
||||||
name: Order
|
|
||||||
AdditionalPropertiesClass:
|
|
||||||
properties:
|
|
||||||
map_property:
|
|
||||||
additionalProperties:
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
map_of_map_property:
|
|
||||||
additionalProperties:
|
|
||||||
additionalProperties:
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
type: object
|
|
||||||
type: object
|
|
||||||
$special[model.name]:
|
|
||||||
properties:
|
|
||||||
$special[property.name]:
|
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
type: object
|
|
||||||
xml:
|
|
||||||
name: $special[model.name]
|
|
||||||
Return:
|
|
||||||
description: Model for testing reserved words
|
|
||||||
properties:
|
|
||||||
return:
|
|
||||||
format: int32
|
|
||||||
type: integer
|
|
||||||
type: object
|
|
||||||
xml:
|
|
||||||
name: Return
|
|
||||||
ReadOnlyFirst:
|
|
||||||
properties:
|
|
||||||
bar:
|
|
||||||
readOnly: true
|
|
||||||
type: string
|
|
||||||
baz:
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
ArrayOfArrayOfNumberOnly:
|
|
||||||
properties:
|
|
||||||
ArrayArrayNumber:
|
|
||||||
items:
|
|
||||||
items:
|
|
||||||
type: number
|
|
||||||
type: array
|
|
||||||
type: array
|
|
||||||
type: object
|
|
||||||
OuterEnum:
|
|
||||||
enum:
|
|
||||||
- placed
|
|
||||||
- approved
|
|
||||||
- delivered
|
|
||||||
type: string
|
|
||||||
ArrayTest:
|
|
||||||
properties:
|
|
||||||
array_of_string:
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
array_array_of_integer:
|
|
||||||
items:
|
|
||||||
items:
|
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
type: array
|
|
||||||
type: array
|
|
||||||
array_array_of_model:
|
|
||||||
items:
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/ReadOnlyFirst'
|
|
||||||
type: array
|
|
||||||
type: array
|
|
||||||
type: object
|
|
||||||
OuterComposite:
|
|
||||||
example:
|
|
||||||
my_string: my_string
|
|
||||||
my_number: 0.80082819046101150206595775671303272247314453125
|
|
||||||
my_boolean: true
|
|
||||||
properties:
|
|
||||||
my_number:
|
|
||||||
type: number
|
|
||||||
my_string:
|
|
||||||
type: string
|
|
||||||
my_boolean:
|
|
||||||
type: boolean
|
|
||||||
x-codegen-body-parameter-name: boolean_post_body
|
|
||||||
type: object
|
type: object
|
||||||
|
AnimalFarm:
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/Animal'
|
||||||
|
type: array
|
||||||
format_test:
|
format_test:
|
||||||
properties:
|
properties:
|
||||||
integer:
|
integer:
|
||||||
@@ -1583,70 +1512,118 @@ components:
|
|||||||
- number
|
- number
|
||||||
- password
|
- password
|
||||||
type: object
|
type: object
|
||||||
EnumArrays:
|
EnumClass:
|
||||||
properties:
|
default: -efg
|
||||||
just_symbol:
|
enum:
|
||||||
enum:
|
- _abc
|
||||||
- '>='
|
- -efg
|
||||||
- $
|
- (xyz)
|
||||||
type: string
|
|
||||||
array_enum:
|
|
||||||
items:
|
|
||||||
enum:
|
|
||||||
- fish
|
|
||||||
- crab
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
type: object
|
|
||||||
OuterString:
|
|
||||||
type: string
|
type: string
|
||||||
ClassModel:
|
Enum_Test:
|
||||||
description: Model for testing model with "_class" property
|
|
||||||
properties:
|
properties:
|
||||||
_class:
|
enum_string:
|
||||||
|
enum:
|
||||||
|
- UPPER
|
||||||
|
- lower
|
||||||
|
- ""
|
||||||
type: string
|
type: string
|
||||||
type: object
|
enum_string_required:
|
||||||
OuterBoolean:
|
enum:
|
||||||
type: boolean
|
- UPPER
|
||||||
x-codegen-body-parameter-name: boolean_post_body
|
- lower
|
||||||
FileSchemaTestClass:
|
- ""
|
||||||
example:
|
|
||||||
file:
|
|
||||||
sourceURI: sourceURI
|
|
||||||
files:
|
|
||||||
- sourceURI: sourceURI
|
|
||||||
- sourceURI: sourceURI
|
|
||||||
properties:
|
|
||||||
file:
|
|
||||||
$ref: '#/components/schemas/File'
|
|
||||||
files:
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/File'
|
|
||||||
type: array
|
|
||||||
type: object
|
|
||||||
Animal:
|
|
||||||
discriminator:
|
|
||||||
propertyName: className
|
|
||||||
properties:
|
|
||||||
className:
|
|
||||||
type: string
|
|
||||||
color:
|
|
||||||
default: red
|
|
||||||
type: string
|
type: string
|
||||||
|
enum_integer:
|
||||||
|
enum:
|
||||||
|
- 1
|
||||||
|
- -1
|
||||||
|
format: int32
|
||||||
|
type: integer
|
||||||
|
enum_number:
|
||||||
|
enum:
|
||||||
|
- 1.1
|
||||||
|
- -1.2
|
||||||
|
format: double
|
||||||
|
type: number
|
||||||
|
outerEnum:
|
||||||
|
$ref: '#/components/schemas/OuterEnum'
|
||||||
required:
|
required:
|
||||||
- className
|
- enum_string_required
|
||||||
type: object
|
type: object
|
||||||
StringBooleanMap:
|
AdditionalPropertiesClass:
|
||||||
additionalProperties:
|
properties:
|
||||||
type: boolean
|
map_property:
|
||||||
|
additionalProperties:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
map_of_map_property:
|
||||||
|
additionalProperties:
|
||||||
|
additionalProperties:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
MixedPropertiesAndAdditionalPropertiesClass:
|
||||||
|
properties:
|
||||||
|
uuid:
|
||||||
|
format: uuid
|
||||||
|
type: string
|
||||||
|
dateTime:
|
||||||
|
format: date-time
|
||||||
|
type: string
|
||||||
|
map:
|
||||||
|
additionalProperties:
|
||||||
|
$ref: '#/components/schemas/Animal'
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
List:
|
||||||
|
example:
|
||||||
|
123-list: 123-list
|
||||||
|
properties:
|
||||||
|
123-list:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
Client:
|
||||||
|
example:
|
||||||
|
client: client
|
||||||
|
properties:
|
||||||
|
client:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
ReadOnlyFirst:
|
||||||
|
properties:
|
||||||
|
bar:
|
||||||
|
readOnly: true
|
||||||
|
type: string
|
||||||
|
baz:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
hasOnlyReadOnly:
|
||||||
|
properties:
|
||||||
|
bar:
|
||||||
|
readOnly: true
|
||||||
|
type: string
|
||||||
|
foo:
|
||||||
|
readOnly: true
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
Capitalization:
|
||||||
|
properties:
|
||||||
|
smallCamel:
|
||||||
|
type: string
|
||||||
|
CapitalCamel:
|
||||||
|
type: string
|
||||||
|
small_Snake:
|
||||||
|
type: string
|
||||||
|
Capital_Snake:
|
||||||
|
type: string
|
||||||
|
SCA_ETH_Flow_Points:
|
||||||
|
type: string
|
||||||
|
ATT_NAME:
|
||||||
|
description: |
|
||||||
|
Name of the pet
|
||||||
|
type: string
|
||||||
type: object
|
type: object
|
||||||
Cat:
|
|
||||||
allOf:
|
|
||||||
- $ref: '#/components/schemas/Animal'
|
|
||||||
- properties:
|
|
||||||
declawed:
|
|
||||||
type: boolean
|
|
||||||
type: object
|
|
||||||
MapTest:
|
MapTest:
|
||||||
properties:
|
properties:
|
||||||
map_map_of_string:
|
map_map_of_string:
|
||||||
@@ -1671,23 +1648,108 @@ components:
|
|||||||
type: boolean
|
type: boolean
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
Tag:
|
ArrayTest:
|
||||||
example:
|
|
||||||
name: name
|
|
||||||
id: 1
|
|
||||||
properties:
|
properties:
|
||||||
id:
|
array_of_string:
|
||||||
format: int64
|
items:
|
||||||
type: integer
|
type: string
|
||||||
name:
|
type: array
|
||||||
type: string
|
array_array_of_integer:
|
||||||
|
items:
|
||||||
|
items:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
type: array
|
||||||
|
type: array
|
||||||
|
array_array_of_model:
|
||||||
|
items:
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/ReadOnlyFirst'
|
||||||
|
type: array
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
NumberOnly:
|
||||||
|
properties:
|
||||||
|
JustNumber:
|
||||||
|
type: number
|
||||||
|
type: object
|
||||||
|
ArrayOfNumberOnly:
|
||||||
|
properties:
|
||||||
|
ArrayNumber:
|
||||||
|
items:
|
||||||
|
type: number
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
ArrayOfArrayOfNumberOnly:
|
||||||
|
properties:
|
||||||
|
ArrayArrayNumber:
|
||||||
|
items:
|
||||||
|
items:
|
||||||
|
type: number
|
||||||
|
type: array
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
EnumArrays:
|
||||||
|
properties:
|
||||||
|
just_symbol:
|
||||||
|
enum:
|
||||||
|
- '>='
|
||||||
|
- $
|
||||||
|
type: string
|
||||||
|
array_enum:
|
||||||
|
items:
|
||||||
|
enum:
|
||||||
|
- fish
|
||||||
|
- crab
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
OuterEnum:
|
||||||
|
enum:
|
||||||
|
- placed
|
||||||
|
- approved
|
||||||
|
- delivered
|
||||||
|
type: string
|
||||||
|
OuterComposite:
|
||||||
|
example:
|
||||||
|
my_string: my_string
|
||||||
|
my_number: 0.80082819046101150206595775671303272247314453125
|
||||||
|
my_boolean: true
|
||||||
|
properties:
|
||||||
|
my_number:
|
||||||
|
type: number
|
||||||
|
my_string:
|
||||||
|
type: string
|
||||||
|
my_boolean:
|
||||||
|
type: boolean
|
||||||
|
x-codegen-body-parameter-name: boolean_post_body
|
||||||
|
type: object
|
||||||
|
OuterNumber:
|
||||||
|
type: number
|
||||||
|
OuterString:
|
||||||
|
type: string
|
||||||
|
OuterBoolean:
|
||||||
|
type: boolean
|
||||||
|
x-codegen-body-parameter-name: boolean_post_body
|
||||||
|
StringBooleanMap:
|
||||||
|
additionalProperties:
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
FileSchemaTestClass:
|
||||||
|
example:
|
||||||
|
file:
|
||||||
|
sourceURI: sourceURI
|
||||||
|
files:
|
||||||
|
- sourceURI: sourceURI
|
||||||
|
- sourceURI: sourceURI
|
||||||
|
properties:
|
||||||
|
file:
|
||||||
|
$ref: '#/components/schemas/File'
|
||||||
|
files:
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/File'
|
||||||
|
type: array
|
||||||
type: object
|
type: object
|
||||||
xml:
|
|
||||||
name: Tag
|
|
||||||
AnimalFarm:
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/Animal'
|
|
||||||
type: array
|
|
||||||
File:
|
File:
|
||||||
description: Must be named `File` for test.
|
description: Must be named `File` for test.
|
||||||
example:
|
example:
|
||||||
@@ -1697,68 +1759,6 @@ components:
|
|||||||
description: Test capitalization
|
description: Test capitalization
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
Pet:
|
|
||||||
example:
|
|
||||||
photoUrls:
|
|
||||||
- photoUrls
|
|
||||||
- photoUrls
|
|
||||||
name: doggie
|
|
||||||
id: 0
|
|
||||||
category:
|
|
||||||
name: default-name
|
|
||||||
id: 6
|
|
||||||
tags:
|
|
||||||
- name: name
|
|
||||||
id: 1
|
|
||||||
- name: name
|
|
||||||
id: 1
|
|
||||||
status: available
|
|
||||||
properties:
|
|
||||||
id:
|
|
||||||
format: int64
|
|
||||||
type: integer
|
|
||||||
x-is-unique: true
|
|
||||||
category:
|
|
||||||
$ref: '#/components/schemas/Category'
|
|
||||||
name:
|
|
||||||
example: doggie
|
|
||||||
type: string
|
|
||||||
photoUrls:
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
xml:
|
|
||||||
name: photoUrl
|
|
||||||
wrapped: true
|
|
||||||
tags:
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/Tag'
|
|
||||||
type: array
|
|
||||||
xml:
|
|
||||||
name: tag
|
|
||||||
wrapped: true
|
|
||||||
status:
|
|
||||||
description: pet status in the store
|
|
||||||
enum:
|
|
||||||
- available
|
|
||||||
- pending
|
|
||||||
- sold
|
|
||||||
type: string
|
|
||||||
required:
|
|
||||||
- name
|
|
||||||
- photoUrls
|
|
||||||
type: object
|
|
||||||
xml:
|
|
||||||
name: Pet
|
|
||||||
hasOnlyReadOnly:
|
|
||||||
properties:
|
|
||||||
bar:
|
|
||||||
readOnly: true
|
|
||||||
type: string
|
|
||||||
foo:
|
|
||||||
readOnly: true
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
flows:
|
flows:
|
||||||
@@ -1768,9 +1768,6 @@ components:
|
|||||||
write:pets: modify pets in your account
|
write:pets: modify pets in your account
|
||||||
read:pets: read your pets
|
read:pets: read your pets
|
||||||
type: oauth2
|
type: oauth2
|
||||||
http_basic_test:
|
|
||||||
scheme: basic
|
|
||||||
type: http
|
|
||||||
api_key:
|
api_key:
|
||||||
in: header
|
in: header
|
||||||
name: api_key
|
name: api_key
|
||||||
@@ -1779,3 +1776,6 @@ components:
|
|||||||
in: query
|
in: query
|
||||||
name: api_key_query
|
name: api_key_query
|
||||||
type: apiKey
|
type: apiKey
|
||||||
|
http_basic_test:
|
||||||
|
scheme: basic
|
||||||
|
type: http
|
||||||
|
|||||||
Reference in New Issue
Block a user