From 03677548b2663d881c706cfcbd4cc737e4f2ceb6 Mon Sep 17 00:00:00 2001
From: Bruno Coelho <4brunu@users.noreply.github.com>
Date: Mon, 13 Apr 2020 09:57:22 +0100
Subject: [PATCH] [swift5] fix warning (#5900)
---
.../src/main/resources/swift5/Models.mustache | 6 ++++--
.../swift5/alamofireLibrary/.openapi-generator/VERSION | 2 +-
.../PetstoreClient.xcodeproj/project.pbxproj | 3 +--
.../project.xcworkspace/contents.xcworkspacedata | 2 +-
.../xcshareddata/xcschemes/PetstoreClient.xcscheme | 6 ------
.../PetstoreClient/Classes/OpenAPIs/Models.swift | 6 ++++--
.../swift5/combineLibrary/.openapi-generator/VERSION | 2 +-
.../combineLibrary/PetstoreClient.xcodeproj/project.pbxproj | 3 +--
.../project.xcworkspace/contents.xcworkspacedata | 2 +-
.../xcshareddata/xcschemes/PetstoreClient.xcscheme | 6 ------
.../PetstoreClient/Classes/OpenAPIs/Models.swift | 6 ++++--
.../petstore/swift5/default/.openapi-generator/VERSION | 2 +-
.../swift5/default/PetstoreClient.xcodeproj/project.pbxproj | 3 +--
.../project.xcworkspace/contents.xcworkspacedata | 2 +-
.../xcshareddata/xcschemes/PetstoreClient.xcscheme | 6 ------
.../default/PetstoreClient/Classes/OpenAPIs/Models.swift | 6 ++++--
.../petstore/swift5/nonPublicApi/.openapi-generator/VERSION | 2 +-
.../nonPublicApi/PetstoreClient.xcodeproj/project.pbxproj | 3 +--
.../project.xcworkspace/contents.xcworkspacedata | 2 +-
.../xcshareddata/xcschemes/PetstoreClient.xcscheme | 6 ------
.../PetstoreClient/Classes/OpenAPIs/Models.swift | 6 ++++--
.../swift5/objcCompatible/.openapi-generator/VERSION | 2 +-
.../objcCompatible/PetstoreClient.xcodeproj/project.pbxproj | 3 +--
.../project.xcworkspace/contents.xcworkspacedata | 2 +-
.../xcshareddata/xcschemes/PetstoreClient.xcscheme | 6 ------
.../PetstoreClient/Classes/OpenAPIs/Models.swift | 6 ++++--
.../swift5/promisekitLibrary/.openapi-generator/VERSION | 2 +-
.../PetstoreClient.xcodeproj/project.pbxproj | 3 +--
.../project.xcworkspace/contents.xcworkspacedata | 2 +-
.../xcshareddata/xcschemes/PetstoreClient.xcscheme | 6 ------
.../PetstoreClient/Classes/OpenAPIs/Models.swift | 6 ++++--
.../swift5/resultLibrary/.openapi-generator/VERSION | 2 +-
.../resultLibrary/PetstoreClient.xcodeproj/project.pbxproj | 3 +--
.../project.xcworkspace/contents.xcworkspacedata | 2 +-
.../xcshareddata/xcschemes/PetstoreClient.xcscheme | 6 ------
.../PetstoreClient/Classes/OpenAPIs/Models.swift | 6 ++++--
.../swift5/rxswiftLibrary/.openapi-generator/VERSION | 2 +-
.../rxswiftLibrary/PetstoreClient.xcodeproj/project.pbxproj | 3 +--
.../project.xcworkspace/contents.xcworkspacedata | 2 +-
.../xcshareddata/xcschemes/PetstoreClient.xcscheme | 6 ------
.../PetstoreClient/Classes/OpenAPIs/Models.swift | 6 ++++--
.../swift5/urlsessionLibrary/.openapi-generator/VERSION | 2 +-
.../PetstoreClient.xcodeproj/project.pbxproj | 3 +--
.../project.xcworkspace/contents.xcworkspacedata | 2 +-
.../xcshareddata/xcschemes/PetstoreClient.xcscheme | 6 ------
.../PetstoreClient/Classes/OpenAPIs/Models.swift | 6 ++++--
.../client/test/swift5/default/.openapi-generator/VERSION | 2 +-
.../swift5/default/TestClient.xcodeproj/project.pbxproj | 3 +--
.../project.xcworkspace/contents.xcworkspacedata | 2 +-
.../xcshareddata/xcschemes/TestClient.xcscheme | 6 ------
.../swift5/default/TestClient/Classes/OpenAPIs/Models.swift | 6 ++++--
samples/client/test/swift5/default/docs/SampleSubClass.md | 2 --
52 files changed, 74 insertions(+), 124 deletions(-)
diff --git a/modules/openapi-generator/src/main/resources/swift5/Models.mustache b/modules/openapi-generator/src/main/resources/swift5/Models.mustache
index eb7120e6be25..4e839503b4da 100644
--- a/modules/openapi-generator/src/main/resources/swift5/Models.mustache
+++ b/modules/openapi-generator/src/main/resources/swift5/Models.mustache
@@ -45,8 +45,10 @@ protocol JSONEncodable {
{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} convenience init(response: HTTPURLResponse, body: T?) {
let rawHeader = response.allHeaderFields
var header = [String:String]()
- for case let (key, value) as (String, String) in rawHeader {
- header[key] = value
+ for (key, value) in rawHeader {
+ if let key = key as? String, let value = value as? String {
+ header[key] = value
+ }
}
self.init(statusCode: response.statusCode, header: header, body: body)
}
diff --git a/samples/client/petstore/swift5/alamofireLibrary/.openapi-generator/VERSION b/samples/client/petstore/swift5/alamofireLibrary/.openapi-generator/VERSION
index bfbf77eb7fad..b5d898602c2c 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/.openapi-generator/VERSION
+++ b/samples/client/petstore/swift5/alamofireLibrary/.openapi-generator/VERSION
@@ -1 +1 @@
-4.3.0-SNAPSHOT
\ No newline at end of file
+4.3.1-SNAPSHOT
\ No newline at end of file
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient.xcodeproj/project.pbxproj b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient.xcodeproj/project.pbxproj
index 5364daaa904b..a03104894c7c 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient.xcodeproj/project.pbxproj
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient.xcodeproj/project.pbxproj
@@ -313,7 +313,6 @@
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
- Base,
en,
);
mainGroup = 5FBA6AE5F64CD737F88B4565;
@@ -569,7 +568,7 @@
3B2C02AFB91CB5C82766ED5C /* Release */,
);
defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "";
+ defaultConfigurationName = Debug;
};
ECAB17FF35111B5E14DAAC08 /* Build configuration list for PBXProject "PetstoreClient" */ = {
isa = XCConfigurationList;
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata
index 919434a6254f..59618cad9c0b 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -2,6 +2,6 @@
+ location = "self:PetstoreClient.xcodeproj">
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme
index 26d510552bb0..ce431fd1d1dd 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme
@@ -41,10 +41,6 @@
-
-
-
-
-
-
{
public convenience init(response: HTTPURLResponse, body: T?) {
let rawHeader = response.allHeaderFields
var header = [String: String]()
- for case let (key, value) as (String, String) in rawHeader {
- header[key] = value
+ for (key, value) in rawHeader {
+ if let key = key as? String, let value = value as? String {
+ header[key] = value
+ }
}
self.init(statusCode: response.statusCode, header: header, body: body)
}
diff --git a/samples/client/petstore/swift5/combineLibrary/.openapi-generator/VERSION b/samples/client/petstore/swift5/combineLibrary/.openapi-generator/VERSION
index bfbf77eb7fad..b5d898602c2c 100644
--- a/samples/client/petstore/swift5/combineLibrary/.openapi-generator/VERSION
+++ b/samples/client/petstore/swift5/combineLibrary/.openapi-generator/VERSION
@@ -1 +1 @@
-4.3.0-SNAPSHOT
\ No newline at end of file
+4.3.1-SNAPSHOT
\ No newline at end of file
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient.xcodeproj/project.pbxproj b/samples/client/petstore/swift5/combineLibrary/PetstoreClient.xcodeproj/project.pbxproj
index 1ec755a41003..0e4ec79d9849 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient.xcodeproj/project.pbxproj
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient.xcodeproj/project.pbxproj
@@ -273,7 +273,6 @@
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
- Base,
en,
);
mainGroup = 5FBA6AE5F64CD737F88B4565;
@@ -521,7 +520,7 @@
3B2C02AFB91CB5C82766ED5C /* Release */,
);
defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "";
+ defaultConfigurationName = Debug;
};
ECAB17FF35111B5E14DAAC08 /* Build configuration list for PBXProject "PetstoreClient" */ = {
isa = XCConfigurationList;
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/samples/client/petstore/swift5/combineLibrary/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata
index 919434a6254f..59618cad9c0b 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -2,6 +2,6 @@
+ location = "self:PetstoreClient.xcodeproj">
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme b/samples/client/petstore/swift5/combineLibrary/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme
index 26d510552bb0..ce431fd1d1dd 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme
@@ -41,10 +41,6 @@
-
-
-
-
-
-
{
public convenience init(response: HTTPURLResponse, body: T?) {
let rawHeader = response.allHeaderFields
var header = [String: String]()
- for case let (key, value) as (String, String) in rawHeader {
- header[key] = value
+ for (key, value) in rawHeader {
+ if let key = key as? String, let value = value as? String {
+ header[key] = value
+ }
}
self.init(statusCode: response.statusCode, header: header, body: body)
}
diff --git a/samples/client/petstore/swift5/default/.openapi-generator/VERSION b/samples/client/petstore/swift5/default/.openapi-generator/VERSION
index bfbf77eb7fad..b5d898602c2c 100644
--- a/samples/client/petstore/swift5/default/.openapi-generator/VERSION
+++ b/samples/client/petstore/swift5/default/.openapi-generator/VERSION
@@ -1 +1 @@
-4.3.0-SNAPSHOT
\ No newline at end of file
+4.3.1-SNAPSHOT
\ No newline at end of file
diff --git a/samples/client/petstore/swift5/default/PetstoreClient.xcodeproj/project.pbxproj b/samples/client/petstore/swift5/default/PetstoreClient.xcodeproj/project.pbxproj
index 1ec755a41003..0e4ec79d9849 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient.xcodeproj/project.pbxproj
+++ b/samples/client/petstore/swift5/default/PetstoreClient.xcodeproj/project.pbxproj
@@ -273,7 +273,6 @@
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
- Base,
en,
);
mainGroup = 5FBA6AE5F64CD737F88B4565;
@@ -521,7 +520,7 @@
3B2C02AFB91CB5C82766ED5C /* Release */,
);
defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "";
+ defaultConfigurationName = Debug;
};
ECAB17FF35111B5E14DAAC08 /* Build configuration list for PBXProject "PetstoreClient" */ = {
isa = XCConfigurationList;
diff --git a/samples/client/petstore/swift5/default/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/samples/client/petstore/swift5/default/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata
index 919434a6254f..59618cad9c0b 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata
+++ b/samples/client/petstore/swift5/default/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -2,6 +2,6 @@
+ location = "self:PetstoreClient.xcodeproj">
diff --git a/samples/client/petstore/swift5/default/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme b/samples/client/petstore/swift5/default/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme
index 26d510552bb0..ce431fd1d1dd 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme
+++ b/samples/client/petstore/swift5/default/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme
@@ -41,10 +41,6 @@
-
-
-
-
-
-
{
public convenience init(response: HTTPURLResponse, body: T?) {
let rawHeader = response.allHeaderFields
var header = [String: String]()
- for case let (key, value) as (String, String) in rawHeader {
- header[key] = value
+ for (key, value) in rawHeader {
+ if let key = key as? String, let value = value as? String {
+ header[key] = value
+ }
}
self.init(statusCode: response.statusCode, header: header, body: body)
}
diff --git a/samples/client/petstore/swift5/nonPublicApi/.openapi-generator/VERSION b/samples/client/petstore/swift5/nonPublicApi/.openapi-generator/VERSION
index bfbf77eb7fad..b5d898602c2c 100644
--- a/samples/client/petstore/swift5/nonPublicApi/.openapi-generator/VERSION
+++ b/samples/client/petstore/swift5/nonPublicApi/.openapi-generator/VERSION
@@ -1 +1 @@
-4.3.0-SNAPSHOT
\ No newline at end of file
+4.3.1-SNAPSHOT
\ No newline at end of file
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient.xcodeproj/project.pbxproj b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient.xcodeproj/project.pbxproj
index 1ec755a41003..0e4ec79d9849 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient.xcodeproj/project.pbxproj
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient.xcodeproj/project.pbxproj
@@ -273,7 +273,6 @@
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
- Base,
en,
);
mainGroup = 5FBA6AE5F64CD737F88B4565;
@@ -521,7 +520,7 @@
3B2C02AFB91CB5C82766ED5C /* Release */,
);
defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "";
+ defaultConfigurationName = Debug;
};
ECAB17FF35111B5E14DAAC08 /* Build configuration list for PBXProject "PetstoreClient" */ = {
isa = XCConfigurationList;
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata
index 919434a6254f..59618cad9c0b 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -2,6 +2,6 @@
+ location = "self:PetstoreClient.xcodeproj">
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme
index 26d510552bb0..ce431fd1d1dd 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme
@@ -41,10 +41,6 @@
-
-
-
-
-
-
{
internal convenience init(response: HTTPURLResponse, body: T?) {
let rawHeader = response.allHeaderFields
var header = [String: String]()
- for case let (key, value) as (String, String) in rawHeader {
- header[key] = value
+ for (key, value) in rawHeader {
+ if let key = key as? String, let value = value as? String {
+ header[key] = value
+ }
}
self.init(statusCode: response.statusCode, header: header, body: body)
}
diff --git a/samples/client/petstore/swift5/objcCompatible/.openapi-generator/VERSION b/samples/client/petstore/swift5/objcCompatible/.openapi-generator/VERSION
index bfbf77eb7fad..b5d898602c2c 100644
--- a/samples/client/petstore/swift5/objcCompatible/.openapi-generator/VERSION
+++ b/samples/client/petstore/swift5/objcCompatible/.openapi-generator/VERSION
@@ -1 +1 @@
-4.3.0-SNAPSHOT
\ No newline at end of file
+4.3.1-SNAPSHOT
\ No newline at end of file
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient.xcodeproj/project.pbxproj b/samples/client/petstore/swift5/objcCompatible/PetstoreClient.xcodeproj/project.pbxproj
index 1ec755a41003..0e4ec79d9849 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient.xcodeproj/project.pbxproj
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient.xcodeproj/project.pbxproj
@@ -273,7 +273,6 @@
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
- Base,
en,
);
mainGroup = 5FBA6AE5F64CD737F88B4565;
@@ -521,7 +520,7 @@
3B2C02AFB91CB5C82766ED5C /* Release */,
);
defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "";
+ defaultConfigurationName = Debug;
};
ECAB17FF35111B5E14DAAC08 /* Build configuration list for PBXProject "PetstoreClient" */ = {
isa = XCConfigurationList;
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/samples/client/petstore/swift5/objcCompatible/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata
index 919434a6254f..59618cad9c0b 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -2,6 +2,6 @@
+ location = "self:PetstoreClient.xcodeproj">
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme b/samples/client/petstore/swift5/objcCompatible/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme
index 26d510552bb0..ce431fd1d1dd 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme
@@ -41,10 +41,6 @@
-
-
-
-
-
-
{
public convenience init(response: HTTPURLResponse, body: T?) {
let rawHeader = response.allHeaderFields
var header = [String: String]()
- for case let (key, value) as (String, String) in rawHeader {
- header[key] = value
+ for (key, value) in rawHeader {
+ if let key = key as? String, let value = value as? String {
+ header[key] = value
+ }
}
self.init(statusCode: response.statusCode, header: header, body: body)
}
diff --git a/samples/client/petstore/swift5/promisekitLibrary/.openapi-generator/VERSION b/samples/client/petstore/swift5/promisekitLibrary/.openapi-generator/VERSION
index bfbf77eb7fad..b5d898602c2c 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/.openapi-generator/VERSION
+++ b/samples/client/petstore/swift5/promisekitLibrary/.openapi-generator/VERSION
@@ -1 +1 @@
-4.3.0-SNAPSHOT
\ No newline at end of file
+4.3.1-SNAPSHOT
\ No newline at end of file
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient.xcodeproj/project.pbxproj b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient.xcodeproj/project.pbxproj
index 1bcdd634be08..7664d648f4f5 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient.xcodeproj/project.pbxproj
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient.xcodeproj/project.pbxproj
@@ -313,7 +313,6 @@
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
- Base,
en,
);
mainGroup = 5FBA6AE5F64CD737F88B4565;
@@ -569,7 +568,7 @@
3B2C02AFB91CB5C82766ED5C /* Release */,
);
defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "";
+ defaultConfigurationName = Debug;
};
ECAB17FF35111B5E14DAAC08 /* Build configuration list for PBXProject "PetstoreClient" */ = {
isa = XCConfigurationList;
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata
index 919434a6254f..59618cad9c0b 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -2,6 +2,6 @@
+ location = "self:PetstoreClient.xcodeproj">
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme
index 26d510552bb0..ce431fd1d1dd 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme
@@ -41,10 +41,6 @@
-
-
-
-
-
-
{
public convenience init(response: HTTPURLResponse, body: T?) {
let rawHeader = response.allHeaderFields
var header = [String: String]()
- for case let (key, value) as (String, String) in rawHeader {
- header[key] = value
+ for (key, value) in rawHeader {
+ if let key = key as? String, let value = value as? String {
+ header[key] = value
+ }
}
self.init(statusCode: response.statusCode, header: header, body: body)
}
diff --git a/samples/client/petstore/swift5/resultLibrary/.openapi-generator/VERSION b/samples/client/petstore/swift5/resultLibrary/.openapi-generator/VERSION
index bfbf77eb7fad..b5d898602c2c 100644
--- a/samples/client/petstore/swift5/resultLibrary/.openapi-generator/VERSION
+++ b/samples/client/petstore/swift5/resultLibrary/.openapi-generator/VERSION
@@ -1 +1 @@
-4.3.0-SNAPSHOT
\ No newline at end of file
+4.3.1-SNAPSHOT
\ No newline at end of file
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient.xcodeproj/project.pbxproj b/samples/client/petstore/swift5/resultLibrary/PetstoreClient.xcodeproj/project.pbxproj
index 1ec755a41003..0e4ec79d9849 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient.xcodeproj/project.pbxproj
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient.xcodeproj/project.pbxproj
@@ -273,7 +273,6 @@
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
- Base,
en,
);
mainGroup = 5FBA6AE5F64CD737F88B4565;
@@ -521,7 +520,7 @@
3B2C02AFB91CB5C82766ED5C /* Release */,
);
defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "";
+ defaultConfigurationName = Debug;
};
ECAB17FF35111B5E14DAAC08 /* Build configuration list for PBXProject "PetstoreClient" */ = {
isa = XCConfigurationList;
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/samples/client/petstore/swift5/resultLibrary/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata
index 919434a6254f..59618cad9c0b 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -2,6 +2,6 @@
+ location = "self:PetstoreClient.xcodeproj">
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme b/samples/client/petstore/swift5/resultLibrary/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme
index 26d510552bb0..ce431fd1d1dd 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme
@@ -41,10 +41,6 @@
-
-
-
-
-
-
{
public convenience init(response: HTTPURLResponse, body: T?) {
let rawHeader = response.allHeaderFields
var header = [String: String]()
- for case let (key, value) as (String, String) in rawHeader {
- header[key] = value
+ for (key, value) in rawHeader {
+ if let key = key as? String, let value = value as? String {
+ header[key] = value
+ }
}
self.init(statusCode: response.statusCode, header: header, body: body)
}
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/.openapi-generator/VERSION b/samples/client/petstore/swift5/rxswiftLibrary/.openapi-generator/VERSION
index bfbf77eb7fad..b5d898602c2c 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/.openapi-generator/VERSION
+++ b/samples/client/petstore/swift5/rxswiftLibrary/.openapi-generator/VERSION
@@ -1 +1 @@
-4.3.0-SNAPSHOT
\ No newline at end of file
+4.3.1-SNAPSHOT
\ No newline at end of file
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient.xcodeproj/project.pbxproj b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient.xcodeproj/project.pbxproj
index 9026fc0c762c..a039b69cf53f 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient.xcodeproj/project.pbxproj
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient.xcodeproj/project.pbxproj
@@ -313,7 +313,6 @@
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
- Base,
en,
);
mainGroup = 5FBA6AE5F64CD737F88B4565;
@@ -569,7 +568,7 @@
3B2C02AFB91CB5C82766ED5C /* Release */,
);
defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "";
+ defaultConfigurationName = Debug;
};
ECAB17FF35111B5E14DAAC08 /* Build configuration list for PBXProject "PetstoreClient" */ = {
isa = XCConfigurationList;
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata
index 919434a6254f..59618cad9c0b 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -2,6 +2,6 @@
+ location = "self:PetstoreClient.xcodeproj">
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme
index 26d510552bb0..ce431fd1d1dd 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme
@@ -41,10 +41,6 @@
-
-
-
-
-
-
{
public convenience init(response: HTTPURLResponse, body: T?) {
let rawHeader = response.allHeaderFields
var header = [String: String]()
- for case let (key, value) as (String, String) in rawHeader {
- header[key] = value
+ for (key, value) in rawHeader {
+ if let key = key as? String, let value = value as? String {
+ header[key] = value
+ }
}
self.init(statusCode: response.statusCode, header: header, body: body)
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/.openapi-generator/VERSION b/samples/client/petstore/swift5/urlsessionLibrary/.openapi-generator/VERSION
index bfbf77eb7fad..b5d898602c2c 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/.openapi-generator/VERSION
+++ b/samples/client/petstore/swift5/urlsessionLibrary/.openapi-generator/VERSION
@@ -1 +1 @@
-4.3.0-SNAPSHOT
\ No newline at end of file
+4.3.1-SNAPSHOT
\ No newline at end of file
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/PetstoreClient.xcodeproj/project.pbxproj b/samples/client/petstore/swift5/urlsessionLibrary/PetstoreClient.xcodeproj/project.pbxproj
index 1ec755a41003..0e4ec79d9849 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/PetstoreClient.xcodeproj/project.pbxproj
+++ b/samples/client/petstore/swift5/urlsessionLibrary/PetstoreClient.xcodeproj/project.pbxproj
@@ -273,7 +273,6 @@
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
- Base,
en,
);
mainGroup = 5FBA6AE5F64CD737F88B4565;
@@ -521,7 +520,7 @@
3B2C02AFB91CB5C82766ED5C /* Release */,
);
defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "";
+ defaultConfigurationName = Debug;
};
ECAB17FF35111B5E14DAAC08 /* Build configuration list for PBXProject "PetstoreClient" */ = {
isa = XCConfigurationList;
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/samples/client/petstore/swift5/urlsessionLibrary/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata
index 919434a6254f..59618cad9c0b 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata
+++ b/samples/client/petstore/swift5/urlsessionLibrary/PetstoreClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -2,6 +2,6 @@
+ location = "self:PetstoreClient.xcodeproj">
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme b/samples/client/petstore/swift5/urlsessionLibrary/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme
index 26d510552bb0..ce431fd1d1dd 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme
+++ b/samples/client/petstore/swift5/urlsessionLibrary/PetstoreClient.xcodeproj/xcshareddata/xcschemes/PetstoreClient.xcscheme
@@ -41,10 +41,6 @@
-
-
-
-
-
-
{
public convenience init(response: HTTPURLResponse, body: T?) {
let rawHeader = response.allHeaderFields
var header = [String: String]()
- for case let (key, value) as (String, String) in rawHeader {
- header[key] = value
+ for (key, value) in rawHeader {
+ if let key = key as? String, let value = value as? String {
+ header[key] = value
+ }
}
self.init(statusCode: response.statusCode, header: header, body: body)
}
diff --git a/samples/client/test/swift5/default/.openapi-generator/VERSION b/samples/client/test/swift5/default/.openapi-generator/VERSION
index bfbf77eb7fad..b5d898602c2c 100644
--- a/samples/client/test/swift5/default/.openapi-generator/VERSION
+++ b/samples/client/test/swift5/default/.openapi-generator/VERSION
@@ -1 +1 @@
-4.3.0-SNAPSHOT
\ No newline at end of file
+4.3.1-SNAPSHOT
\ No newline at end of file
diff --git a/samples/client/test/swift5/default/TestClient.xcodeproj/project.pbxproj b/samples/client/test/swift5/default/TestClient.xcodeproj/project.pbxproj
index 58c7e0223e7e..51cda391135b 100644
--- a/samples/client/test/swift5/default/TestClient.xcodeproj/project.pbxproj
+++ b/samples/client/test/swift5/default/TestClient.xcodeproj/project.pbxproj
@@ -195,7 +195,6 @@
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
- Base,
en,
);
mainGroup = 3049D31996790CF8E31B6F01;
@@ -426,7 +425,7 @@
4CDAC84BFAB424A21776ADCA /* Release */,
);
defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "";
+ defaultConfigurationName = Debug;
};
/* End XCConfigurationList section */
};
diff --git a/samples/client/test/swift5/default/TestClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/samples/client/test/swift5/default/TestClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata
index 919434a6254f..37b1c0c5bb4b 100644
--- a/samples/client/test/swift5/default/TestClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata
+++ b/samples/client/test/swift5/default/TestClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -2,6 +2,6 @@
+ location = "self:TestClient.xcodeproj">
diff --git a/samples/client/test/swift5/default/TestClient.xcodeproj/xcshareddata/xcschemes/TestClient.xcscheme b/samples/client/test/swift5/default/TestClient.xcodeproj/xcshareddata/xcschemes/TestClient.xcscheme
index a96ec1a1ddf8..8011cf09204e 100644
--- a/samples/client/test/swift5/default/TestClient.xcodeproj/xcshareddata/xcschemes/TestClient.xcscheme
+++ b/samples/client/test/swift5/default/TestClient.xcodeproj/xcshareddata/xcschemes/TestClient.xcscheme
@@ -41,10 +41,6 @@
-
-
-
-
-
-
{
public convenience init(response: HTTPURLResponse, body: T?) {
let rawHeader = response.allHeaderFields
var header = [String: String]()
- for case let (key, value) as (String, String) in rawHeader {
- header[key] = value
+ for (key, value) in rawHeader {
+ if let key = key as? String, let value = value as? String {
+ header[key] = value
+ }
}
self.init(statusCode: response.statusCode, header: header, body: body)
}
diff --git a/samples/client/test/swift5/default/docs/SampleSubClass.md b/samples/client/test/swift5/default/docs/SampleSubClass.md
index 435633ccde1c..d32058a5b2c4 100644
--- a/samples/client/test/swift5/default/docs/SampleSubClass.md
+++ b/samples/client/test/swift5/default/docs/SampleSubClass.md
@@ -3,8 +3,6 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**baseClassStringProp** | **String** | | [optional]
-**baseClassIntegerProp** | **Int** | | [optional]
**subClassStringProp** | **String** | | [optional]
**subClassIntegerProp** | **Int** | | [optional]