diff --git a/samples/client/petstore/swift3/default/PetstoreClient/Classes/Swaggers/APIs.swift b/samples/client/petstore/swift3/default/PetstoreClient/Classes/Swaggers/APIs.swift
index a843d9f9f5e..f04c5a8ae9a 100644
--- a/samples/client/petstore/swift3/default/PetstoreClient/Classes/Swaggers/APIs.swift
+++ b/samples/client/petstore/swift3/default/PetstoreClient/Classes/Swaggers/APIs.swift
@@ -10,7 +10,7 @@ open class PetstoreClientAPI {
open static var basePath = "http://petstore.swagger.io:80/v2"
open static var credential: URLCredential?
open static var customHeaders: [String:String] = [:]
- static var requestBuilderFactory: RequestBuilderFactory = AlamofireRequestBuilderFactory()
+ open static var requestBuilderFactory: RequestBuilderFactory = AlamofireRequestBuilderFactory()
}
open class APIBase {
diff --git a/samples/client/petstore/swift3/default/PetstoreClient/Classes/Swaggers/APIs/FakeAPI.swift b/samples/client/petstore/swift3/default/PetstoreClient/Classes/Swaggers/APIs/FakeAPI.swift
index e92730c051c..51e54c5af34 100644
--- a/samples/client/petstore/swift3/default/PetstoreClient/Classes/Swaggers/APIs/FakeAPI.swift
+++ b/samples/client/petstore/swift3/default/PetstoreClient/Classes/Swaggers/APIs/FakeAPI.swift
@@ -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
diff --git a/samples/client/petstore/swift3/default/PetstoreClient/Classes/Swaggers/APIs/PetAPI.swift b/samples/client/petstore/swift3/default/PetstoreClient/Classes/Swaggers/APIs/PetAPI.swift
index 0ca1fa3bd7b..7378416c9c4 100644
--- a/samples/client/petstore/swift3/default/PetstoreClient/Classes/Swaggers/APIs/PetAPI.swift
+++ b/samples/client/petstore/swift3/default/PetstoreClient/Classes/Swaggers/APIs/PetAPI.swift
@@ -122,7 +122,7 @@ open class PetAPI: APIBase {
- OAuth:
- type: oauth2
- name: petstore_auth
- - examples: [{example=
+ - examples: [{contentType=application/xml, example=
123456789
doggie
@@ -131,21 +131,21 @@ open class PetAPI: APIBase {
aeiou
-, contentType=application/xml}, {example=[ {
- "tags" : [ {
- "id" : 1,
- "name" : "aeiou"
- } ],
+}, {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=
+ "tags" : [ {
+ "name" : "aeiou",
+ "id" : 1
+ } ],
+ "status" : "available"
+} ]}]
+ - examples: [{contentType=application/xml, example=
123456789
doggie
@@ -154,20 +154,20 @@ open class PetAPI: APIBase {
aeiou
-, contentType=application/xml}, {example=[ {
- "tags" : [ {
- "id" : 1,
- "name" : "aeiou"
- } ],
+}, {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=
+ - examples: [{contentType=application/xml, example=
123456789
doggie
@@ -218,21 +218,21 @@ open class PetAPI: APIBase {
aeiou
-, contentType=application/xml}, {example=[ {
- "tags" : [ {
- "id" : 1,
- "name" : "aeiou"
- } ],
+}, {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=
+ "tags" : [ {
+ "name" : "aeiou",
+ "id" : 1
+ } ],
+ "status" : "available"
+} ]}]
+ - examples: [{contentType=application/xml, example=
123456789
doggie
@@ -241,20 +241,20 @@ open class PetAPI: APIBase {
aeiou
-, contentType=application/xml}, {example=[ {
- "tags" : [ {
- "id" : 1,
- "name" : "aeiou"
- } ],
+}, {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=
+ - examples: [{contentType=application/xml, example=
123456789
doggie
@@ -305,21 +305,21 @@ open class PetAPI: APIBase {
aeiou
-, contentType=application/xml}, {example={
- "tags" : [ {
- "id" : 1,
- "name" : "aeiou"
- } ],
+}, {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=
+ "tags" : [ {
+ "name" : "aeiou",
+ "id" : 1
+ } ],
+ "status" : "available"
+}}]
+ - examples: [{contentType=application/xml, example=
123456789
doggie
@@ -328,20 +328,20 @@ open class PetAPI: APIBase {
aeiou
-, contentType=application/xml}, {example={
- "tags" : [ {
- "id" : 1,
- "name" : "aeiou"
- } ],
+}, {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)
diff --git a/samples/client/petstore/swift3/default/PetstoreClient/Classes/Swaggers/APIs/StoreAPI.swift b/samples/client/petstore/swift3/default/PetstoreClient/Classes/Swaggers/APIs/StoreAPI.swift
index b57280c316f..f6b937da861 100644
--- a/samples/client/petstore/swift3/default/PetstoreClient/Classes/Swaggers/APIs/StoreAPI.swift
+++ b/samples/client/petstore/swift3/default/PetstoreClient/Classes/Swaggers/APIs/StoreAPI.swift
@@ -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=
+ - examples: [{contentType=application/xml, example=
123456789
123456789
123
2000-01-23T04:56:07.000Z
aeiou
true
-, contentType=application/xml}, {example={
- "id" : 0,
+}, {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=
+ "id" : 0,
+ "shipDate" : "2000-01-23T04:56:07.000+00:00",
+ "complete" : false,
+ "status" : "placed"
+}}]
+ - examples: [{contentType=application/xml, example=
123456789
123456789
123
2000-01-23T04:56:07.000Z
aeiou
true
-, contentType=application/xml}, {example={
- "id" : 0,
+}, {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=
+ - examples: [{contentType=application/xml, example=
123456789
123456789
123
2000-01-23T04:56:07.000Z
aeiou
true
-, contentType=application/xml}, {example={
- "id" : 0,
+}, {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=
+ "id" : 0,
+ "shipDate" : "2000-01-23T04:56:07.000+00:00",
+ "complete" : false,
+ "status" : "placed"
+}}]
+ - examples: [{contentType=application/xml, example=
123456789
123456789
123
2000-01-23T04:56:07.000Z
aeiou
true
-, contentType=application/xml}, {example={
- "id" : 0,
+}, {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
diff --git a/samples/client/petstore/swift3/default/PetstoreClient/Classes/Swaggers/APIs/UserAPI.swift b/samples/client/petstore/swift3/default/PetstoreClient/Classes/Swaggers/APIs/UserAPI.swift
index 65504e68683..b07b5c89faf 100644
--- a/samples/client/petstore/swift3/default/PetstoreClient/Classes/Swaggers/APIs/UserAPI.swift
+++ b/samples/client/petstore/swift3/default/PetstoreClient/Classes/Swaggers/APIs/UserAPI.swift
@@ -168,7 +168,7 @@ open class UserAPI: APIBase {
Get user by user name
- GET /user/{username}
-
- - examples: [{example=
+ - examples: [{contentType=application/xml, example=
123456789
aeiou
aeiou
@@ -177,17 +177,17 @@ open class UserAPI: APIBase {
aeiou
aeiou
123
-, contentType=application/xml}, {example={
- "id" : 0,
- "lastName" : "aeiou",
- "phone" : "aeiou",
- "username" : "aeiou",
- "email" : "aeiou",
- "userStatus" : 6,
+}, {contentType=application/json, example={
"firstName" : "aeiou",
- "password" : "aeiou"
-}, contentType=application/json}]
- - examples: [{example=
+ "lastName" : "aeiou",
+ "password" : "aeiou",
+ "userStatus" : 6,
+ "phone" : "aeiou",
+ "id" : 0,
+ "email" : "aeiou",
+ "username" : "aeiou"
+}}]
+ - examples: [{contentType=application/xml, example=
123456789
aeiou
aeiou
@@ -196,16 +196,16 @@ open class UserAPI: APIBase {
aeiou
aeiou
123
-, contentType=application/xml}, {example={
- "id" : 0,
- "lastName" : "aeiou",
- "phone" : "aeiou",
- "username" : "aeiou",
- "email" : "aeiou",
- "userStatus" : 6,
+}, {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
diff --git a/samples/client/petstore/swift3/default/PetstoreClient/Classes/Swaggers/AlamofireImplementations.swift b/samples/client/petstore/swift3/default/PetstoreClient/Classes/Swaggers/AlamofireImplementations.swift
index 31dc40e1b29..8ef9da6b3b1 100644
--- a/samples/client/petstore/swift3/default/PetstoreClient/Classes/Swaggers/AlamofireImplementations.swift
+++ b/samples/client/petstore/swift3/default/PetstoreClient/Classes/Swaggers/AlamofireImplementations.swift
@@ -212,7 +212,7 @@ open class AlamofireRequestBuilder: RequestBuilder {
}
}
- private func buildHeaders() -> [String: String] {
+ open func buildHeaders() -> [String: String] {
var httpHeaders = SessionManager.defaultHTTPHeaders
for (key, value) in self.headers {
httpHeaders[key] = value
diff --git a/samples/client/petstore/swift3/promisekit/PetstoreClient/Classes/Swaggers/APIs.swift b/samples/client/petstore/swift3/promisekit/PetstoreClient/Classes/Swaggers/APIs.swift
index a843d9f9f5e..f04c5a8ae9a 100644
--- a/samples/client/petstore/swift3/promisekit/PetstoreClient/Classes/Swaggers/APIs.swift
+++ b/samples/client/petstore/swift3/promisekit/PetstoreClient/Classes/Swaggers/APIs.swift
@@ -10,7 +10,7 @@ open class PetstoreClientAPI {
open static var basePath = "http://petstore.swagger.io:80/v2"
open static var credential: URLCredential?
open static var customHeaders: [String:String] = [:]
- static var requestBuilderFactory: RequestBuilderFactory = AlamofireRequestBuilderFactory()
+ open static var requestBuilderFactory: RequestBuilderFactory = AlamofireRequestBuilderFactory()
}
open class APIBase {
diff --git a/samples/client/petstore/swift3/promisekit/PetstoreClient/Classes/Swaggers/APIs/FakeAPI.swift b/samples/client/petstore/swift3/promisekit/PetstoreClient/Classes/Swaggers/APIs/FakeAPI.swift
index 13d6c4a48e3..3847ae1dc6a 100644
--- a/samples/client/petstore/swift3/promisekit/PetstoreClient/Classes/Swaggers/APIs/FakeAPI.swift
+++ b/samples/client/petstore/swift3/promisekit/PetstoreClient/Classes/Swaggers/APIs/FakeAPI.swift
@@ -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
diff --git a/samples/client/petstore/swift3/promisekit/PetstoreClient/Classes/Swaggers/APIs/PetAPI.swift b/samples/client/petstore/swift3/promisekit/PetstoreClient/Classes/Swaggers/APIs/PetAPI.swift
index d819427804e..c1dbe4ed14a 100644
--- a/samples/client/petstore/swift3/promisekit/PetstoreClient/Classes/Swaggers/APIs/PetAPI.swift
+++ b/samples/client/petstore/swift3/promisekit/PetstoreClient/Classes/Swaggers/APIs/PetAPI.swift
@@ -175,7 +175,7 @@ open class PetAPI: APIBase {
- OAuth:
- type: oauth2
- name: petstore_auth
- - examples: [{example=
+ - examples: [{contentType=application/xml, example=
123456789
doggie
@@ -184,21 +184,21 @@ open class PetAPI: APIBase {
aeiou
-, contentType=application/xml}, {example=[ {
- "tags" : [ {
- "id" : 1,
- "name" : "aeiou"
- } ],
+}, {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=
+ "tags" : [ {
+ "name" : "aeiou",
+ "id" : 1
+ } ],
+ "status" : "available"
+} ]}]
+ - examples: [{contentType=application/xml, example=
123456789
doggie
@@ -207,20 +207,20 @@ open class PetAPI: APIBase {
aeiou
-, contentType=application/xml}, {example=[ {
- "tags" : [ {
- "id" : 1,
- "name" : "aeiou"
- } ],
+}, {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=
+ - examples: [{contentType=application/xml, example=
123456789
doggie
@@ -288,21 +288,21 @@ open class PetAPI: APIBase {
aeiou
-, contentType=application/xml}, {example=[ {
- "tags" : [ {
- "id" : 1,
- "name" : "aeiou"
- } ],
+}, {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=
+ "tags" : [ {
+ "name" : "aeiou",
+ "id" : 1
+ } ],
+ "status" : "available"
+} ]}]
+ - examples: [{contentType=application/xml, example=
123456789
doggie
@@ -311,20 +311,20 @@ open class PetAPI: APIBase {
aeiou
-, contentType=application/xml}, {example=[ {
- "tags" : [ {
- "id" : 1,
- "name" : "aeiou"
- } ],
+}, {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=
+ - examples: [{contentType=application/xml, example=
123456789
doggie
@@ -392,21 +392,21 @@ open class PetAPI: APIBase {
aeiou
-, contentType=application/xml}, {example={
- "tags" : [ {
- "id" : 1,
- "name" : "aeiou"
- } ],
+}, {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=
+ "tags" : [ {
+ "name" : "aeiou",
+ "id" : 1
+ } ],
+ "status" : "available"
+}}]
+ - examples: [{contentType=application/xml, example=
123456789
doggie
@@ -415,20 +415,20 @@ open class PetAPI: APIBase {
aeiou
-, contentType=application/xml}, {example={
- "tags" : [ {
- "id" : 1,
- "name" : "aeiou"
- } ],
+}, {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)
diff --git a/samples/client/petstore/swift3/promisekit/PetstoreClient/Classes/Swaggers/APIs/StoreAPI.swift b/samples/client/petstore/swift3/promisekit/PetstoreClient/Classes/Swaggers/APIs/StoreAPI.swift
index 8ade6fbdbaf..369138f1d01 100644
--- a/samples/client/petstore/swift3/promisekit/PetstoreClient/Classes/Swaggers/APIs/StoreAPI.swift
+++ b/samples/client/petstore/swift3/promisekit/PetstoreClient/Classes/Swaggers/APIs/StoreAPI.swift
@@ -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=
+ - examples: [{contentType=application/xml, example=
123456789
123456789
123
2000-01-23T04:56:07.000Z
aeiou
true
-, contentType=application/xml}, {example={
- "id" : 0,
+}, {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=
+ "id" : 0,
+ "shipDate" : "2000-01-23T04:56:07.000+00:00",
+ "complete" : false,
+ "status" : "placed"
+}}]
+ - examples: [{contentType=application/xml, example=
123456789
123456789
123
2000-01-23T04:56:07.000Z
aeiou
true
-, contentType=application/xml}, {example={
- "id" : 0,
+}, {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=
+ - examples: [{contentType=application/xml, example=
123456789
123456789
123
2000-01-23T04:56:07.000Z
aeiou
true
-, contentType=application/xml}, {example={
- "id" : 0,
+}, {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=
+ "id" : 0,
+ "shipDate" : "2000-01-23T04:56:07.000+00:00",
+ "complete" : false,
+ "status" : "placed"
+}}]
+ - examples: [{contentType=application/xml, example=
123456789
123456789
123
2000-01-23T04:56:07.000Z
aeiou
true
-, contentType=application/xml}, {example={
- "id" : 0,
+}, {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
diff --git a/samples/client/petstore/swift3/promisekit/PetstoreClient/Classes/Swaggers/APIs/UserAPI.swift b/samples/client/petstore/swift3/promisekit/PetstoreClient/Classes/Swaggers/APIs/UserAPI.swift
index b033c56824f..9530e6edb81 100644
--- a/samples/client/petstore/swift3/promisekit/PetstoreClient/Classes/Swaggers/APIs/UserAPI.swift
+++ b/samples/client/petstore/swift3/promisekit/PetstoreClient/Classes/Swaggers/APIs/UserAPI.swift
@@ -254,7 +254,7 @@ open class UserAPI: APIBase {
Get user by user name
- GET /user/{username}
-
- - examples: [{example=
+ - examples: [{contentType=application/xml, example=
123456789
aeiou
aeiou
@@ -263,17 +263,17 @@ open class UserAPI: APIBase {
aeiou
aeiou
123
-, contentType=application/xml}, {example={
- "id" : 0,
- "lastName" : "aeiou",
- "phone" : "aeiou",
- "username" : "aeiou",
- "email" : "aeiou",
- "userStatus" : 6,
+}, {contentType=application/json, example={
"firstName" : "aeiou",
- "password" : "aeiou"
-}, contentType=application/json}]
- - examples: [{example=
+ "lastName" : "aeiou",
+ "password" : "aeiou",
+ "userStatus" : 6,
+ "phone" : "aeiou",
+ "id" : 0,
+ "email" : "aeiou",
+ "username" : "aeiou"
+}}]
+ - examples: [{contentType=application/xml, example=
123456789
aeiou
aeiou
@@ -282,16 +282,16 @@ open class UserAPI: APIBase {
aeiou
aeiou
123
-, contentType=application/xml}, {example={
- "id" : 0,
- "lastName" : "aeiou",
- "phone" : "aeiou",
- "username" : "aeiou",
- "email" : "aeiou",
- "userStatus" : 6,
+}, {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
diff --git a/samples/client/petstore/swift3/promisekit/PetstoreClient/Classes/Swaggers/AlamofireImplementations.swift b/samples/client/petstore/swift3/promisekit/PetstoreClient/Classes/Swaggers/AlamofireImplementations.swift
index 31dc40e1b29..8ef9da6b3b1 100644
--- a/samples/client/petstore/swift3/promisekit/PetstoreClient/Classes/Swaggers/AlamofireImplementations.swift
+++ b/samples/client/petstore/swift3/promisekit/PetstoreClient/Classes/Swaggers/AlamofireImplementations.swift
@@ -212,7 +212,7 @@ open class AlamofireRequestBuilder: RequestBuilder {
}
}
- private func buildHeaders() -> [String: String] {
+ open func buildHeaders() -> [String: String] {
var httpHeaders = SessionManager.defaultHTTPHeaders
for (key, value) in self.headers {
httpHeaders[key] = value
diff --git a/samples/client/petstore/swift3/rxswift/PetstoreClient/Classes/Swaggers/APIs.swift b/samples/client/petstore/swift3/rxswift/PetstoreClient/Classes/Swaggers/APIs.swift
index a843d9f9f5e..f04c5a8ae9a 100644
--- a/samples/client/petstore/swift3/rxswift/PetstoreClient/Classes/Swaggers/APIs.swift
+++ b/samples/client/petstore/swift3/rxswift/PetstoreClient/Classes/Swaggers/APIs.swift
@@ -10,7 +10,7 @@ open class PetstoreClientAPI {
open static var basePath = "http://petstore.swagger.io:80/v2"
open static var credential: URLCredential?
open static var customHeaders: [String:String] = [:]
- static var requestBuilderFactory: RequestBuilderFactory = AlamofireRequestBuilderFactory()
+ open static var requestBuilderFactory: RequestBuilderFactory = AlamofireRequestBuilderFactory()
}
open class APIBase {
diff --git a/samples/client/petstore/swift3/rxswift/PetstoreClient/Classes/Swaggers/APIs/FakeAPI.swift b/samples/client/petstore/swift3/rxswift/PetstoreClient/Classes/Swaggers/APIs/FakeAPI.swift
index 621d44c387d..976fa6cc0da 100644
--- a/samples/client/petstore/swift3/rxswift/PetstoreClient/Classes/Swaggers/APIs/FakeAPI.swift
+++ b/samples/client/petstore/swift3/rxswift/PetstoreClient/Classes/Swaggers/APIs/FakeAPI.swift
@@ -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
diff --git a/samples/client/petstore/swift3/rxswift/PetstoreClient/Classes/Swaggers/APIs/PetAPI.swift b/samples/client/petstore/swift3/rxswift/PetstoreClient/Classes/Swaggers/APIs/PetAPI.swift
index 52fd5a75647..524ed037b61 100644
--- a/samples/client/petstore/swift3/rxswift/PetstoreClient/Classes/Swaggers/APIs/PetAPI.swift
+++ b/samples/client/petstore/swift3/rxswift/PetstoreClient/Classes/Swaggers/APIs/PetAPI.swift
@@ -181,7 +181,7 @@ open class PetAPI: APIBase {
- OAuth:
- type: oauth2
- name: petstore_auth
- - examples: [{example=
+ - examples: [{contentType=application/xml, example=
123456789
doggie
@@ -190,21 +190,21 @@ open class PetAPI: APIBase {
aeiou
-, contentType=application/xml}, {example=[ {
- "tags" : [ {
- "id" : 1,
- "name" : "aeiou"
- } ],
+}, {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=
+ "tags" : [ {
+ "name" : "aeiou",
+ "id" : 1
+ } ],
+ "status" : "available"
+} ]}]
+ - examples: [{contentType=application/xml, example=
123456789
doggie
@@ -213,20 +213,20 @@ open class PetAPI: APIBase {
aeiou
-, contentType=application/xml}, {example=[ {
- "tags" : [ {
- "id" : 1,
- "name" : "aeiou"
- } ],
+}, {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=
+ - examples: [{contentType=application/xml, example=
123456789
doggie
@@ -296,21 +296,21 @@ open class PetAPI: APIBase {
aeiou
-, contentType=application/xml}, {example=[ {
- "tags" : [ {
- "id" : 1,
- "name" : "aeiou"
- } ],
+}, {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=
+ "tags" : [ {
+ "name" : "aeiou",
+ "id" : 1
+ } ],
+ "status" : "available"
+} ]}]
+ - examples: [{contentType=application/xml, example=
123456789
doggie
@@ -319,20 +319,20 @@ open class PetAPI: APIBase {
aeiou
-, contentType=application/xml}, {example=[ {
- "tags" : [ {
- "id" : 1,
- "name" : "aeiou"
- } ],
+}, {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=
+ - examples: [{contentType=application/xml, example=
123456789
doggie
@@ -402,21 +402,21 @@ open class PetAPI: APIBase {
aeiou
-, contentType=application/xml}, {example={
- "tags" : [ {
- "id" : 1,
- "name" : "aeiou"
- } ],
+}, {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=
+ "tags" : [ {
+ "name" : "aeiou",
+ "id" : 1
+ } ],
+ "status" : "available"
+}}]
+ - examples: [{contentType=application/xml, example=
123456789
doggie
@@ -425,20 +425,20 @@ open class PetAPI: APIBase {
aeiou
-, contentType=application/xml}, {example={
- "tags" : [ {
- "id" : 1,
- "name" : "aeiou"
- } ],
+}, {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)
diff --git a/samples/client/petstore/swift3/rxswift/PetstoreClient/Classes/Swaggers/APIs/StoreAPI.swift b/samples/client/petstore/swift3/rxswift/PetstoreClient/Classes/Swaggers/APIs/StoreAPI.swift
index 2e899508dfb..5177e56f53c 100644
--- a/samples/client/petstore/swift3/rxswift/PetstoreClient/Classes/Swaggers/APIs/StoreAPI.swift
+++ b/samples/client/petstore/swift3/rxswift/PetstoreClient/Classes/Swaggers/APIs/StoreAPI.swift
@@ -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=
+ - examples: [{contentType=application/xml, example=
123456789
123456789
123
2000-01-23T04:56:07.000Z
aeiou
true
-, contentType=application/xml}, {example={
- "id" : 0,
+}, {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=
+ "id" : 0,
+ "shipDate" : "2000-01-23T04:56:07.000+00:00",
+ "complete" : false,
+ "status" : "placed"
+}}]
+ - examples: [{contentType=application/xml, example=
123456789
123456789
123
2000-01-23T04:56:07.000Z
aeiou
true
-, contentType=application/xml}, {example={
- "id" : 0,
+}, {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=
+ - examples: [{contentType=application/xml, example=
123456789
123456789
123
2000-01-23T04:56:07.000Z
aeiou
true
-, contentType=application/xml}, {example={
- "id" : 0,
+}, {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=
+ "id" : 0,
+ "shipDate" : "2000-01-23T04:56:07.000+00:00",
+ "complete" : false,
+ "status" : "placed"
+}}]
+ - examples: [{contentType=application/xml, example=
123456789
123456789
123
2000-01-23T04:56:07.000Z
aeiou
true
-, contentType=application/xml}, {example={
- "id" : 0,
+}, {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
diff --git a/samples/client/petstore/swift3/rxswift/PetstoreClient/Classes/Swaggers/APIs/UserAPI.swift b/samples/client/petstore/swift3/rxswift/PetstoreClient/Classes/Swaggers/APIs/UserAPI.swift
index 3e355b15f0f..1b7ce47f4ae 100644
--- a/samples/client/petstore/swift3/rxswift/PetstoreClient/Classes/Swaggers/APIs/UserAPI.swift
+++ b/samples/client/petstore/swift3/rxswift/PetstoreClient/Classes/Swaggers/APIs/UserAPI.swift
@@ -264,7 +264,7 @@ open class UserAPI: APIBase {
Get user by user name
- GET /user/{username}
-
- - examples: [{example=
+ - examples: [{contentType=application/xml, example=
123456789
aeiou
aeiou
@@ -273,17 +273,17 @@ open class UserAPI: APIBase {
aeiou
aeiou
123
-, contentType=application/xml}, {example={
- "id" : 0,
- "lastName" : "aeiou",
- "phone" : "aeiou",
- "username" : "aeiou",
- "email" : "aeiou",
- "userStatus" : 6,
+}, {contentType=application/json, example={
"firstName" : "aeiou",
- "password" : "aeiou"
-}, contentType=application/json}]
- - examples: [{example=
+ "lastName" : "aeiou",
+ "password" : "aeiou",
+ "userStatus" : 6,
+ "phone" : "aeiou",
+ "id" : 0,
+ "email" : "aeiou",
+ "username" : "aeiou"
+}}]
+ - examples: [{contentType=application/xml, example=
123456789
aeiou
aeiou
@@ -292,16 +292,16 @@ open class UserAPI: APIBase {
aeiou
aeiou
123
-, contentType=application/xml}, {example={
- "id" : 0,
- "lastName" : "aeiou",
- "phone" : "aeiou",
- "username" : "aeiou",
- "email" : "aeiou",
- "userStatus" : 6,
+}, {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
diff --git a/samples/client/petstore/swift3/rxswift/PetstoreClient/Classes/Swaggers/AlamofireImplementations.swift b/samples/client/petstore/swift3/rxswift/PetstoreClient/Classes/Swaggers/AlamofireImplementations.swift
index 31dc40e1b29..8ef9da6b3b1 100644
--- a/samples/client/petstore/swift3/rxswift/PetstoreClient/Classes/Swaggers/AlamofireImplementations.swift
+++ b/samples/client/petstore/swift3/rxswift/PetstoreClient/Classes/Swaggers/AlamofireImplementations.swift
@@ -212,7 +212,7 @@ open class AlamofireRequestBuilder: RequestBuilder {
}
}
- private func buildHeaders() -> [String: String] {
+ open func buildHeaders() -> [String: String] {
var httpHeaders = SessionManager.defaultHTTPHeaders
for (key, value) in self.headers {
httpHeaders[key] = value