diff --git a/modules/swagger-codegen/src/test/resources/2_0/petstore.json b/modules/swagger-codegen/src/test/resources/2_0/petstore.json
index 5542dcea867..be0254ec3a2 100644
--- a/modules/swagger-codegen/src/test/resources/2_0/petstore.json
+++ b/modules/swagger-codegen/src/test/resources/2_0/petstore.json
@@ -833,10 +833,6 @@
"username": {
"type": "string"
},
- "dateOfBirth": {
- "type": "string",
- "format": "date"
- },
"firstName": {
"type": "string"
},
diff --git a/samples/client/petstore/swift/default/PetstoreClient/Classes/Swaggers/APIs/PetAPI.swift b/samples/client/petstore/swift/default/PetstoreClient/Classes/Swaggers/APIs/PetAPI.swift
index a64e2da9b57..06789661504 100644
--- a/samples/client/petstore/swift/default/PetstoreClient/Classes/Swaggers/APIs/PetAPI.swift
+++ b/samples/client/petstore/swift/default/PetstoreClient/Classes/Swaggers/APIs/PetAPI.swift
@@ -108,13 +108,13 @@ public class PetAPI: APIBase {
- OAuth:
- type: oauth2
- name: petstore_auth
- - examples: [{contentType=application/json, example={
+ - examples: [{example={
"name" : "Puma",
"type" : "Dog",
"color" : "Black",
"gender" : "Female",
"breed" : "Mixed"
-}}]
+}, contentType=application/json}]
- parameter status: (query) Status values that need to be considered for filter (optional, default to available)
@@ -157,20 +157,20 @@ public class PetAPI: APIBase {
- OAuth:
- type: oauth2
- name: petstore_auth
- - examples: [{contentType=application/json, example=[ {
- "photoUrls" : [ "aeiou" ],
- "name" : "doggie",
+ - examples: [{example=[ {
+ "tags" : [ {
+ "id" : 123456789,
+ "name" : "aeiou"
+ } ],
"id" : 123456789,
"category" : {
- "name" : "aeiou",
- "id" : 123456789
+ "id" : 123456789,
+ "name" : "aeiou"
},
- "tags" : [ {
- "name" : "aeiou",
- "id" : 123456789
- } ],
- "status" : "aeiou"
-} ]}, {contentType=application/xml, example=
+ "status" : "aeiou",
+ "name" : "doggie",
+ "photoUrls" : [ "aeiou" ]
+} ], contentType=application/json}, {example=
123456
doggie
@@ -179,21 +179,21 @@ public class PetAPI: APIBase {
string
-}]
- - examples: [{contentType=application/json, example=[ {
- "photoUrls" : [ "aeiou" ],
- "name" : "doggie",
+, contentType=application/xml}]
+ - examples: [{example=[ {
+ "tags" : [ {
+ "id" : 123456789,
+ "name" : "aeiou"
+ } ],
"id" : 123456789,
"category" : {
- "name" : "aeiou",
- "id" : 123456789
+ "id" : 123456789,
+ "name" : "aeiou"
},
- "tags" : [ {
- "name" : "aeiou",
- "id" : 123456789
- } ],
- "status" : "aeiou"
-} ]}, {contentType=application/xml, example=
+ "status" : "aeiou",
+ "name" : "doggie",
+ "photoUrls" : [ "aeiou" ]
+} ], contentType=application/json}, {example=
123456
doggie
@@ -202,7 +202,7 @@ public class PetAPI: APIBase {
string
-}]
+, contentType=application/xml}]
- parameter tags: (query) Tags to filter by (optional)
@@ -242,26 +242,26 @@ public class PetAPI: APIBase {
Find pet by ID
- GET /pet/{petId}
- Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
- - OAuth:
- - type: oauth2
- - name: petstore_auth
- API Key:
- type: apiKey api_key
- name: api_key
- - examples: [{contentType=application/json, example={
- "photoUrls" : [ "aeiou" ],
- "name" : "doggie",
+ - OAuth:
+ - type: oauth2
+ - name: petstore_auth
+ - examples: [{example={
+ "tags" : [ {
+ "id" : 123456789,
+ "name" : "aeiou"
+ } ],
"id" : 123456789,
"category" : {
- "name" : "aeiou",
- "id" : 123456789
+ "id" : 123456789,
+ "name" : "aeiou"
},
- "tags" : [ {
- "name" : "aeiou",
- "id" : 123456789
- } ],
- "status" : "aeiou"
-}}, {contentType=application/xml, example=
+ "status" : "aeiou",
+ "name" : "doggie",
+ "photoUrls" : [ "aeiou" ]
+}, contentType=application/json}, {example=
123456
doggie
@@ -270,21 +270,21 @@ public class PetAPI: APIBase {
string
-}]
- - examples: [{contentType=application/json, example={
- "photoUrls" : [ "aeiou" ],
- "name" : "doggie",
+, contentType=application/xml}]
+ - examples: [{example={
+ "tags" : [ {
+ "id" : 123456789,
+ "name" : "aeiou"
+ } ],
"id" : 123456789,
"category" : {
- "name" : "aeiou",
- "id" : 123456789
+ "id" : 123456789,
+ "name" : "aeiou"
},
- "tags" : [ {
- "name" : "aeiou",
- "id" : 123456789
- } ],
- "status" : "aeiou"
-}}, {contentType=application/xml, example=
+ "status" : "aeiou",
+ "name" : "doggie",
+ "photoUrls" : [ "aeiou" ]
+}, contentType=application/json}, {example=
123456
doggie
@@ -293,7 +293,7 @@ public class PetAPI: APIBase {
string
-}]
+, contentType=application/xml}]
- parameter petId: (path) ID of pet that needs to be fetched
diff --git a/samples/client/petstore/swift/default/PetstoreClient/Classes/Swaggers/APIs/StoreAPI.swift b/samples/client/petstore/swift/default/PetstoreClient/Classes/Swaggers/APIs/StoreAPI.swift
index c51d8d37357..1c575eb79f8 100644
--- a/samples/client/petstore/swift/default/PetstoreClient/Classes/Swaggers/APIs/StoreAPI.swift
+++ b/samples/client/petstore/swift/default/PetstoreClient/Classes/Swaggers/APIs/StoreAPI.swift
@@ -67,12 +67,12 @@ public class StoreAPI: APIBase {
- API Key:
- type: apiKey api_key
- name: api_key
- - examples: [{contentType=application/json, example={
+ - examples: [{example={
"key" : 123
-}}, {contentType=application/xml, example=not implemented io.swagger.models.properties.MapProperty@d1e580af}]
- - examples: [{contentType=application/json, example={
+}, contentType=application/json}, {example=not implemented io.swagger.models.properties.MapProperty@d1e580af, contentType=application/xml}]
+ - examples: [{example={
"key" : 123
-}}, {contentType=application/xml, example=not implemented io.swagger.models.properties.MapProperty@d1e580af}]
+}, contentType=application/json}, {example=not implemented io.swagger.models.properties.MapProperty@d1e580af, contentType=application/xml}]
- returns: RequestBuilder<[String:Int32]>
*/
@@ -108,36 +108,36 @@ public class StoreAPI: APIBase {
Find purchase order by ID
- GET /store/order/{orderId}
- For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
- - examples: [{contentType=application/json, example={
- "petId" : 123456789,
- "quantity" : 123,
+ - examples: [{example={
"id" : 123456789,
- "shipDate" : "2000-01-23T04:56:07.000+00:00",
+ "petId" : 123456789,
"complete" : true,
- "status" : "aeiou"
-}}, {contentType=application/xml, example=
+ "status" : "aeiou",
+ "quantity" : 123,
+ "shipDate" : "2000-01-23T04:56:07.000+00:00"
+}, contentType=application/json}, {example=
123456
123456
0
2000-01-23T04:56:07.000Z
string
true
-}]
- - examples: [{contentType=application/json, example={
- "petId" : 123456789,
- "quantity" : 123,
+, contentType=application/xml}]
+ - examples: [{example={
"id" : 123456789,
- "shipDate" : "2000-01-23T04:56:07.000+00:00",
+ "petId" : 123456789,
"complete" : true,
- "status" : "aeiou"
-}}, {contentType=application/xml, example=
+ "status" : "aeiou",
+ "quantity" : 123,
+ "shipDate" : "2000-01-23T04:56:07.000+00:00"
+}, contentType=application/json}, {example=
123456
123456
0
2000-01-23T04:56:07.000Z
string
true
-}]
+, contentType=application/xml}]
- parameter orderId: (path) ID of pet that needs to be fetched
@@ -176,36 +176,36 @@ public class StoreAPI: APIBase {
Place an order for a pet
- POST /store/order
-
- - examples: [{contentType=application/json, example={
- "petId" : 123456789,
- "quantity" : 123,
+ - examples: [{example={
"id" : 123456789,
- "shipDate" : "2000-01-23T04:56:07.000+00:00",
+ "petId" : 123456789,
"complete" : true,
- "status" : "aeiou"
-}}, {contentType=application/xml, example=
+ "status" : "aeiou",
+ "quantity" : 123,
+ "shipDate" : "2000-01-23T04:56:07.000+00:00"
+}, contentType=application/json}, {example=
123456
123456
0
2000-01-23T04:56:07.000Z
string
true
-}]
- - examples: [{contentType=application/json, example={
- "petId" : 123456789,
- "quantity" : 123,
+, contentType=application/xml}]
+ - examples: [{example={
"id" : 123456789,
- "shipDate" : "2000-01-23T04:56:07.000+00:00",
+ "petId" : 123456789,
"complete" : true,
- "status" : "aeiou"
-}}, {contentType=application/xml, example=
+ "status" : "aeiou",
+ "quantity" : 123,
+ "shipDate" : "2000-01-23T04:56:07.000+00:00"
+}, contentType=application/json}, {example=
123456
123456
0
2000-01-23T04:56:07.000Z
string
true
-}]
+, contentType=application/xml}]
- parameter body: (body) order placed for purchasing the pet (optional)
diff --git a/samples/client/petstore/swift/default/PetstoreClient/Classes/Swaggers/APIs/UserAPI.swift b/samples/client/petstore/swift/default/PetstoreClient/Classes/Swaggers/APIs/UserAPI.swift
index f117c059105..a7497487f85 100644
--- a/samples/client/petstore/swift/default/PetstoreClient/Classes/Swaggers/APIs/UserAPI.swift
+++ b/samples/client/petstore/swift/default/PetstoreClient/Classes/Swaggers/APIs/UserAPI.swift
@@ -167,46 +167,44 @@ public class UserAPI: APIBase {
Get user by user name
- GET /user/{username}
-
- - examples: [{contentType=application/json, example={
- "firstName" : "aeiou",
- "lastName" : "aeiou",
- "password" : "aeiou",
- "userStatus" : 123,
- "phone" : "aeiou",
+ - examples: [{example={
"id" : 123456789,
+ "lastName" : "aeiou",
+ "phone" : "aeiou",
+ "username" : "aeiou",
"email" : "aeiou",
- "username" : "aeiou"
-}}, {contentType=application/xml, example=
+ "userStatus" : 123,
+ "firstName" : "aeiou",
+ "password" : "aeiou"
+}, contentType=application/json}, {example=
123456
string
- 2000-01-23T04:56:07.000Z
string
string
string
string
string
0
-}]
- - examples: [{contentType=application/json, example={
- "firstName" : "aeiou",
- "lastName" : "aeiou",
- "password" : "aeiou",
- "userStatus" : 123,
- "phone" : "aeiou",
+, contentType=application/xml}]
+ - examples: [{example={
"id" : 123456789,
+ "lastName" : "aeiou",
+ "phone" : "aeiou",
+ "username" : "aeiou",
"email" : "aeiou",
- "username" : "aeiou"
-}}, {contentType=application/xml, example=
+ "userStatus" : 123,
+ "firstName" : "aeiou",
+ "password" : "aeiou"
+}, contentType=application/json}, {example=
123456
string
- 2000-01-23T04:56:07.000Z
string
string
string
string
string
0
-}]
+, contentType=application/xml}]
- parameter username: (path) The name that needs to be fetched. Use user1 for testing.
@@ -246,8 +244,8 @@ public class UserAPI: APIBase {
Logs user into the system
- GET /user/login
-
- - examples: [{contentType=application/json, example="aeiou"}, {contentType=application/xml, example=string}]
- - examples: [{contentType=application/json, example="aeiou"}, {contentType=application/xml, example=string}]
+ - examples: [{example="aeiou", contentType=application/json}, {example=string, contentType=application/xml}]
+ - examples: [{example="aeiou", contentType=application/json}, {example=string, contentType=application/xml}]
- parameter username: (query) The user name for login (optional)
- parameter password: (query) The password for login in clear text (optional)
diff --git a/samples/client/petstore/swift/default/PetstoreClient/Classes/Swaggers/Models.swift b/samples/client/petstore/swift/default/PetstoreClient/Classes/Swaggers/Models.swift
index 7e60915d8a1..c9c48bf10e3 100644
--- a/samples/client/petstore/swift/default/PetstoreClient/Classes/Swaggers/Models.swift
+++ b/samples/client/petstore/swift/default/PetstoreClient/Classes/Swaggers/Models.swift
@@ -224,7 +224,6 @@ class Decoders {
let instance = User()
instance.id = Decoders.decodeOptional(clazz: Int64.self, source: sourceDictionary["id"])
instance.username = Decoders.decodeOptional(clazz: String.self, source: sourceDictionary["username"])
- instance.dateOfBirth = Decoders.decodeOptional(clazz: ISOFullDate.self, source: sourceDictionary["dateOfBirth"])
instance.firstName = Decoders.decodeOptional(clazz: String.self, source: sourceDictionary["firstName"])
instance.lastName = Decoders.decodeOptional(clazz: String.self, source: sourceDictionary["lastName"])
instance.email = Decoders.decodeOptional(clazz: String.self, source: sourceDictionary["email"])
diff --git a/samples/client/petstore/swift/default/PetstoreClient/Classes/Swaggers/Models/User.swift b/samples/client/petstore/swift/default/PetstoreClient/Classes/Swaggers/Models/User.swift
index 1ee45d12ae6..67b72a61922 100644
--- a/samples/client/petstore/swift/default/PetstoreClient/Classes/Swaggers/Models/User.swift
+++ b/samples/client/petstore/swift/default/PetstoreClient/Classes/Swaggers/Models/User.swift
@@ -11,7 +11,6 @@ import Foundation
public class User: JSONEncodable {
public var id: Int64?
public var username: String?
- public var dateOfBirth: ISOFullDate?
public var firstName: String?
public var lastName: String?
public var email: String?
@@ -27,7 +26,6 @@ public class User: JSONEncodable {
var nillableDictionary = [String:AnyObject?]()
nillableDictionary["id"] = self.id?.encodeToJSON()
nillableDictionary["username"] = self.username
- nillableDictionary["dateOfBirth"] = self.dateOfBirth?.encodeToJSON()
nillableDictionary["firstName"] = self.firstName
nillableDictionary["lastName"] = self.lastName
nillableDictionary["email"] = self.email
diff --git a/samples/client/petstore/swift/default/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj b/samples/client/petstore/swift/default/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj
index cb262c57832..62732396d0b 100644
--- a/samples/client/petstore/swift/default/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj
+++ b/samples/client/petstore/swift/default/SwaggerClientTests/SwaggerClient.xcodeproj/project.pbxproj
@@ -146,7 +146,7 @@
isa = PBXNativeTarget;
buildConfigurationList = 6D4EFBAE1C692C6300B96B06 /* Build configuration list for PBXNativeTarget "SwaggerClient" */;
buildPhases = (
- A16DAFA9EF474E5065B5B1C2 /* 📦 Check Pods Manifest.lock */,
+ 6345B531824FA2069A72B604 /* 📦 Check Pods Manifest.lock */,
CF310079E3CB0BE5BE604471 /* [CP] Check Pods Manifest.lock */,
1F03F780DC2D9727E5E64BA9 /* [CP] Check Pods Manifest.lock */,
6D4EFB8D1C692C6300B96B06 /* Sources */,
@@ -170,7 +170,7 @@
isa = PBXNativeTarget;
buildConfigurationList = 6D4EFBB11C692C6300B96B06 /* Build configuration list for PBXNativeTarget "SwaggerClientTests" */;
buildPhases = (
- FE27E864CEDDA2D12F7972B1 /* 📦 Check Pods Manifest.lock */,
+ 5B23A28C59366E7C8D31550A /* 📦 Check Pods Manifest.lock */,
B4DB169E5F018305D6759D34 /* [CP] Check Pods Manifest.lock */,
79FE27B09B2DD354C831BD49 /* [CP] Check Pods Manifest.lock */,
6D4EFBA11C692C6300B96B06 /* Sources */,
@@ -325,6 +325,36 @@
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-SwaggerClient/Pods-SwaggerClient-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
+ 5B23A28C59366E7C8D31550A /* 📦 Check Pods Manifest.lock */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "📦 Check Pods Manifest.lock";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
+ showEnvVarsInLog = 0;
+ };
+ 6345B531824FA2069A72B604 /* 📦 Check Pods Manifest.lock */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "📦 Check Pods Manifest.lock";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
+ showEnvVarsInLog = 0;
+ };
796EAD48F1BCCDAA291CD963 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
diff --git a/samples/client/petstore/swift/default/SwaggerClientTests/SwaggerClientTests/UserAPITests.swift b/samples/client/petstore/swift/default/SwaggerClientTests/SwaggerClientTests/UserAPITests.swift
index 47ef2da133b..fc8b19d6629 100644
--- a/samples/client/petstore/swift/default/SwaggerClientTests/SwaggerClientTests/UserAPITests.swift
+++ b/samples/client/petstore/swift/default/SwaggerClientTests/SwaggerClientTests/UserAPITests.swift
@@ -49,7 +49,10 @@ class UserAPITests: XCTestCase {
let newUser = User()
newUser.email = "test@test.com"
- newUser.dateOfBirth = ISOFullDate.from(string: "1999-12-31")
+ // TODO comment out the following as dateOfBirth has been removed
+ // from petstore.json, we'll need to add back the test after switching
+ // to petstore-with-fake-endpoints-models-for-testing.yaml
+ ////newUser.dateOfBirth = ISOFullDate.from(string: "1999-12-31")
newUser.firstName = "Test"
newUser.lastName = "Tester"
newUser.id = 1000
@@ -86,7 +89,10 @@ class UserAPITests: XCTestCase {
XCTAssert(user.lastName == "Tester", "invalid lastName")
XCTAssert(user.password == "test!", "invalid password")
XCTAssert(user.phone == "867-5309", "invalid phone")
- XCTAssert(user.dateOfBirth?.description == "1999-12-31", "invalid date of birth")
+ // TODO comment out the following as dateOfBirth has been removed
+ // from petstore.json, we'll need to add back the test after switching
+ // to petstore-with-fake-endpoints-models-for-testing.yaml
+ //XCTAssert(user.dateOfBirth?.description == "1999-12-31", "invalid date of birth")
expectation.fulfill()
}
diff --git a/samples/client/petstore/swift/promisekit/PetstoreClient/Classes/Swaggers/APIs/PetAPI.swift b/samples/client/petstore/swift/promisekit/PetstoreClient/Classes/Swaggers/APIs/PetAPI.swift
index 8388537a83e..de181fba33f 100644
--- a/samples/client/petstore/swift/promisekit/PetstoreClient/Classes/Swaggers/APIs/PetAPI.swift
+++ b/samples/client/petstore/swift/promisekit/PetstoreClient/Classes/Swaggers/APIs/PetAPI.swift
@@ -160,13 +160,13 @@ public class PetAPI: APIBase {
- OAuth:
- type: oauth2
- name: petstore_auth
- - examples: [{contentType=application/json, example={
+ - examples: [{example={
"name" : "Puma",
"type" : "Dog",
"color" : "Black",
"gender" : "Female",
"breed" : "Mixed"
-}}]
+}, contentType=application/json}]
- parameter status: (query) Status values that need to be considered for filter (optional, default to available)
@@ -226,20 +226,20 @@ public class PetAPI: APIBase {
- OAuth:
- type: oauth2
- name: petstore_auth
- - examples: [{contentType=application/json, example=[ {
- "photoUrls" : [ "aeiou" ],
- "name" : "doggie",
+ - examples: [{example=[ {
+ "tags" : [ {
+ "id" : 123456789,
+ "name" : "aeiou"
+ } ],
"id" : 123456789,
"category" : {
- "name" : "aeiou",
- "id" : 123456789
+ "id" : 123456789,
+ "name" : "aeiou"
},
- "tags" : [ {
- "name" : "aeiou",
- "id" : 123456789
- } ],
- "status" : "aeiou"
-} ]}, {contentType=application/xml, example=
+ "status" : "aeiou",
+ "name" : "doggie",
+ "photoUrls" : [ "aeiou" ]
+} ], contentType=application/json}, {example=
123456
doggie
@@ -248,21 +248,21 @@ public class PetAPI: APIBase {
string
-}]
- - examples: [{contentType=application/json, example=[ {
- "photoUrls" : [ "aeiou" ],
- "name" : "doggie",
+, contentType=application/xml}]
+ - examples: [{example=[ {
+ "tags" : [ {
+ "id" : 123456789,
+ "name" : "aeiou"
+ } ],
"id" : 123456789,
"category" : {
- "name" : "aeiou",
- "id" : 123456789
+ "id" : 123456789,
+ "name" : "aeiou"
},
- "tags" : [ {
- "name" : "aeiou",
- "id" : 123456789
- } ],
- "status" : "aeiou"
-} ]}, {contentType=application/xml, example=
+ "status" : "aeiou",
+ "name" : "doggie",
+ "photoUrls" : [ "aeiou" ]
+} ], contentType=application/json}, {example=
123456
doggie
@@ -271,7 +271,7 @@ public class PetAPI: APIBase {
string
-}]
+, contentType=application/xml}]
- parameter tags: (query) Tags to filter by (optional)
@@ -328,26 +328,26 @@ public class PetAPI: APIBase {
Find pet by ID
- GET /pet/{petId}
- Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
- - OAuth:
- - type: oauth2
- - name: petstore_auth
- API Key:
- type: apiKey api_key
- name: api_key
- - examples: [{contentType=application/json, example={
- "photoUrls" : [ "aeiou" ],
- "name" : "doggie",
+ - OAuth:
+ - type: oauth2
+ - name: petstore_auth
+ - examples: [{example={
+ "tags" : [ {
+ "id" : 123456789,
+ "name" : "aeiou"
+ } ],
"id" : 123456789,
"category" : {
- "name" : "aeiou",
- "id" : 123456789
+ "id" : 123456789,
+ "name" : "aeiou"
},
- "tags" : [ {
- "name" : "aeiou",
- "id" : 123456789
- } ],
- "status" : "aeiou"
-}}, {contentType=application/xml, example=
+ "status" : "aeiou",
+ "name" : "doggie",
+ "photoUrls" : [ "aeiou" ]
+}, contentType=application/json}, {example=
123456
doggie
@@ -356,21 +356,21 @@ public class PetAPI: APIBase {
string
-}]
- - examples: [{contentType=application/json, example={
- "photoUrls" : [ "aeiou" ],
- "name" : "doggie",
+, contentType=application/xml}]
+ - examples: [{example={
+ "tags" : [ {
+ "id" : 123456789,
+ "name" : "aeiou"
+ } ],
"id" : 123456789,
"category" : {
- "name" : "aeiou",
- "id" : 123456789
+ "id" : 123456789,
+ "name" : "aeiou"
},
- "tags" : [ {
- "name" : "aeiou",
- "id" : 123456789
- } ],
- "status" : "aeiou"
-}}, {contentType=application/xml, example=
+ "status" : "aeiou",
+ "name" : "doggie",
+ "photoUrls" : [ "aeiou" ]
+}, contentType=application/json}, {example=
123456
doggie
@@ -379,7 +379,7 @@ public class PetAPI: APIBase {
string
-}]
+, contentType=application/xml}]
- parameter petId: (path) ID of pet that needs to be fetched
diff --git a/samples/client/petstore/swift/promisekit/PetstoreClient/Classes/Swaggers/APIs/StoreAPI.swift b/samples/client/petstore/swift/promisekit/PetstoreClient/Classes/Swaggers/APIs/StoreAPI.swift
index ab072c821f8..8736f9ee2e0 100644
--- a/samples/client/petstore/swift/promisekit/PetstoreClient/Classes/Swaggers/APIs/StoreAPI.swift
+++ b/samples/client/petstore/swift/promisekit/PetstoreClient/Classes/Swaggers/APIs/StoreAPI.swift
@@ -101,12 +101,12 @@ public class StoreAPI: APIBase {
- API Key:
- type: apiKey api_key
- name: api_key
- - examples: [{contentType=application/json, example={
+ - examples: [{example={
"key" : 123
-}}, {contentType=application/xml, example=not implemented io.swagger.models.properties.MapProperty@d1e580af}]
- - examples: [{contentType=application/json, example={
+}, contentType=application/json}, {example=not implemented io.swagger.models.properties.MapProperty@d1e580af, contentType=application/xml}]
+ - examples: [{example={
"key" : 123
-}}, {contentType=application/xml, example=not implemented io.swagger.models.properties.MapProperty@d1e580af}]
+}, contentType=application/json}, {example=not implemented io.swagger.models.properties.MapProperty@d1e580af, contentType=application/xml}]
- returns: RequestBuilder<[String:Int32]>
*/
@@ -159,36 +159,36 @@ public class StoreAPI: APIBase {
Find purchase order by ID
- GET /store/order/{orderId}
- For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
- - examples: [{contentType=application/json, example={
- "petId" : 123456789,
- "quantity" : 123,
+ - examples: [{example={
"id" : 123456789,
- "shipDate" : "2000-01-23T04:56:07.000+00:00",
+ "petId" : 123456789,
"complete" : true,
- "status" : "aeiou"
-}}, {contentType=application/xml, example=
+ "status" : "aeiou",
+ "quantity" : 123,
+ "shipDate" : "2000-01-23T04:56:07.000+00:00"
+}, contentType=application/json}, {example=
123456
123456
0
2000-01-23T04:56:07.000Z
string
true
-}]
- - examples: [{contentType=application/json, example={
- "petId" : 123456789,
- "quantity" : 123,
+, contentType=application/xml}]
+ - examples: [{example={
"id" : 123456789,
- "shipDate" : "2000-01-23T04:56:07.000+00:00",
+ "petId" : 123456789,
"complete" : true,
- "status" : "aeiou"
-}}, {contentType=application/xml, example=
+ "status" : "aeiou",
+ "quantity" : 123,
+ "shipDate" : "2000-01-23T04:56:07.000+00:00"
+}, contentType=application/json}, {example=
123456
123456
0
2000-01-23T04:56:07.000Z
string
true
-}]
+, contentType=application/xml}]
- parameter orderId: (path) ID of pet that needs to be fetched
@@ -244,36 +244,36 @@ public class StoreAPI: APIBase {
Place an order for a pet
- POST /store/order
-
- - examples: [{contentType=application/json, example={
- "petId" : 123456789,
- "quantity" : 123,
+ - examples: [{example={
"id" : 123456789,
- "shipDate" : "2000-01-23T04:56:07.000+00:00",
+ "petId" : 123456789,
"complete" : true,
- "status" : "aeiou"
-}}, {contentType=application/xml, example=
+ "status" : "aeiou",
+ "quantity" : 123,
+ "shipDate" : "2000-01-23T04:56:07.000+00:00"
+}, contentType=application/json}, {example=
123456
123456
0
2000-01-23T04:56:07.000Z
string
true
-}]
- - examples: [{contentType=application/json, example={
- "petId" : 123456789,
- "quantity" : 123,
+, contentType=application/xml}]
+ - examples: [{example={
"id" : 123456789,
- "shipDate" : "2000-01-23T04:56:07.000+00:00",
+ "petId" : 123456789,
"complete" : true,
- "status" : "aeiou"
-}}, {contentType=application/xml, example=
+ "status" : "aeiou",
+ "quantity" : 123,
+ "shipDate" : "2000-01-23T04:56:07.000+00:00"
+}, contentType=application/json}, {example=
123456
123456
0
2000-01-23T04:56:07.000Z
string
true
-}]
+, contentType=application/xml}]
- parameter body: (body) order placed for purchasing the pet (optional)
diff --git a/samples/client/petstore/swift/promisekit/PetstoreClient/Classes/Swaggers/APIs/UserAPI.swift b/samples/client/petstore/swift/promisekit/PetstoreClient/Classes/Swaggers/APIs/UserAPI.swift
index 89b766b69ba..1b5ada9da67 100644
--- a/samples/client/petstore/swift/promisekit/PetstoreClient/Classes/Swaggers/APIs/UserAPI.swift
+++ b/samples/client/petstore/swift/promisekit/PetstoreClient/Classes/Swaggers/APIs/UserAPI.swift
@@ -253,48 +253,44 @@ public class UserAPI: APIBase {
Get user by user name
- GET /user/{username}
-
- - examples: [{contentType=application/json, example={
- "firstName" : "aeiou",
- "lastName" : "aeiou",
- "password" : "aeiou",
- "userStatus" : 123,
- "phone" : "aeiou",
- "dateOfBirth" : "2000-01-23T04:56:07.000+00:00",
+ - examples: [{example={
"id" : 123456789,
+ "lastName" : "aeiou",
+ "phone" : "aeiou",
+ "username" : "aeiou",
"email" : "aeiou",
- "username" : "aeiou"
-}}, {contentType=application/xml, example=
+ "userStatus" : 123,
+ "firstName" : "aeiou",
+ "password" : "aeiou"
+}, contentType=application/json}, {example=
123456
string
- 2000-01-23T04:56:07.000Z
string
string
string
string
string
0
-}]
- - examples: [{contentType=application/json, example={
- "firstName" : "aeiou",
- "lastName" : "aeiou",
- "password" : "aeiou",
- "userStatus" : 123,
- "phone" : "aeiou",
- "dateOfBirth" : "2000-01-23T04:56:07.000+00:00",
+, contentType=application/xml}]
+ - examples: [{example={
"id" : 123456789,
+ "lastName" : "aeiou",
+ "phone" : "aeiou",
+ "username" : "aeiou",
"email" : "aeiou",
- "username" : "aeiou"
-}}, {contentType=application/xml, example=
+ "userStatus" : 123,
+ "firstName" : "aeiou",
+ "password" : "aeiou"
+}, contentType=application/json}, {example=
123456
string
- 2000-01-23T04:56:07.000Z
string
string
string
string
string
0
-}]
+, contentType=application/xml}]
- parameter username: (path) The name that needs to be fetched. Use user1 for testing.
@@ -352,8 +348,8 @@ public class UserAPI: APIBase {
Logs user into the system
- GET /user/login
-
- - examples: [{contentType=application/json, example="aeiou"}, {contentType=application/xml, example=string}]
- - examples: [{contentType=application/json, example="aeiou"}, {contentType=application/xml, example=string}]
+ - examples: [{example="aeiou", contentType=application/json}, {example=string, contentType=application/xml}]
+ - examples: [{example="aeiou", contentType=application/json}, {example=string, contentType=application/xml}]
- parameter username: (query) The user name for login (optional)
- parameter password: (query) The password for login in clear text (optional)
diff --git a/samples/client/petstore/swift/promisekit/PetstoreClient/Classes/Swaggers/Models.swift b/samples/client/petstore/swift/promisekit/PetstoreClient/Classes/Swaggers/Models.swift
index 7e60915d8a1..c9c48bf10e3 100644
--- a/samples/client/petstore/swift/promisekit/PetstoreClient/Classes/Swaggers/Models.swift
+++ b/samples/client/petstore/swift/promisekit/PetstoreClient/Classes/Swaggers/Models.swift
@@ -224,7 +224,6 @@ class Decoders {
let instance = User()
instance.id = Decoders.decodeOptional(clazz: Int64.self, source: sourceDictionary["id"])
instance.username = Decoders.decodeOptional(clazz: String.self, source: sourceDictionary["username"])
- instance.dateOfBirth = Decoders.decodeOptional(clazz: ISOFullDate.self, source: sourceDictionary["dateOfBirth"])
instance.firstName = Decoders.decodeOptional(clazz: String.self, source: sourceDictionary["firstName"])
instance.lastName = Decoders.decodeOptional(clazz: String.self, source: sourceDictionary["lastName"])
instance.email = Decoders.decodeOptional(clazz: String.self, source: sourceDictionary["email"])
diff --git a/samples/client/petstore/swift/promisekit/PetstoreClient/Classes/Swaggers/Models/User.swift b/samples/client/petstore/swift/promisekit/PetstoreClient/Classes/Swaggers/Models/User.swift
index 1ee45d12ae6..67b72a61922 100644
--- a/samples/client/petstore/swift/promisekit/PetstoreClient/Classes/Swaggers/Models/User.swift
+++ b/samples/client/petstore/swift/promisekit/PetstoreClient/Classes/Swaggers/Models/User.swift
@@ -11,7 +11,6 @@ import Foundation
public class User: JSONEncodable {
public var id: Int64?
public var username: String?
- public var dateOfBirth: ISOFullDate?
public var firstName: String?
public var lastName: String?
public var email: String?
@@ -27,7 +26,6 @@ public class User: JSONEncodable {
var nillableDictionary = [String:AnyObject?]()
nillableDictionary["id"] = self.id?.encodeToJSON()
nillableDictionary["username"] = self.username
- nillableDictionary["dateOfBirth"] = self.dateOfBirth?.encodeToJSON()
nillableDictionary["firstName"] = self.firstName
nillableDictionary["lastName"] = self.lastName
nillableDictionary["email"] = self.email
diff --git a/samples/client/petstore/swift/rxswift/PetstoreClient/Classes/Swaggers/APIs/PetAPI.swift b/samples/client/petstore/swift/rxswift/PetstoreClient/Classes/Swaggers/APIs/PetAPI.swift
index a38dabd888f..aa63f4b0df5 100644
--- a/samples/client/petstore/swift/rxswift/PetstoreClient/Classes/Swaggers/APIs/PetAPI.swift
+++ b/samples/client/petstore/swift/rxswift/PetstoreClient/Classes/Swaggers/APIs/PetAPI.swift
@@ -166,13 +166,13 @@ public class PetAPI: APIBase {
- OAuth:
- type: oauth2
- name: petstore_auth
- - examples: [{contentType=application/json, example={
+ - examples: [{example={
"name" : "Puma",
"type" : "Dog",
"color" : "Black",
"gender" : "Female",
"breed" : "Mixed"
-}}]
+}, contentType=application/json}]
- parameter status: (query) Status values that need to be considered for filter (optional, default to available)
@@ -234,20 +234,20 @@ public class PetAPI: APIBase {
- OAuth:
- type: oauth2
- name: petstore_auth
- - examples: [{contentType=application/json, example=[ {
- "photoUrls" : [ "aeiou" ],
- "name" : "doggie",
+ - examples: [{example=[ {
+ "tags" : [ {
+ "id" : 123456789,
+ "name" : "aeiou"
+ } ],
"id" : 123456789,
"category" : {
- "name" : "aeiou",
- "id" : 123456789
+ "id" : 123456789,
+ "name" : "aeiou"
},
- "tags" : [ {
- "name" : "aeiou",
- "id" : 123456789
- } ],
- "status" : "aeiou"
-} ]}, {contentType=application/xml, example=
+ "status" : "aeiou",
+ "name" : "doggie",
+ "photoUrls" : [ "aeiou" ]
+} ], contentType=application/json}, {example=
123456
doggie
@@ -256,21 +256,21 @@ public class PetAPI: APIBase {
string
-}]
- - examples: [{contentType=application/json, example=[ {
- "photoUrls" : [ "aeiou" ],
- "name" : "doggie",
+, contentType=application/xml}]
+ - examples: [{example=[ {
+ "tags" : [ {
+ "id" : 123456789,
+ "name" : "aeiou"
+ } ],
"id" : 123456789,
"category" : {
- "name" : "aeiou",
- "id" : 123456789
+ "id" : 123456789,
+ "name" : "aeiou"
},
- "tags" : [ {
- "name" : "aeiou",
- "id" : 123456789
- } ],
- "status" : "aeiou"
-} ]}, {contentType=application/xml, example=
+ "status" : "aeiou",
+ "name" : "doggie",
+ "photoUrls" : [ "aeiou" ]
+} ], contentType=application/json}, {example=
123456
doggie
@@ -279,7 +279,7 @@ public class PetAPI: APIBase {
string
-}]
+, contentType=application/xml}]
- parameter tags: (query) Tags to filter by (optional)
@@ -338,26 +338,26 @@ public class PetAPI: APIBase {
Find pet by ID
- GET /pet/{petId}
- Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
- - OAuth:
- - type: oauth2
- - name: petstore_auth
- API Key:
- type: apiKey api_key
- name: api_key
- - examples: [{contentType=application/json, example={
- "photoUrls" : [ "aeiou" ],
- "name" : "doggie",
+ - OAuth:
+ - type: oauth2
+ - name: petstore_auth
+ - examples: [{example={
+ "tags" : [ {
+ "id" : 123456789,
+ "name" : "aeiou"
+ } ],
"id" : 123456789,
"category" : {
- "name" : "aeiou",
- "id" : 123456789
+ "id" : 123456789,
+ "name" : "aeiou"
},
- "tags" : [ {
- "name" : "aeiou",
- "id" : 123456789
- } ],
- "status" : "aeiou"
-}}, {contentType=application/xml, example=
+ "status" : "aeiou",
+ "name" : "doggie",
+ "photoUrls" : [ "aeiou" ]
+}, contentType=application/json}, {example=
123456
doggie
@@ -366,21 +366,21 @@ public class PetAPI: APIBase {
string
-}]
- - examples: [{contentType=application/json, example={
- "photoUrls" : [ "aeiou" ],
- "name" : "doggie",
+, contentType=application/xml}]
+ - examples: [{example={
+ "tags" : [ {
+ "id" : 123456789,
+ "name" : "aeiou"
+ } ],
"id" : 123456789,
"category" : {
- "name" : "aeiou",
- "id" : 123456789
+ "id" : 123456789,
+ "name" : "aeiou"
},
- "tags" : [ {
- "name" : "aeiou",
- "id" : 123456789
- } ],
- "status" : "aeiou"
-}}, {contentType=application/xml, example=
+ "status" : "aeiou",
+ "name" : "doggie",
+ "photoUrls" : [ "aeiou" ]
+}, contentType=application/json}, {example=
123456
doggie
@@ -389,7 +389,7 @@ public class PetAPI: APIBase {
string
-}]
+, contentType=application/xml}]
- parameter petId: (path) ID of pet that needs to be fetched
diff --git a/samples/client/petstore/swift/rxswift/PetstoreClient/Classes/Swaggers/APIs/StoreAPI.swift b/samples/client/petstore/swift/rxswift/PetstoreClient/Classes/Swaggers/APIs/StoreAPI.swift
index 6e5d88db1e1..d7562019b4e 100644
--- a/samples/client/petstore/swift/rxswift/PetstoreClient/Classes/Swaggers/APIs/StoreAPI.swift
+++ b/samples/client/petstore/swift/rxswift/PetstoreClient/Classes/Swaggers/APIs/StoreAPI.swift
@@ -105,12 +105,12 @@ public class StoreAPI: APIBase {
- API Key:
- type: apiKey api_key
- name: api_key
- - examples: [{contentType=application/json, example={
+ - examples: [{example={
"key" : 123
-}}, {contentType=application/xml, example=not implemented io.swagger.models.properties.MapProperty@d1e580af}]
- - examples: [{contentType=application/json, example={
+}, contentType=application/json}, {example=not implemented io.swagger.models.properties.MapProperty@d1e580af, contentType=application/xml}]
+ - examples: [{example={
"key" : 123
-}}, {contentType=application/xml, example=not implemented io.swagger.models.properties.MapProperty@d1e580af}]
+}, contentType=application/json}, {example=not implemented io.swagger.models.properties.MapProperty@d1e580af, contentType=application/xml}]
- returns: RequestBuilder<[String:Int32]>
*/
@@ -165,36 +165,36 @@ public class StoreAPI: APIBase {
Find purchase order by ID
- GET /store/order/{orderId}
- For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
- - examples: [{contentType=application/json, example={
- "petId" : 123456789,
- "quantity" : 123,
+ - examples: [{example={
"id" : 123456789,
- "shipDate" : "2000-01-23T04:56:07.000+00:00",
+ "petId" : 123456789,
"complete" : true,
- "status" : "aeiou"
-}}, {contentType=application/xml, example=
+ "status" : "aeiou",
+ "quantity" : 123,
+ "shipDate" : "2000-01-23T04:56:07.000+00:00"
+}, contentType=application/json}, {example=
123456
123456
0
2000-01-23T04:56:07.000Z
string
true
-}]
- - examples: [{contentType=application/json, example={
- "petId" : 123456789,
- "quantity" : 123,
+, contentType=application/xml}]
+ - examples: [{example={
"id" : 123456789,
- "shipDate" : "2000-01-23T04:56:07.000+00:00",
+ "petId" : 123456789,
"complete" : true,
- "status" : "aeiou"
-}}, {contentType=application/xml, example=
+ "status" : "aeiou",
+ "quantity" : 123,
+ "shipDate" : "2000-01-23T04:56:07.000+00:00"
+}, contentType=application/json}, {example=
123456
123456
0
2000-01-23T04:56:07.000Z
string
true
-}]
+, contentType=application/xml}]
- parameter orderId: (path) ID of pet that needs to be fetched
@@ -252,36 +252,36 @@ public class StoreAPI: APIBase {
Place an order for a pet
- POST /store/order
-
- - examples: [{contentType=application/json, example={
- "petId" : 123456789,
- "quantity" : 123,
+ - examples: [{example={
"id" : 123456789,
- "shipDate" : "2000-01-23T04:56:07.000+00:00",
+ "petId" : 123456789,
"complete" : true,
- "status" : "aeiou"
-}}, {contentType=application/xml, example=
+ "status" : "aeiou",
+ "quantity" : 123,
+ "shipDate" : "2000-01-23T04:56:07.000+00:00"
+}, contentType=application/json}, {example=
123456
123456
0
2000-01-23T04:56:07.000Z
string
true
-}]
- - examples: [{contentType=application/json, example={
- "petId" : 123456789,
- "quantity" : 123,
+, contentType=application/xml}]
+ - examples: [{example={
"id" : 123456789,
- "shipDate" : "2000-01-23T04:56:07.000+00:00",
+ "petId" : 123456789,
"complete" : true,
- "status" : "aeiou"
-}}, {contentType=application/xml, example=
+ "status" : "aeiou",
+ "quantity" : 123,
+ "shipDate" : "2000-01-23T04:56:07.000+00:00"
+}, contentType=application/json}, {example=
123456
123456
0
2000-01-23T04:56:07.000Z
string
true
-}]
+, contentType=application/xml}]
- parameter body: (body) order placed for purchasing the pet (optional)
diff --git a/samples/client/petstore/swift/rxswift/PetstoreClient/Classes/Swaggers/APIs/UserAPI.swift b/samples/client/petstore/swift/rxswift/PetstoreClient/Classes/Swaggers/APIs/UserAPI.swift
index da8d86f5ef2..ecae72665b9 100644
--- a/samples/client/petstore/swift/rxswift/PetstoreClient/Classes/Swaggers/APIs/UserAPI.swift
+++ b/samples/client/petstore/swift/rxswift/PetstoreClient/Classes/Swaggers/APIs/UserAPI.swift
@@ -263,46 +263,44 @@ public class UserAPI: APIBase {
Get user by user name
- GET /user/{username}
-
- - examples: [{contentType=application/json, example={
- "firstName" : "aeiou",
- "lastName" : "aeiou",
- "password" : "aeiou",
- "userStatus" : 123,
- "phone" : "aeiou",
+ - examples: [{example={
"id" : 123456789,
+ "lastName" : "aeiou",
+ "phone" : "aeiou",
+ "username" : "aeiou",
"email" : "aeiou",
- "username" : "aeiou"
-}}, {contentType=application/xml, example=
+ "userStatus" : 123,
+ "firstName" : "aeiou",
+ "password" : "aeiou"
+}, contentType=application/json}, {example=
123456
string
- 2000-01-23T04:56:07.000Z
string
string
string
string
string
0
-}]
- - examples: [{contentType=application/json, example={
- "firstName" : "aeiou",
- "lastName" : "aeiou",
- "password" : "aeiou",
- "userStatus" : 123,
- "phone" : "aeiou",
+, contentType=application/xml}]
+ - examples: [{example={
"id" : 123456789,
+ "lastName" : "aeiou",
+ "phone" : "aeiou",
+ "username" : "aeiou",
"email" : "aeiou",
- "username" : "aeiou"
-}}, {contentType=application/xml, example=
+ "userStatus" : 123,
+ "firstName" : "aeiou",
+ "password" : "aeiou"
+}, contentType=application/json}, {example=
123456
string
- 2000-01-23T04:56:07.000Z
string
string
string
string
string
0
-}]
+, contentType=application/xml}]
- parameter username: (path) The name that needs to be fetched. Use user1 for testing.
@@ -362,8 +360,8 @@ public class UserAPI: APIBase {
Logs user into the system
- GET /user/login
-
- - examples: [{contentType=application/json, example="aeiou"}, {contentType=application/xml, example=string}]
- - examples: [{contentType=application/json, example="aeiou"}, {contentType=application/xml, example=string}]
+ - examples: [{example="aeiou", contentType=application/json}, {example=string, contentType=application/xml}]
+ - examples: [{example="aeiou", contentType=application/json}, {example=string, contentType=application/xml}]
- parameter username: (query) The user name for login (optional)
- parameter password: (query) The password for login in clear text (optional)
diff --git a/samples/client/petstore/swift/rxswift/PetstoreClient/Classes/Swaggers/Models.swift b/samples/client/petstore/swift/rxswift/PetstoreClient/Classes/Swaggers/Models.swift
index e7da148c466..5ce0adb9e3d 100644
--- a/samples/client/petstore/swift/rxswift/PetstoreClient/Classes/Swaggers/Models.swift
+++ b/samples/client/petstore/swift/rxswift/PetstoreClient/Classes/Swaggers/Models.swift
@@ -224,7 +224,6 @@ class Decoders {
let instance = User()
instance.id = Decoders.decodeOptional(clazz: Int64.self, source: sourceDictionary["id"])
instance.username = Decoders.decodeOptional(clazz: String.self, source: sourceDictionary["username"])
- instance.dateOfBirth = Decoders.decodeOptional(clazz: ISOFullDate.self, source: sourceDictionary["dateOfBirth"])
instance.firstName = Decoders.decodeOptional(clazz: String.self, source: sourceDictionary["firstName"])
instance.lastName = Decoders.decodeOptional(clazz: String.self, source: sourceDictionary["lastName"])
instance.email = Decoders.decodeOptional(clazz: String.self, source: sourceDictionary["email"])
diff --git a/samples/client/petstore/swift/rxswift/PetstoreClient/Classes/Swaggers/Models/User.swift b/samples/client/petstore/swift/rxswift/PetstoreClient/Classes/Swaggers/Models/User.swift
index 1ee45d12ae6..67b72a61922 100644
--- a/samples/client/petstore/swift/rxswift/PetstoreClient/Classes/Swaggers/Models/User.swift
+++ b/samples/client/petstore/swift/rxswift/PetstoreClient/Classes/Swaggers/Models/User.swift
@@ -11,7 +11,6 @@ import Foundation
public class User: JSONEncodable {
public var id: Int64?
public var username: String?
- public var dateOfBirth: ISOFullDate?
public var firstName: String?
public var lastName: String?
public var email: String?
@@ -27,7 +26,6 @@ public class User: JSONEncodable {
var nillableDictionary = [String:AnyObject?]()
nillableDictionary["id"] = self.id?.encodeToJSON()
nillableDictionary["username"] = self.username
- nillableDictionary["dateOfBirth"] = self.dateOfBirth?.encodeToJSON()
nillableDictionary["firstName"] = self.firstName
nillableDictionary["lastName"] = self.lastName
nillableDictionary["email"] = self.email