Merge remote-tracking branch 'origin/master' into 2.3.0

This commit is contained in:
wing328
2017-04-23 15:26:15 +08:00
147 changed files with 1974 additions and 1190 deletions

View File

@@ -27,9 +27,9 @@ open class FakeAPI: APIBase {
To test \"client\" model
- PATCH /fake
- To test \"client\" model
- examples: [{example={
- examples: [{contentType=application/json, example={
"client" : "aeiou"
}, contentType=application/json}]
}}]
- parameter body: (body) client model

View File

@@ -26,9 +26,9 @@ open class Fake_classname_tags123API: APIBase {
/**
To test class name in snake case
- PATCH /fake_classname_test
- examples: [{example={
- examples: [{contentType=application/json, example={
"client" : "aeiou"
}, contentType=application/json}]
}}]
- parameter body: (body) client model

View File

@@ -122,7 +122,7 @@ open class PetAPI: APIBase {
- OAuth:
- type: oauth2
- name: petstore_auth
- examples: [{example=<Pet>
- examples: [{contentType=application/xml, example=<Pet>
<id>123456789</id>
<name>doggie</name>
<photoUrls>
@@ -131,21 +131,21 @@ open class PetAPI: APIBase {
<tags>
</tags>
<status>aeiou</status>
</Pet>, contentType=application/xml}, {example=[ {
"tags" : [ {
"id" : 1,
"name" : "aeiou"
} ],
</Pet>}, {contentType=application/json, example=[ {
"photoUrls" : [ "aeiou" ],
"name" : "doggie",
"id" : 0,
"category" : {
"id" : 6,
"name" : "aeiou"
"name" : "aeiou",
"id" : 6
},
"status" : "available",
"name" : "doggie",
"photoUrls" : [ "aeiou" ]
} ], contentType=application/json}]
- examples: [{example=<Pet>
"tags" : [ {
"name" : "aeiou",
"id" : 1
} ],
"status" : "available"
} ]}]
- examples: [{contentType=application/xml, example=<Pet>
<id>123456789</id>
<name>doggie</name>
<photoUrls>
@@ -154,20 +154,20 @@ open class PetAPI: APIBase {
<tags>
</tags>
<status>aeiou</status>
</Pet>, contentType=application/xml}, {example=[ {
"tags" : [ {
"id" : 1,
"name" : "aeiou"
} ],
</Pet>}, {contentType=application/json, example=[ {
"photoUrls" : [ "aeiou" ],
"name" : "doggie",
"id" : 0,
"category" : {
"id" : 6,
"name" : "aeiou"
"name" : "aeiou",
"id" : 6
},
"status" : "available",
"name" : "doggie",
"photoUrls" : [ "aeiou" ]
} ], contentType=application/json}]
"tags" : [ {
"name" : "aeiou",
"id" : 1
} ],
"status" : "available"
} ]}]
- parameter status: (query) Status values that need to be considered for filter
@@ -209,7 +209,7 @@ open class PetAPI: APIBase {
- OAuth:
- type: oauth2
- name: petstore_auth
- examples: [{example=<Pet>
- examples: [{contentType=application/xml, example=<Pet>
<id>123456789</id>
<name>doggie</name>
<photoUrls>
@@ -218,21 +218,21 @@ open class PetAPI: APIBase {
<tags>
</tags>
<status>aeiou</status>
</Pet>, contentType=application/xml}, {example=[ {
"tags" : [ {
"id" : 1,
"name" : "aeiou"
} ],
</Pet>}, {contentType=application/json, example=[ {
"photoUrls" : [ "aeiou" ],
"name" : "doggie",
"id" : 0,
"category" : {
"id" : 6,
"name" : "aeiou"
"name" : "aeiou",
"id" : 6
},
"status" : "available",
"name" : "doggie",
"photoUrls" : [ "aeiou" ]
} ], contentType=application/json}]
- examples: [{example=<Pet>
"tags" : [ {
"name" : "aeiou",
"id" : 1
} ],
"status" : "available"
} ]}]
- examples: [{contentType=application/xml, example=<Pet>
<id>123456789</id>
<name>doggie</name>
<photoUrls>
@@ -241,20 +241,20 @@ open class PetAPI: APIBase {
<tags>
</tags>
<status>aeiou</status>
</Pet>, contentType=application/xml}, {example=[ {
"tags" : [ {
"id" : 1,
"name" : "aeiou"
} ],
</Pet>}, {contentType=application/json, example=[ {
"photoUrls" : [ "aeiou" ],
"name" : "doggie",
"id" : 0,
"category" : {
"id" : 6,
"name" : "aeiou"
"name" : "aeiou",
"id" : 6
},
"status" : "available",
"name" : "doggie",
"photoUrls" : [ "aeiou" ]
} ], contentType=application/json}]
"tags" : [ {
"name" : "aeiou",
"id" : 1
} ],
"status" : "available"
} ]}]
- parameter tags: (query) Tags to filter by
@@ -296,7 +296,7 @@ open class PetAPI: APIBase {
- API Key:
- type: apiKey api_key
- name: api_key
- examples: [{example=<Pet>
- examples: [{contentType=application/xml, example=<Pet>
<id>123456789</id>
<name>doggie</name>
<photoUrls>
@@ -305,21 +305,21 @@ open class PetAPI: APIBase {
<tags>
</tags>
<status>aeiou</status>
</Pet>, contentType=application/xml}, {example={
"tags" : [ {
"id" : 1,
"name" : "aeiou"
} ],
</Pet>}, {contentType=application/json, example={
"photoUrls" : [ "aeiou" ],
"name" : "doggie",
"id" : 0,
"category" : {
"id" : 6,
"name" : "aeiou"
"name" : "aeiou",
"id" : 6
},
"status" : "available",
"name" : "doggie",
"photoUrls" : [ "aeiou" ]
}, contentType=application/json}]
- examples: [{example=<Pet>
"tags" : [ {
"name" : "aeiou",
"id" : 1
} ],
"status" : "available"
}}]
- examples: [{contentType=application/xml, example=<Pet>
<id>123456789</id>
<name>doggie</name>
<photoUrls>
@@ -328,20 +328,20 @@ open class PetAPI: APIBase {
<tags>
</tags>
<status>aeiou</status>
</Pet>, contentType=application/xml}, {example={
"tags" : [ {
"id" : 1,
"name" : "aeiou"
} ],
</Pet>}, {contentType=application/json, example={
"photoUrls" : [ "aeiou" ],
"name" : "doggie",
"id" : 0,
"category" : {
"id" : 6,
"name" : "aeiou"
"name" : "aeiou",
"id" : 6
},
"status" : "available",
"name" : "doggie",
"photoUrls" : [ "aeiou" ]
}, contentType=application/json}]
"tags" : [ {
"name" : "aeiou",
"id" : 1
} ],
"status" : "available"
}}]
- parameter petId: (path) ID of pet to return
@@ -470,11 +470,11 @@ open class PetAPI: APIBase {
- OAuth:
- type: oauth2
- name: petstore_auth
- examples: [{example={
"message" : "aeiou",
- examples: [{contentType=application/json, example={
"code" : 0,
"type" : "aeiou"
}, contentType=application/json}]
"type" : "aeiou",
"message" : "aeiou"
}}]
- parameter petId: (path) ID of pet to update
- parameter additionalMetadata: (form) Additional data to pass to server (optional)

View File

@@ -65,9 +65,9 @@ open class StoreAPI: APIBase {
- API Key:
- type: apiKey api_key
- name: api_key
- examples: [{example={
- examples: [{contentType=application/json, example={
"key" : 0
}, contentType=application/json}]
}}]
- returns: RequestBuilder<[String:Int32]>
*/
@@ -101,36 +101,36 @@ open class StoreAPI: APIBase {
Find purchase order by ID
- GET /store/order/{order_id}
- For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
- examples: [{example=<Order>
- examples: [{contentType=application/xml, example=<Order>
<id>123456789</id>
<petId>123456789</petId>
<quantity>123</quantity>
<shipDate>2000-01-23T04:56:07.000Z</shipDate>
<status>aeiou</status>
<complete>true</complete>
</Order>, contentType=application/xml}, {example={
"id" : 0,
</Order>}, {contentType=application/json, example={
"petId" : 6,
"complete" : false,
"status" : "placed",
"quantity" : 1,
"shipDate" : "2000-01-23T04:56:07.000+00:00"
}, contentType=application/json}]
- examples: [{example=<Order>
"id" : 0,
"shipDate" : "2000-01-23T04:56:07.000+00:00",
"complete" : false,
"status" : "placed"
}}]
- examples: [{contentType=application/xml, example=<Order>
<id>123456789</id>
<petId>123456789</petId>
<quantity>123</quantity>
<shipDate>2000-01-23T04:56:07.000Z</shipDate>
<status>aeiou</status>
<complete>true</complete>
</Order>, contentType=application/xml}, {example={
"id" : 0,
</Order>}, {contentType=application/json, example={
"petId" : 6,
"complete" : false,
"status" : "placed",
"quantity" : 1,
"shipDate" : "2000-01-23T04:56:07.000+00:00"
}, contentType=application/json}]
"id" : 0,
"shipDate" : "2000-01-23T04:56:07.000+00:00",
"complete" : false,
"status" : "placed"
}}]
- parameter orderId: (path) ID of pet that needs to be fetched
@@ -167,36 +167,36 @@ open class StoreAPI: APIBase {
Place an order for a pet
- POST /store/order
-
- examples: [{example=<Order>
- examples: [{contentType=application/xml, example=<Order>
<id>123456789</id>
<petId>123456789</petId>
<quantity>123</quantity>
<shipDate>2000-01-23T04:56:07.000Z</shipDate>
<status>aeiou</status>
<complete>true</complete>
</Order>, contentType=application/xml}, {example={
"id" : 0,
</Order>}, {contentType=application/json, example={
"petId" : 6,
"complete" : false,
"status" : "placed",
"quantity" : 1,
"shipDate" : "2000-01-23T04:56:07.000+00:00"
}, contentType=application/json}]
- examples: [{example=<Order>
"id" : 0,
"shipDate" : "2000-01-23T04:56:07.000+00:00",
"complete" : false,
"status" : "placed"
}}]
- examples: [{contentType=application/xml, example=<Order>
<id>123456789</id>
<petId>123456789</petId>
<quantity>123</quantity>
<shipDate>2000-01-23T04:56:07.000Z</shipDate>
<status>aeiou</status>
<complete>true</complete>
</Order>, contentType=application/xml}, {example={
"id" : 0,
</Order>}, {contentType=application/json, example={
"petId" : 6,
"complete" : false,
"status" : "placed",
"quantity" : 1,
"shipDate" : "2000-01-23T04:56:07.000+00:00"
}, contentType=application/json}]
"id" : 0,
"shipDate" : "2000-01-23T04:56:07.000+00:00",
"complete" : false,
"status" : "placed"
}}]
- parameter body: (body) order placed for purchasing the pet

View File

@@ -168,7 +168,7 @@ open class UserAPI: APIBase {
Get user by user name
- GET /user/{username}
-
- examples: [{example=<User>
- examples: [{contentType=application/xml, example=<User>
<id>123456789</id>
<username>aeiou</username>
<firstName>aeiou</firstName>
@@ -177,17 +177,17 @@ open class UserAPI: APIBase {
<password>aeiou</password>
<phone>aeiou</phone>
<userStatus>123</userStatus>
</User>, contentType=application/xml}, {example={
"id" : 0,
"lastName" : "aeiou",
"phone" : "aeiou",
"username" : "aeiou",
"email" : "aeiou",
"userStatus" : 6,
</User>}, {contentType=application/json, example={
"firstName" : "aeiou",
"password" : "aeiou"
}, contentType=application/json}]
- examples: [{example=<User>
"lastName" : "aeiou",
"password" : "aeiou",
"userStatus" : 6,
"phone" : "aeiou",
"id" : 0,
"email" : "aeiou",
"username" : "aeiou"
}}]
- examples: [{contentType=application/xml, example=<User>
<id>123456789</id>
<username>aeiou</username>
<firstName>aeiou</firstName>
@@ -196,16 +196,16 @@ open class UserAPI: APIBase {
<password>aeiou</password>
<phone>aeiou</phone>
<userStatus>123</userStatus>
</User>, contentType=application/xml}, {example={
"id" : 0,
"lastName" : "aeiou",
"phone" : "aeiou",
"username" : "aeiou",
"email" : "aeiou",
"userStatus" : 6,
</User>}, {contentType=application/json, example={
"firstName" : "aeiou",
"password" : "aeiou"
}, contentType=application/json}]
"lastName" : "aeiou",
"password" : "aeiou",
"userStatus" : 6,
"phone" : "aeiou",
"id" : 0,
"email" : "aeiou",
"username" : "aeiou"
}}]
- parameter username: (path) The name that needs to be fetched. Use user1 for testing.
@@ -245,8 +245,8 @@ open class UserAPI: APIBase {
-
- responseHeaders: [X-Rate-Limit(Int32), X-Expires-After(Date)]
- responseHeaders: [X-Rate-Limit(Int32), X-Expires-After(Date)]
- examples: [{example=aeiou, contentType=application/xml}, {example="aeiou", contentType=application/json}]
- examples: [{example=aeiou, contentType=application/xml}, {example="aeiou", contentType=application/json}]
- examples: [{contentType=application/xml, example=aeiou}, {contentType=application/json, example="aeiou"}]
- examples: [{contentType=application/xml, example=aeiou}, {contentType=application/json, example="aeiou"}]
- parameter username: (query) The user name for login
- parameter password: (query) The password for login in clear text

View File

@@ -252,7 +252,6 @@ class Decoders {
}
// Decoder for [AdditionalPropertiesClass]
Decoders.addDecoder(clazz: [AdditionalPropertiesClass].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[AdditionalPropertiesClass]> in
return Decoders.decode(clazz: [AdditionalPropertiesClass].self, source: source, instance: instance)
}
// Decoder for AdditionalPropertiesClass
@@ -280,7 +279,6 @@ class Decoders {
// Decoder for [Animal]
Decoders.addDecoder(clazz: [Animal].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Animal]> in
return Decoders.decode(clazz: [Animal].self, source: source, instance: instance)
}
// Decoder for Animal
@@ -315,7 +313,6 @@ class Decoders {
// Decoder for [ApiResponse]
Decoders.addDecoder(clazz: [ApiResponse].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[ApiResponse]> in
return Decoders.decode(clazz: [ApiResponse].self, source: source, instance: instance)
}
// Decoder for ApiResponse
@@ -349,7 +346,6 @@ class Decoders {
// Decoder for [ArrayOfArrayOfNumberOnly]
Decoders.addDecoder(clazz: [ArrayOfArrayOfNumberOnly].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[ArrayOfArrayOfNumberOnly]> in
return Decoders.decode(clazz: [ArrayOfArrayOfNumberOnly].self, source: source, instance: instance)
}
// Decoder for ArrayOfArrayOfNumberOnly
@@ -371,7 +367,6 @@ class Decoders {
// Decoder for [ArrayOfNumberOnly]
Decoders.addDecoder(clazz: [ArrayOfNumberOnly].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[ArrayOfNumberOnly]> in
return Decoders.decode(clazz: [ArrayOfNumberOnly].self, source: source, instance: instance)
}
// Decoder for ArrayOfNumberOnly
@@ -393,7 +388,6 @@ class Decoders {
// Decoder for [ArrayTest]
Decoders.addDecoder(clazz: [ArrayTest].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[ArrayTest]> in
return Decoders.decode(clazz: [ArrayTest].self, source: source, instance: instance)
}
// Decoder for ArrayTest
@@ -427,7 +421,6 @@ class Decoders {
// Decoder for [Capitalization]
Decoders.addDecoder(clazz: [Capitalization].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Capitalization]> in
return Decoders.decode(clazz: [Capitalization].self, source: source, instance: instance)
}
// Decoder for Capitalization
@@ -479,7 +472,6 @@ class Decoders {
// Decoder for [Cat]
Decoders.addDecoder(clazz: [Cat].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Cat]> in
return Decoders.decode(clazz: [Cat].self, source: source, instance: instance)
}
// Decoder for Cat
@@ -516,7 +508,6 @@ class Decoders {
// Decoder for [Category]
Decoders.addDecoder(clazz: [Category].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Category]> in
return Decoders.decode(clazz: [Category].self, source: source, instance: instance)
}
// Decoder for Category
@@ -544,7 +535,6 @@ class Decoders {
// Decoder for [ClassModel]
Decoders.addDecoder(clazz: [ClassModel].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[ClassModel]> in
return Decoders.decode(clazz: [ClassModel].self, source: source, instance: instance)
}
// Decoder for ClassModel
@@ -566,7 +556,6 @@ class Decoders {
// Decoder for [Client]
Decoders.addDecoder(clazz: [Client].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Client]> in
return Decoders.decode(clazz: [Client].self, source: source, instance: instance)
}
// Decoder for Client
@@ -588,7 +577,6 @@ class Decoders {
// Decoder for [Dog]
Decoders.addDecoder(clazz: [Dog].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Dog]> in
return Decoders.decode(clazz: [Dog].self, source: source, instance: instance)
}
// Decoder for Dog
@@ -625,7 +613,6 @@ class Decoders {
// Decoder for [EnumArrays]
Decoders.addDecoder(clazz: [EnumArrays].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[EnumArrays]> in
return Decoders.decode(clazz: [EnumArrays].self, source: source, instance: instance)
}
// Decoder for EnumArrays
@@ -653,7 +640,6 @@ class Decoders {
// Decoder for [EnumClass]
Decoders.addDecoder(clazz: [EnumClass].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[EnumClass]> in
return Decoders.decode(clazz: [EnumClass].self, source: source, instance: instance)
}
// Decoder for EnumClass
@@ -664,7 +650,6 @@ class Decoders {
// Decoder for [EnumTest]
Decoders.addDecoder(clazz: [EnumTest].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[EnumTest]> in
return Decoders.decode(clazz: [EnumTest].self, source: source, instance: instance)
}
// Decoder for EnumTest
@@ -704,7 +689,6 @@ class Decoders {
// Decoder for [FormatTest]
Decoders.addDecoder(clazz: [FormatTest].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[FormatTest]> in
return Decoders.decode(clazz: [FormatTest].self, source: source, instance: instance)
}
// Decoder for FormatTest
@@ -798,7 +782,6 @@ class Decoders {
// Decoder for [HasOnlyReadOnly]
Decoders.addDecoder(clazz: [HasOnlyReadOnly].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[HasOnlyReadOnly]> in
return Decoders.decode(clazz: [HasOnlyReadOnly].self, source: source, instance: instance)
}
// Decoder for HasOnlyReadOnly
@@ -826,7 +809,6 @@ class Decoders {
// Decoder for [List]
Decoders.addDecoder(clazz: [List].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[List]> in
return Decoders.decode(clazz: [List].self, source: source, instance: instance)
}
// Decoder for List
@@ -848,7 +830,6 @@ class Decoders {
// Decoder for [MapTest]
Decoders.addDecoder(clazz: [MapTest].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[MapTest]> in
return Decoders.decode(clazz: [MapTest].self, source: source, instance: instance)
}
// Decoder for MapTest
@@ -876,7 +857,6 @@ class Decoders {
// Decoder for [MixedPropertiesAndAdditionalPropertiesClass]
Decoders.addDecoder(clazz: [MixedPropertiesAndAdditionalPropertiesClass].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[MixedPropertiesAndAdditionalPropertiesClass]> in
return Decoders.decode(clazz: [MixedPropertiesAndAdditionalPropertiesClass].self, source: source, instance: instance)
}
// Decoder for MixedPropertiesAndAdditionalPropertiesClass
@@ -910,7 +890,6 @@ class Decoders {
// Decoder for [Model200Response]
Decoders.addDecoder(clazz: [Model200Response].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Model200Response]> in
return Decoders.decode(clazz: [Model200Response].self, source: source, instance: instance)
}
// Decoder for Model200Response
@@ -938,7 +917,6 @@ class Decoders {
// Decoder for [Name]
Decoders.addDecoder(clazz: [Name].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Name]> in
return Decoders.decode(clazz: [Name].self, source: source, instance: instance)
}
// Decoder for Name
@@ -978,7 +956,6 @@ class Decoders {
// Decoder for [NumberOnly]
Decoders.addDecoder(clazz: [NumberOnly].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[NumberOnly]> in
return Decoders.decode(clazz: [NumberOnly].self, source: source, instance: instance)
}
// Decoder for NumberOnly
@@ -1000,7 +977,6 @@ class Decoders {
// Decoder for [Order]
Decoders.addDecoder(clazz: [Order].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Order]> in
return Decoders.decode(clazz: [Order].self, source: source, instance: instance)
}
// Decoder for Order
@@ -1052,7 +1028,6 @@ class Decoders {
// Decoder for [OuterEnum]
Decoders.addDecoder(clazz: [OuterEnum].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[OuterEnum]> in
return Decoders.decode(clazz: [OuterEnum].self, source: source, instance: instance)
}
// Decoder for OuterEnum
@@ -1063,7 +1038,6 @@ class Decoders {
// Decoder for [Pet]
Decoders.addDecoder(clazz: [Pet].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Pet]> in
return Decoders.decode(clazz: [Pet].self, source: source, instance: instance)
}
// Decoder for Pet
@@ -1115,7 +1089,6 @@ class Decoders {
// Decoder for [ReadOnlyFirst]
Decoders.addDecoder(clazz: [ReadOnlyFirst].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[ReadOnlyFirst]> in
return Decoders.decode(clazz: [ReadOnlyFirst].self, source: source, instance: instance)
}
// Decoder for ReadOnlyFirst
@@ -1143,7 +1116,6 @@ class Decoders {
// Decoder for [Return]
Decoders.addDecoder(clazz: [Return].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Return]> in
return Decoders.decode(clazz: [Return].self, source: source, instance: instance)
}
// Decoder for Return
@@ -1165,7 +1137,6 @@ class Decoders {
// Decoder for [SpecialModelName]
Decoders.addDecoder(clazz: [SpecialModelName].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[SpecialModelName]> in
return Decoders.decode(clazz: [SpecialModelName].self, source: source, instance: instance)
}
// Decoder for SpecialModelName
@@ -1187,7 +1158,6 @@ class Decoders {
// Decoder for [Tag]
Decoders.addDecoder(clazz: [Tag].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Tag]> in
return Decoders.decode(clazz: [Tag].self, source: source, instance: instance)
}
// Decoder for Tag
@@ -1215,7 +1185,6 @@ class Decoders {
// Decoder for [User]
Decoders.addDecoder(clazz: [User].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[User]> in
return Decoders.decode(clazz: [User].self, source: source, instance: instance)
}
// Decoder for User

View File

@@ -45,9 +45,9 @@ open class FakeAPI: APIBase {
To test \"client\" model
- PATCH /fake
- To test \"client\" model
- examples: [{example={
- examples: [{contentType=application/json, example={
"client" : "aeiou"
}, contentType=application/json}]
}}]
- parameter body: (body) client model

View File

@@ -44,9 +44,9 @@ open class Fake_classname_tags123API: APIBase {
/**
To test class name in snake case
- PATCH /fake_classname_test
- examples: [{example={
- examples: [{contentType=application/json, example={
"client" : "aeiou"
}, contentType=application/json}]
}}]
- parameter body: (body) client model

View File

@@ -175,7 +175,7 @@ open class PetAPI: APIBase {
- OAuth:
- type: oauth2
- name: petstore_auth
- examples: [{example=<Pet>
- examples: [{contentType=application/xml, example=<Pet>
<id>123456789</id>
<name>doggie</name>
<photoUrls>
@@ -184,21 +184,21 @@ open class PetAPI: APIBase {
<tags>
</tags>
<status>aeiou</status>
</Pet>, contentType=application/xml}, {example=[ {
"tags" : [ {
"id" : 1,
"name" : "aeiou"
} ],
</Pet>}, {contentType=application/json, example=[ {
"photoUrls" : [ "aeiou" ],
"name" : "doggie",
"id" : 0,
"category" : {
"id" : 6,
"name" : "aeiou"
"name" : "aeiou",
"id" : 6
},
"status" : "available",
"name" : "doggie",
"photoUrls" : [ "aeiou" ]
} ], contentType=application/json}]
- examples: [{example=<Pet>
"tags" : [ {
"name" : "aeiou",
"id" : 1
} ],
"status" : "available"
} ]}]
- examples: [{contentType=application/xml, example=<Pet>
<id>123456789</id>
<name>doggie</name>
<photoUrls>
@@ -207,20 +207,20 @@ open class PetAPI: APIBase {
<tags>
</tags>
<status>aeiou</status>
</Pet>, contentType=application/xml}, {example=[ {
"tags" : [ {
"id" : 1,
"name" : "aeiou"
} ],
</Pet>}, {contentType=application/json, example=[ {
"photoUrls" : [ "aeiou" ],
"name" : "doggie",
"id" : 0,
"category" : {
"id" : 6,
"name" : "aeiou"
"name" : "aeiou",
"id" : 6
},
"status" : "available",
"name" : "doggie",
"photoUrls" : [ "aeiou" ]
} ], contentType=application/json}]
"tags" : [ {
"name" : "aeiou",
"id" : 1
} ],
"status" : "available"
} ]}]
- parameter status: (query) Status values that need to be considered for filter
@@ -279,7 +279,7 @@ open class PetAPI: APIBase {
- OAuth:
- type: oauth2
- name: petstore_auth
- examples: [{example=<Pet>
- examples: [{contentType=application/xml, example=<Pet>
<id>123456789</id>
<name>doggie</name>
<photoUrls>
@@ -288,21 +288,21 @@ open class PetAPI: APIBase {
<tags>
</tags>
<status>aeiou</status>
</Pet>, contentType=application/xml}, {example=[ {
"tags" : [ {
"id" : 1,
"name" : "aeiou"
} ],
</Pet>}, {contentType=application/json, example=[ {
"photoUrls" : [ "aeiou" ],
"name" : "doggie",
"id" : 0,
"category" : {
"id" : 6,
"name" : "aeiou"
"name" : "aeiou",
"id" : 6
},
"status" : "available",
"name" : "doggie",
"photoUrls" : [ "aeiou" ]
} ], contentType=application/json}]
- examples: [{example=<Pet>
"tags" : [ {
"name" : "aeiou",
"id" : 1
} ],
"status" : "available"
} ]}]
- examples: [{contentType=application/xml, example=<Pet>
<id>123456789</id>
<name>doggie</name>
<photoUrls>
@@ -311,20 +311,20 @@ open class PetAPI: APIBase {
<tags>
</tags>
<status>aeiou</status>
</Pet>, contentType=application/xml}, {example=[ {
"tags" : [ {
"id" : 1,
"name" : "aeiou"
} ],
</Pet>}, {contentType=application/json, example=[ {
"photoUrls" : [ "aeiou" ],
"name" : "doggie",
"id" : 0,
"category" : {
"id" : 6,
"name" : "aeiou"
"name" : "aeiou",
"id" : 6
},
"status" : "available",
"name" : "doggie",
"photoUrls" : [ "aeiou" ]
} ], contentType=application/json}]
"tags" : [ {
"name" : "aeiou",
"id" : 1
} ],
"status" : "available"
} ]}]
- parameter tags: (query) Tags to filter by
@@ -383,7 +383,7 @@ open class PetAPI: APIBase {
- API Key:
- type: apiKey api_key
- name: api_key
- examples: [{example=<Pet>
- examples: [{contentType=application/xml, example=<Pet>
<id>123456789</id>
<name>doggie</name>
<photoUrls>
@@ -392,21 +392,21 @@ open class PetAPI: APIBase {
<tags>
</tags>
<status>aeiou</status>
</Pet>, contentType=application/xml}, {example={
"tags" : [ {
"id" : 1,
"name" : "aeiou"
} ],
</Pet>}, {contentType=application/json, example={
"photoUrls" : [ "aeiou" ],
"name" : "doggie",
"id" : 0,
"category" : {
"id" : 6,
"name" : "aeiou"
"name" : "aeiou",
"id" : 6
},
"status" : "available",
"name" : "doggie",
"photoUrls" : [ "aeiou" ]
}, contentType=application/json}]
- examples: [{example=<Pet>
"tags" : [ {
"name" : "aeiou",
"id" : 1
} ],
"status" : "available"
}}]
- examples: [{contentType=application/xml, example=<Pet>
<id>123456789</id>
<name>doggie</name>
<photoUrls>
@@ -415,20 +415,20 @@ open class PetAPI: APIBase {
<tags>
</tags>
<status>aeiou</status>
</Pet>, contentType=application/xml}, {example={
"tags" : [ {
"id" : 1,
"name" : "aeiou"
} ],
</Pet>}, {contentType=application/json, example={
"photoUrls" : [ "aeiou" ],
"name" : "doggie",
"id" : 0,
"category" : {
"id" : 6,
"name" : "aeiou"
"name" : "aeiou",
"id" : 6
},
"status" : "available",
"name" : "doggie",
"photoUrls" : [ "aeiou" ]
}, contentType=application/json}]
"tags" : [ {
"name" : "aeiou",
"id" : 1
} ],
"status" : "available"
}}]
- parameter petId: (path) ID of pet to return
@@ -612,11 +612,11 @@ open class PetAPI: APIBase {
- OAuth:
- type: oauth2
- name: petstore_auth
- examples: [{example={
"message" : "aeiou",
- examples: [{contentType=application/json, example={
"code" : 0,
"type" : "aeiou"
}, contentType=application/json}]
"type" : "aeiou",
"message" : "aeiou"
}}]
- parameter petId: (path) ID of pet to update
- parameter additionalMetadata: (form) Additional data to pass to server (optional)

View File

@@ -99,9 +99,9 @@ open class StoreAPI: APIBase {
- API Key:
- type: apiKey api_key
- name: api_key
- examples: [{example={
- examples: [{contentType=application/json, example={
"key" : 0
}, contentType=application/json}]
}}]
- returns: RequestBuilder<[String:Int32]>
*/
@@ -152,36 +152,36 @@ open class StoreAPI: APIBase {
Find purchase order by ID
- GET /store/order/{order_id}
- For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
- examples: [{example=<Order>
- examples: [{contentType=application/xml, example=<Order>
<id>123456789</id>
<petId>123456789</petId>
<quantity>123</quantity>
<shipDate>2000-01-23T04:56:07.000Z</shipDate>
<status>aeiou</status>
<complete>true</complete>
</Order>, contentType=application/xml}, {example={
"id" : 0,
</Order>}, {contentType=application/json, example={
"petId" : 6,
"complete" : false,
"status" : "placed",
"quantity" : 1,
"shipDate" : "2000-01-23T04:56:07.000+00:00"
}, contentType=application/json}]
- examples: [{example=<Order>
"id" : 0,
"shipDate" : "2000-01-23T04:56:07.000+00:00",
"complete" : false,
"status" : "placed"
}}]
- examples: [{contentType=application/xml, example=<Order>
<id>123456789</id>
<petId>123456789</petId>
<quantity>123</quantity>
<shipDate>2000-01-23T04:56:07.000Z</shipDate>
<status>aeiou</status>
<complete>true</complete>
</Order>, contentType=application/xml}, {example={
"id" : 0,
</Order>}, {contentType=application/json, example={
"petId" : 6,
"complete" : false,
"status" : "placed",
"quantity" : 1,
"shipDate" : "2000-01-23T04:56:07.000+00:00"
}, contentType=application/json}]
"id" : 0,
"shipDate" : "2000-01-23T04:56:07.000+00:00",
"complete" : false,
"status" : "placed"
}}]
- parameter orderId: (path) ID of pet that needs to be fetched
@@ -235,36 +235,36 @@ open class StoreAPI: APIBase {
Place an order for a pet
- POST /store/order
-
- examples: [{example=<Order>
- examples: [{contentType=application/xml, example=<Order>
<id>123456789</id>
<petId>123456789</petId>
<quantity>123</quantity>
<shipDate>2000-01-23T04:56:07.000Z</shipDate>
<status>aeiou</status>
<complete>true</complete>
</Order>, contentType=application/xml}, {example={
"id" : 0,
</Order>}, {contentType=application/json, example={
"petId" : 6,
"complete" : false,
"status" : "placed",
"quantity" : 1,
"shipDate" : "2000-01-23T04:56:07.000+00:00"
}, contentType=application/json}]
- examples: [{example=<Order>
"id" : 0,
"shipDate" : "2000-01-23T04:56:07.000+00:00",
"complete" : false,
"status" : "placed"
}}]
- examples: [{contentType=application/xml, example=<Order>
<id>123456789</id>
<petId>123456789</petId>
<quantity>123</quantity>
<shipDate>2000-01-23T04:56:07.000Z</shipDate>
<status>aeiou</status>
<complete>true</complete>
</Order>, contentType=application/xml}, {example={
"id" : 0,
</Order>}, {contentType=application/json, example={
"petId" : 6,
"complete" : false,
"status" : "placed",
"quantity" : 1,
"shipDate" : "2000-01-23T04:56:07.000+00:00"
}, contentType=application/json}]
"id" : 0,
"shipDate" : "2000-01-23T04:56:07.000+00:00",
"complete" : false,
"status" : "placed"
}}]
- parameter body: (body) order placed for purchasing the pet

View File

@@ -254,7 +254,7 @@ open class UserAPI: APIBase {
Get user by user name
- GET /user/{username}
-
- examples: [{example=<User>
- examples: [{contentType=application/xml, example=<User>
<id>123456789</id>
<username>aeiou</username>
<firstName>aeiou</firstName>
@@ -263,17 +263,17 @@ open class UserAPI: APIBase {
<password>aeiou</password>
<phone>aeiou</phone>
<userStatus>123</userStatus>
</User>, contentType=application/xml}, {example={
"id" : 0,
"lastName" : "aeiou",
"phone" : "aeiou",
"username" : "aeiou",
"email" : "aeiou",
"userStatus" : 6,
</User>}, {contentType=application/json, example={
"firstName" : "aeiou",
"password" : "aeiou"
}, contentType=application/json}]
- examples: [{example=<User>
"lastName" : "aeiou",
"password" : "aeiou",
"userStatus" : 6,
"phone" : "aeiou",
"id" : 0,
"email" : "aeiou",
"username" : "aeiou"
}}]
- examples: [{contentType=application/xml, example=<User>
<id>123456789</id>
<username>aeiou</username>
<firstName>aeiou</firstName>
@@ -282,16 +282,16 @@ open class UserAPI: APIBase {
<password>aeiou</password>
<phone>aeiou</phone>
<userStatus>123</userStatus>
</User>, contentType=application/xml}, {example={
"id" : 0,
"lastName" : "aeiou",
"phone" : "aeiou",
"username" : "aeiou",
"email" : "aeiou",
"userStatus" : 6,
</User>}, {contentType=application/json, example={
"firstName" : "aeiou",
"password" : "aeiou"
}, contentType=application/json}]
"lastName" : "aeiou",
"password" : "aeiou",
"userStatus" : 6,
"phone" : "aeiou",
"id" : 0,
"email" : "aeiou",
"username" : "aeiou"
}}]
- parameter username: (path) The name that needs to be fetched. Use user1 for testing.
@@ -349,8 +349,8 @@ open class UserAPI: APIBase {
-
- responseHeaders: [X-Rate-Limit(Int32), X-Expires-After(Date)]
- responseHeaders: [X-Rate-Limit(Int32), X-Expires-After(Date)]
- examples: [{example=aeiou, contentType=application/xml}, {example="aeiou", contentType=application/json}]
- examples: [{example=aeiou, contentType=application/xml}, {example="aeiou", contentType=application/json}]
- examples: [{contentType=application/xml, example=aeiou}, {contentType=application/json, example="aeiou"}]
- examples: [{contentType=application/xml, example=aeiou}, {contentType=application/json, example="aeiou"}]
- parameter username: (query) The user name for login
- parameter password: (query) The password for login in clear text

View File

@@ -252,7 +252,6 @@ class Decoders {
}
// Decoder for [AdditionalPropertiesClass]
Decoders.addDecoder(clazz: [AdditionalPropertiesClass].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[AdditionalPropertiesClass]> in
return Decoders.decode(clazz: [AdditionalPropertiesClass].self, source: source, instance: instance)
}
// Decoder for AdditionalPropertiesClass
@@ -280,7 +279,6 @@ class Decoders {
// Decoder for [Animal]
Decoders.addDecoder(clazz: [Animal].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Animal]> in
return Decoders.decode(clazz: [Animal].self, source: source, instance: instance)
}
// Decoder for Animal
@@ -315,7 +313,6 @@ class Decoders {
// Decoder for [ApiResponse]
Decoders.addDecoder(clazz: [ApiResponse].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[ApiResponse]> in
return Decoders.decode(clazz: [ApiResponse].self, source: source, instance: instance)
}
// Decoder for ApiResponse
@@ -349,7 +346,6 @@ class Decoders {
// Decoder for [ArrayOfArrayOfNumberOnly]
Decoders.addDecoder(clazz: [ArrayOfArrayOfNumberOnly].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[ArrayOfArrayOfNumberOnly]> in
return Decoders.decode(clazz: [ArrayOfArrayOfNumberOnly].self, source: source, instance: instance)
}
// Decoder for ArrayOfArrayOfNumberOnly
@@ -371,7 +367,6 @@ class Decoders {
// Decoder for [ArrayOfNumberOnly]
Decoders.addDecoder(clazz: [ArrayOfNumberOnly].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[ArrayOfNumberOnly]> in
return Decoders.decode(clazz: [ArrayOfNumberOnly].self, source: source, instance: instance)
}
// Decoder for ArrayOfNumberOnly
@@ -393,7 +388,6 @@ class Decoders {
// Decoder for [ArrayTest]
Decoders.addDecoder(clazz: [ArrayTest].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[ArrayTest]> in
return Decoders.decode(clazz: [ArrayTest].self, source: source, instance: instance)
}
// Decoder for ArrayTest
@@ -427,7 +421,6 @@ class Decoders {
// Decoder for [Capitalization]
Decoders.addDecoder(clazz: [Capitalization].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Capitalization]> in
return Decoders.decode(clazz: [Capitalization].self, source: source, instance: instance)
}
// Decoder for Capitalization
@@ -479,7 +472,6 @@ class Decoders {
// Decoder for [Cat]
Decoders.addDecoder(clazz: [Cat].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Cat]> in
return Decoders.decode(clazz: [Cat].self, source: source, instance: instance)
}
// Decoder for Cat
@@ -516,7 +508,6 @@ class Decoders {
// Decoder for [Category]
Decoders.addDecoder(clazz: [Category].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Category]> in
return Decoders.decode(clazz: [Category].self, source: source, instance: instance)
}
// Decoder for Category
@@ -544,7 +535,6 @@ class Decoders {
// Decoder for [ClassModel]
Decoders.addDecoder(clazz: [ClassModel].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[ClassModel]> in
return Decoders.decode(clazz: [ClassModel].self, source: source, instance: instance)
}
// Decoder for ClassModel
@@ -566,7 +556,6 @@ class Decoders {
// Decoder for [Client]
Decoders.addDecoder(clazz: [Client].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Client]> in
return Decoders.decode(clazz: [Client].self, source: source, instance: instance)
}
// Decoder for Client
@@ -588,7 +577,6 @@ class Decoders {
// Decoder for [Dog]
Decoders.addDecoder(clazz: [Dog].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Dog]> in
return Decoders.decode(clazz: [Dog].self, source: source, instance: instance)
}
// Decoder for Dog
@@ -625,7 +613,6 @@ class Decoders {
// Decoder for [EnumArrays]
Decoders.addDecoder(clazz: [EnumArrays].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[EnumArrays]> in
return Decoders.decode(clazz: [EnumArrays].self, source: source, instance: instance)
}
// Decoder for EnumArrays
@@ -653,7 +640,6 @@ class Decoders {
// Decoder for [EnumClass]
Decoders.addDecoder(clazz: [EnumClass].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[EnumClass]> in
return Decoders.decode(clazz: [EnumClass].self, source: source, instance: instance)
}
// Decoder for EnumClass
@@ -664,7 +650,6 @@ class Decoders {
// Decoder for [EnumTest]
Decoders.addDecoder(clazz: [EnumTest].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[EnumTest]> in
return Decoders.decode(clazz: [EnumTest].self, source: source, instance: instance)
}
// Decoder for EnumTest
@@ -704,7 +689,6 @@ class Decoders {
// Decoder for [FormatTest]
Decoders.addDecoder(clazz: [FormatTest].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[FormatTest]> in
return Decoders.decode(clazz: [FormatTest].self, source: source, instance: instance)
}
// Decoder for FormatTest
@@ -798,7 +782,6 @@ class Decoders {
// Decoder for [HasOnlyReadOnly]
Decoders.addDecoder(clazz: [HasOnlyReadOnly].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[HasOnlyReadOnly]> in
return Decoders.decode(clazz: [HasOnlyReadOnly].self, source: source, instance: instance)
}
// Decoder for HasOnlyReadOnly
@@ -826,7 +809,6 @@ class Decoders {
// Decoder for [List]
Decoders.addDecoder(clazz: [List].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[List]> in
return Decoders.decode(clazz: [List].self, source: source, instance: instance)
}
// Decoder for List
@@ -848,7 +830,6 @@ class Decoders {
// Decoder for [MapTest]
Decoders.addDecoder(clazz: [MapTest].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[MapTest]> in
return Decoders.decode(clazz: [MapTest].self, source: source, instance: instance)
}
// Decoder for MapTest
@@ -876,7 +857,6 @@ class Decoders {
// Decoder for [MixedPropertiesAndAdditionalPropertiesClass]
Decoders.addDecoder(clazz: [MixedPropertiesAndAdditionalPropertiesClass].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[MixedPropertiesAndAdditionalPropertiesClass]> in
return Decoders.decode(clazz: [MixedPropertiesAndAdditionalPropertiesClass].self, source: source, instance: instance)
}
// Decoder for MixedPropertiesAndAdditionalPropertiesClass
@@ -910,7 +890,6 @@ class Decoders {
// Decoder for [Model200Response]
Decoders.addDecoder(clazz: [Model200Response].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Model200Response]> in
return Decoders.decode(clazz: [Model200Response].self, source: source, instance: instance)
}
// Decoder for Model200Response
@@ -938,7 +917,6 @@ class Decoders {
// Decoder for [Name]
Decoders.addDecoder(clazz: [Name].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Name]> in
return Decoders.decode(clazz: [Name].self, source: source, instance: instance)
}
// Decoder for Name
@@ -978,7 +956,6 @@ class Decoders {
// Decoder for [NumberOnly]
Decoders.addDecoder(clazz: [NumberOnly].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[NumberOnly]> in
return Decoders.decode(clazz: [NumberOnly].self, source: source, instance: instance)
}
// Decoder for NumberOnly
@@ -1000,7 +977,6 @@ class Decoders {
// Decoder for [Order]
Decoders.addDecoder(clazz: [Order].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Order]> in
return Decoders.decode(clazz: [Order].self, source: source, instance: instance)
}
// Decoder for Order
@@ -1052,7 +1028,6 @@ class Decoders {
// Decoder for [OuterEnum]
Decoders.addDecoder(clazz: [OuterEnum].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[OuterEnum]> in
return Decoders.decode(clazz: [OuterEnum].self, source: source, instance: instance)
}
// Decoder for OuterEnum
@@ -1063,7 +1038,6 @@ class Decoders {
// Decoder for [Pet]
Decoders.addDecoder(clazz: [Pet].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Pet]> in
return Decoders.decode(clazz: [Pet].self, source: source, instance: instance)
}
// Decoder for Pet
@@ -1115,7 +1089,6 @@ class Decoders {
// Decoder for [ReadOnlyFirst]
Decoders.addDecoder(clazz: [ReadOnlyFirst].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[ReadOnlyFirst]> in
return Decoders.decode(clazz: [ReadOnlyFirst].self, source: source, instance: instance)
}
// Decoder for ReadOnlyFirst
@@ -1143,7 +1116,6 @@ class Decoders {
// Decoder for [Return]
Decoders.addDecoder(clazz: [Return].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Return]> in
return Decoders.decode(clazz: [Return].self, source: source, instance: instance)
}
// Decoder for Return
@@ -1165,7 +1137,6 @@ class Decoders {
// Decoder for [SpecialModelName]
Decoders.addDecoder(clazz: [SpecialModelName].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[SpecialModelName]> in
return Decoders.decode(clazz: [SpecialModelName].self, source: source, instance: instance)
}
// Decoder for SpecialModelName
@@ -1187,7 +1158,6 @@ class Decoders {
// Decoder for [Tag]
Decoders.addDecoder(clazz: [Tag].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Tag]> in
return Decoders.decode(clazz: [Tag].self, source: source, instance: instance)
}
// Decoder for Tag
@@ -1215,7 +1185,6 @@ class Decoders {
// Decoder for [User]
Decoders.addDecoder(clazz: [User].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[User]> in
return Decoders.decode(clazz: [User].self, source: source, instance: instance)
}
// Decoder for User

View File

@@ -47,9 +47,9 @@ open class FakeAPI: APIBase {
To test \"client\" model
- PATCH /fake
- To test \"client\" model
- examples: [{example={
- examples: [{contentType=application/json, example={
"client" : "aeiou"
}, contentType=application/json}]
}}]
- parameter body: (body) client model

View File

@@ -46,9 +46,9 @@ open class Fake_classname_tags123API: APIBase {
/**
To test class name in snake case
- PATCH /fake_classname_test
- examples: [{example={
- examples: [{contentType=application/json, example={
"client" : "aeiou"
}, contentType=application/json}]
}}]
- parameter body: (body) client model

View File

@@ -181,7 +181,7 @@ open class PetAPI: APIBase {
- OAuth:
- type: oauth2
- name: petstore_auth
- examples: [{example=<Pet>
- examples: [{contentType=application/xml, example=<Pet>
<id>123456789</id>
<name>doggie</name>
<photoUrls>
@@ -190,21 +190,21 @@ open class PetAPI: APIBase {
<tags>
</tags>
<status>aeiou</status>
</Pet>, contentType=application/xml}, {example=[ {
"tags" : [ {
"id" : 1,
"name" : "aeiou"
} ],
</Pet>}, {contentType=application/json, example=[ {
"photoUrls" : [ "aeiou" ],
"name" : "doggie",
"id" : 0,
"category" : {
"id" : 6,
"name" : "aeiou"
"name" : "aeiou",
"id" : 6
},
"status" : "available",
"name" : "doggie",
"photoUrls" : [ "aeiou" ]
} ], contentType=application/json}]
- examples: [{example=<Pet>
"tags" : [ {
"name" : "aeiou",
"id" : 1
} ],
"status" : "available"
} ]}]
- examples: [{contentType=application/xml, example=<Pet>
<id>123456789</id>
<name>doggie</name>
<photoUrls>
@@ -213,20 +213,20 @@ open class PetAPI: APIBase {
<tags>
</tags>
<status>aeiou</status>
</Pet>, contentType=application/xml}, {example=[ {
"tags" : [ {
"id" : 1,
"name" : "aeiou"
} ],
</Pet>}, {contentType=application/json, example=[ {
"photoUrls" : [ "aeiou" ],
"name" : "doggie",
"id" : 0,
"category" : {
"id" : 6,
"name" : "aeiou"
"name" : "aeiou",
"id" : 6
},
"status" : "available",
"name" : "doggie",
"photoUrls" : [ "aeiou" ]
} ], contentType=application/json}]
"tags" : [ {
"name" : "aeiou",
"id" : 1
} ],
"status" : "available"
} ]}]
- parameter status: (query) Status values that need to be considered for filter
@@ -287,7 +287,7 @@ open class PetAPI: APIBase {
- OAuth:
- type: oauth2
- name: petstore_auth
- examples: [{example=<Pet>
- examples: [{contentType=application/xml, example=<Pet>
<id>123456789</id>
<name>doggie</name>
<photoUrls>
@@ -296,21 +296,21 @@ open class PetAPI: APIBase {
<tags>
</tags>
<status>aeiou</status>
</Pet>, contentType=application/xml}, {example=[ {
"tags" : [ {
"id" : 1,
"name" : "aeiou"
} ],
</Pet>}, {contentType=application/json, example=[ {
"photoUrls" : [ "aeiou" ],
"name" : "doggie",
"id" : 0,
"category" : {
"id" : 6,
"name" : "aeiou"
"name" : "aeiou",
"id" : 6
},
"status" : "available",
"name" : "doggie",
"photoUrls" : [ "aeiou" ]
} ], contentType=application/json}]
- examples: [{example=<Pet>
"tags" : [ {
"name" : "aeiou",
"id" : 1
} ],
"status" : "available"
} ]}]
- examples: [{contentType=application/xml, example=<Pet>
<id>123456789</id>
<name>doggie</name>
<photoUrls>
@@ -319,20 +319,20 @@ open class PetAPI: APIBase {
<tags>
</tags>
<status>aeiou</status>
</Pet>, contentType=application/xml}, {example=[ {
"tags" : [ {
"id" : 1,
"name" : "aeiou"
} ],
</Pet>}, {contentType=application/json, example=[ {
"photoUrls" : [ "aeiou" ],
"name" : "doggie",
"id" : 0,
"category" : {
"id" : 6,
"name" : "aeiou"
"name" : "aeiou",
"id" : 6
},
"status" : "available",
"name" : "doggie",
"photoUrls" : [ "aeiou" ]
} ], contentType=application/json}]
"tags" : [ {
"name" : "aeiou",
"id" : 1
} ],
"status" : "available"
} ]}]
- parameter tags: (query) Tags to filter by
@@ -393,7 +393,7 @@ open class PetAPI: APIBase {
- API Key:
- type: apiKey api_key
- name: api_key
- examples: [{example=<Pet>
- examples: [{contentType=application/xml, example=<Pet>
<id>123456789</id>
<name>doggie</name>
<photoUrls>
@@ -402,21 +402,21 @@ open class PetAPI: APIBase {
<tags>
</tags>
<status>aeiou</status>
</Pet>, contentType=application/xml}, {example={
"tags" : [ {
"id" : 1,
"name" : "aeiou"
} ],
</Pet>}, {contentType=application/json, example={
"photoUrls" : [ "aeiou" ],
"name" : "doggie",
"id" : 0,
"category" : {
"id" : 6,
"name" : "aeiou"
"name" : "aeiou",
"id" : 6
},
"status" : "available",
"name" : "doggie",
"photoUrls" : [ "aeiou" ]
}, contentType=application/json}]
- examples: [{example=<Pet>
"tags" : [ {
"name" : "aeiou",
"id" : 1
} ],
"status" : "available"
}}]
- examples: [{contentType=application/xml, example=<Pet>
<id>123456789</id>
<name>doggie</name>
<photoUrls>
@@ -425,20 +425,20 @@ open class PetAPI: APIBase {
<tags>
</tags>
<status>aeiou</status>
</Pet>, contentType=application/xml}, {example={
"tags" : [ {
"id" : 1,
"name" : "aeiou"
} ],
</Pet>}, {contentType=application/json, example={
"photoUrls" : [ "aeiou" ],
"name" : "doggie",
"id" : 0,
"category" : {
"id" : 6,
"name" : "aeiou"
"name" : "aeiou",
"id" : 6
},
"status" : "available",
"name" : "doggie",
"photoUrls" : [ "aeiou" ]
}, contentType=application/json}]
"tags" : [ {
"name" : "aeiou",
"id" : 1
} ],
"status" : "available"
}}]
- parameter petId: (path) ID of pet to return
@@ -628,11 +628,11 @@ open class PetAPI: APIBase {
- OAuth:
- type: oauth2
- name: petstore_auth
- examples: [{example={
"message" : "aeiou",
- examples: [{contentType=application/json, example={
"code" : 0,
"type" : "aeiou"
}, contentType=application/json}]
"type" : "aeiou",
"message" : "aeiou"
}}]
- parameter petId: (path) ID of pet to update
- parameter additionalMetadata: (form) Additional data to pass to server (optional)

View File

@@ -103,9 +103,9 @@ open class StoreAPI: APIBase {
- API Key:
- type: apiKey api_key
- name: api_key
- examples: [{example={
- examples: [{contentType=application/json, example={
"key" : 0
}, contentType=application/json}]
}}]
- returns: RequestBuilder<[String:Int32]>
*/
@@ -158,36 +158,36 @@ open class StoreAPI: APIBase {
Find purchase order by ID
- GET /store/order/{order_id}
- For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
- examples: [{example=<Order>
- examples: [{contentType=application/xml, example=<Order>
<id>123456789</id>
<petId>123456789</petId>
<quantity>123</quantity>
<shipDate>2000-01-23T04:56:07.000Z</shipDate>
<status>aeiou</status>
<complete>true</complete>
</Order>, contentType=application/xml}, {example={
"id" : 0,
</Order>}, {contentType=application/json, example={
"petId" : 6,
"complete" : false,
"status" : "placed",
"quantity" : 1,
"shipDate" : "2000-01-23T04:56:07.000+00:00"
}, contentType=application/json}]
- examples: [{example=<Order>
"id" : 0,
"shipDate" : "2000-01-23T04:56:07.000+00:00",
"complete" : false,
"status" : "placed"
}}]
- examples: [{contentType=application/xml, example=<Order>
<id>123456789</id>
<petId>123456789</petId>
<quantity>123</quantity>
<shipDate>2000-01-23T04:56:07.000Z</shipDate>
<status>aeiou</status>
<complete>true</complete>
</Order>, contentType=application/xml}, {example={
"id" : 0,
</Order>}, {contentType=application/json, example={
"petId" : 6,
"complete" : false,
"status" : "placed",
"quantity" : 1,
"shipDate" : "2000-01-23T04:56:07.000+00:00"
}, contentType=application/json}]
"id" : 0,
"shipDate" : "2000-01-23T04:56:07.000+00:00",
"complete" : false,
"status" : "placed"
}}]
- parameter orderId: (path) ID of pet that needs to be fetched
@@ -243,36 +243,36 @@ open class StoreAPI: APIBase {
Place an order for a pet
- POST /store/order
-
- examples: [{example=<Order>
- examples: [{contentType=application/xml, example=<Order>
<id>123456789</id>
<petId>123456789</petId>
<quantity>123</quantity>
<shipDate>2000-01-23T04:56:07.000Z</shipDate>
<status>aeiou</status>
<complete>true</complete>
</Order>, contentType=application/xml}, {example={
"id" : 0,
</Order>}, {contentType=application/json, example={
"petId" : 6,
"complete" : false,
"status" : "placed",
"quantity" : 1,
"shipDate" : "2000-01-23T04:56:07.000+00:00"
}, contentType=application/json}]
- examples: [{example=<Order>
"id" : 0,
"shipDate" : "2000-01-23T04:56:07.000+00:00",
"complete" : false,
"status" : "placed"
}}]
- examples: [{contentType=application/xml, example=<Order>
<id>123456789</id>
<petId>123456789</petId>
<quantity>123</quantity>
<shipDate>2000-01-23T04:56:07.000Z</shipDate>
<status>aeiou</status>
<complete>true</complete>
</Order>, contentType=application/xml}, {example={
"id" : 0,
</Order>}, {contentType=application/json, example={
"petId" : 6,
"complete" : false,
"status" : "placed",
"quantity" : 1,
"shipDate" : "2000-01-23T04:56:07.000+00:00"
}, contentType=application/json}]
"id" : 0,
"shipDate" : "2000-01-23T04:56:07.000+00:00",
"complete" : false,
"status" : "placed"
}}]
- parameter body: (body) order placed for purchasing the pet

View File

@@ -264,7 +264,7 @@ open class UserAPI: APIBase {
Get user by user name
- GET /user/{username}
-
- examples: [{example=<User>
- examples: [{contentType=application/xml, example=<User>
<id>123456789</id>
<username>aeiou</username>
<firstName>aeiou</firstName>
@@ -273,17 +273,17 @@ open class UserAPI: APIBase {
<password>aeiou</password>
<phone>aeiou</phone>
<userStatus>123</userStatus>
</User>, contentType=application/xml}, {example={
"id" : 0,
"lastName" : "aeiou",
"phone" : "aeiou",
"username" : "aeiou",
"email" : "aeiou",
"userStatus" : 6,
</User>}, {contentType=application/json, example={
"firstName" : "aeiou",
"password" : "aeiou"
}, contentType=application/json}]
- examples: [{example=<User>
"lastName" : "aeiou",
"password" : "aeiou",
"userStatus" : 6,
"phone" : "aeiou",
"id" : 0,
"email" : "aeiou",
"username" : "aeiou"
}}]
- examples: [{contentType=application/xml, example=<User>
<id>123456789</id>
<username>aeiou</username>
<firstName>aeiou</firstName>
@@ -292,16 +292,16 @@ open class UserAPI: APIBase {
<password>aeiou</password>
<phone>aeiou</phone>
<userStatus>123</userStatus>
</User>, contentType=application/xml}, {example={
"id" : 0,
"lastName" : "aeiou",
"phone" : "aeiou",
"username" : "aeiou",
"email" : "aeiou",
"userStatus" : 6,
</User>}, {contentType=application/json, example={
"firstName" : "aeiou",
"password" : "aeiou"
}, contentType=application/json}]
"lastName" : "aeiou",
"password" : "aeiou",
"userStatus" : 6,
"phone" : "aeiou",
"id" : 0,
"email" : "aeiou",
"username" : "aeiou"
}}]
- parameter username: (path) The name that needs to be fetched. Use user1 for testing.
@@ -361,8 +361,8 @@ open class UserAPI: APIBase {
-
- responseHeaders: [X-Rate-Limit(Int32), X-Expires-After(Date)]
- responseHeaders: [X-Rate-Limit(Int32), X-Expires-After(Date)]
- examples: [{example=aeiou, contentType=application/xml}, {example="aeiou", contentType=application/json}]
- examples: [{example=aeiou, contentType=application/xml}, {example="aeiou", contentType=application/json}]
- examples: [{contentType=application/xml, example=aeiou}, {contentType=application/json, example="aeiou"}]
- examples: [{contentType=application/xml, example=aeiou}, {contentType=application/json, example="aeiou"}]
- parameter username: (query) The user name for login
- parameter password: (query) The password for login in clear text

View File

@@ -252,7 +252,6 @@ class Decoders {
}
// Decoder for [AdditionalPropertiesClass]
Decoders.addDecoder(clazz: [AdditionalPropertiesClass].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[AdditionalPropertiesClass]> in
return Decoders.decode(clazz: [AdditionalPropertiesClass].self, source: source, instance: instance)
}
// Decoder for AdditionalPropertiesClass
@@ -280,7 +279,6 @@ class Decoders {
// Decoder for [Animal]
Decoders.addDecoder(clazz: [Animal].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Animal]> in
return Decoders.decode(clazz: [Animal].self, source: source, instance: instance)
}
// Decoder for Animal
@@ -315,7 +313,6 @@ class Decoders {
// Decoder for [ApiResponse]
Decoders.addDecoder(clazz: [ApiResponse].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[ApiResponse]> in
return Decoders.decode(clazz: [ApiResponse].self, source: source, instance: instance)
}
// Decoder for ApiResponse
@@ -349,7 +346,6 @@ class Decoders {
// Decoder for [ArrayOfArrayOfNumberOnly]
Decoders.addDecoder(clazz: [ArrayOfArrayOfNumberOnly].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[ArrayOfArrayOfNumberOnly]> in
return Decoders.decode(clazz: [ArrayOfArrayOfNumberOnly].self, source: source, instance: instance)
}
// Decoder for ArrayOfArrayOfNumberOnly
@@ -371,7 +367,6 @@ class Decoders {
// Decoder for [ArrayOfNumberOnly]
Decoders.addDecoder(clazz: [ArrayOfNumberOnly].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[ArrayOfNumberOnly]> in
return Decoders.decode(clazz: [ArrayOfNumberOnly].self, source: source, instance: instance)
}
// Decoder for ArrayOfNumberOnly
@@ -393,7 +388,6 @@ class Decoders {
// Decoder for [ArrayTest]
Decoders.addDecoder(clazz: [ArrayTest].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[ArrayTest]> in
return Decoders.decode(clazz: [ArrayTest].self, source: source, instance: instance)
}
// Decoder for ArrayTest
@@ -427,7 +421,6 @@ class Decoders {
// Decoder for [Capitalization]
Decoders.addDecoder(clazz: [Capitalization].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Capitalization]> in
return Decoders.decode(clazz: [Capitalization].self, source: source, instance: instance)
}
// Decoder for Capitalization
@@ -479,7 +472,6 @@ class Decoders {
// Decoder for [Cat]
Decoders.addDecoder(clazz: [Cat].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Cat]> in
return Decoders.decode(clazz: [Cat].self, source: source, instance: instance)
}
// Decoder for Cat
@@ -516,7 +508,6 @@ class Decoders {
// Decoder for [Category]
Decoders.addDecoder(clazz: [Category].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Category]> in
return Decoders.decode(clazz: [Category].self, source: source, instance: instance)
}
// Decoder for Category
@@ -544,7 +535,6 @@ class Decoders {
// Decoder for [ClassModel]
Decoders.addDecoder(clazz: [ClassModel].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[ClassModel]> in
return Decoders.decode(clazz: [ClassModel].self, source: source, instance: instance)
}
// Decoder for ClassModel
@@ -566,7 +556,6 @@ class Decoders {
// Decoder for [Client]
Decoders.addDecoder(clazz: [Client].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Client]> in
return Decoders.decode(clazz: [Client].self, source: source, instance: instance)
}
// Decoder for Client
@@ -588,7 +577,6 @@ class Decoders {
// Decoder for [Dog]
Decoders.addDecoder(clazz: [Dog].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Dog]> in
return Decoders.decode(clazz: [Dog].self, source: source, instance: instance)
}
// Decoder for Dog
@@ -625,7 +613,6 @@ class Decoders {
// Decoder for [EnumArrays]
Decoders.addDecoder(clazz: [EnumArrays].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[EnumArrays]> in
return Decoders.decode(clazz: [EnumArrays].self, source: source, instance: instance)
}
// Decoder for EnumArrays
@@ -653,7 +640,6 @@ class Decoders {
// Decoder for [EnumClass]
Decoders.addDecoder(clazz: [EnumClass].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[EnumClass]> in
return Decoders.decode(clazz: [EnumClass].self, source: source, instance: instance)
}
// Decoder for EnumClass
@@ -664,7 +650,6 @@ class Decoders {
// Decoder for [EnumTest]
Decoders.addDecoder(clazz: [EnumTest].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[EnumTest]> in
return Decoders.decode(clazz: [EnumTest].self, source: source, instance: instance)
}
// Decoder for EnumTest
@@ -704,7 +689,6 @@ class Decoders {
// Decoder for [FormatTest]
Decoders.addDecoder(clazz: [FormatTest].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[FormatTest]> in
return Decoders.decode(clazz: [FormatTest].self, source: source, instance: instance)
}
// Decoder for FormatTest
@@ -798,7 +782,6 @@ class Decoders {
// Decoder for [HasOnlyReadOnly]
Decoders.addDecoder(clazz: [HasOnlyReadOnly].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[HasOnlyReadOnly]> in
return Decoders.decode(clazz: [HasOnlyReadOnly].self, source: source, instance: instance)
}
// Decoder for HasOnlyReadOnly
@@ -826,7 +809,6 @@ class Decoders {
// Decoder for [List]
Decoders.addDecoder(clazz: [List].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[List]> in
return Decoders.decode(clazz: [List].self, source: source, instance: instance)
}
// Decoder for List
@@ -848,7 +830,6 @@ class Decoders {
// Decoder for [MapTest]
Decoders.addDecoder(clazz: [MapTest].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[MapTest]> in
return Decoders.decode(clazz: [MapTest].self, source: source, instance: instance)
}
// Decoder for MapTest
@@ -876,7 +857,6 @@ class Decoders {
// Decoder for [MixedPropertiesAndAdditionalPropertiesClass]
Decoders.addDecoder(clazz: [MixedPropertiesAndAdditionalPropertiesClass].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[MixedPropertiesAndAdditionalPropertiesClass]> in
return Decoders.decode(clazz: [MixedPropertiesAndAdditionalPropertiesClass].self, source: source, instance: instance)
}
// Decoder for MixedPropertiesAndAdditionalPropertiesClass
@@ -910,7 +890,6 @@ class Decoders {
// Decoder for [Model200Response]
Decoders.addDecoder(clazz: [Model200Response].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Model200Response]> in
return Decoders.decode(clazz: [Model200Response].self, source: source, instance: instance)
}
// Decoder for Model200Response
@@ -938,7 +917,6 @@ class Decoders {
// Decoder for [Name]
Decoders.addDecoder(clazz: [Name].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Name]> in
return Decoders.decode(clazz: [Name].self, source: source, instance: instance)
}
// Decoder for Name
@@ -978,7 +956,6 @@ class Decoders {
// Decoder for [NumberOnly]
Decoders.addDecoder(clazz: [NumberOnly].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[NumberOnly]> in
return Decoders.decode(clazz: [NumberOnly].self, source: source, instance: instance)
}
// Decoder for NumberOnly
@@ -1000,7 +977,6 @@ class Decoders {
// Decoder for [Order]
Decoders.addDecoder(clazz: [Order].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Order]> in
return Decoders.decode(clazz: [Order].self, source: source, instance: instance)
}
// Decoder for Order
@@ -1052,7 +1028,6 @@ class Decoders {
// Decoder for [OuterEnum]
Decoders.addDecoder(clazz: [OuterEnum].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[OuterEnum]> in
return Decoders.decode(clazz: [OuterEnum].self, source: source, instance: instance)
}
// Decoder for OuterEnum
@@ -1063,7 +1038,6 @@ class Decoders {
// Decoder for [Pet]
Decoders.addDecoder(clazz: [Pet].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Pet]> in
return Decoders.decode(clazz: [Pet].self, source: source, instance: instance)
}
// Decoder for Pet
@@ -1115,7 +1089,6 @@ class Decoders {
// Decoder for [ReadOnlyFirst]
Decoders.addDecoder(clazz: [ReadOnlyFirst].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[ReadOnlyFirst]> in
return Decoders.decode(clazz: [ReadOnlyFirst].self, source: source, instance: instance)
}
// Decoder for ReadOnlyFirst
@@ -1143,7 +1116,6 @@ class Decoders {
// Decoder for [Return]
Decoders.addDecoder(clazz: [Return].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Return]> in
return Decoders.decode(clazz: [Return].self, source: source, instance: instance)
}
// Decoder for Return
@@ -1165,7 +1137,6 @@ class Decoders {
// Decoder for [SpecialModelName]
Decoders.addDecoder(clazz: [SpecialModelName].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[SpecialModelName]> in
return Decoders.decode(clazz: [SpecialModelName].self, source: source, instance: instance)
}
// Decoder for SpecialModelName
@@ -1187,7 +1158,6 @@ class Decoders {
// Decoder for [Tag]
Decoders.addDecoder(clazz: [Tag].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[Tag]> in
return Decoders.decode(clazz: [Tag].self, source: source, instance: instance)
}
// Decoder for Tag
@@ -1215,7 +1185,6 @@ class Decoders {
// Decoder for [User]
Decoders.addDecoder(clazz: [User].self) { (source: AnyObject, instance: AnyObject?) -> Decoded<[User]> in
return Decoders.decode(clazz: [User].self, source: source, instance: instance)
}
// Decoder for User