diff --git a/bin/configs/swift5-vapor.yaml b/bin/configs/swift5-vapor.yaml
new file mode 100644
index 00000000000..5f1d2067969
--- /dev/null
+++ b/bin/configs/swift5-vapor.yaml
@@ -0,0 +1,12 @@
+generatorName: swift5
+outputDir: samples/client/petstore/swift5/vaporLibrary
+library: vapor
+inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
+templateDir: modules/openapi-generator/src/main/resources/swift5
+generateAliasAsModel: true
+additionalProperties:
+ projectName: PetstoreClient
+ useSPMFileStructure: true
+ useClasses: true
+ useBacktickEscapes: true
+ mapFileBinaryToData: true
diff --git a/docs/generators/swift5.md b/docs/generators/swift5.md
index 51dc7529358..96cfe8424c0 100644
--- a/docs/generators/swift5.md
+++ b/docs/generators/swift5.md
@@ -16,7 +16,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |true|
|legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|
- **true**
- The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.
- **false**
- The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.
|true|
|lenientTypeCast|Accept and cast values for simple types (string->bool, string->int, int->string)| |false|
-|library|Library template (sub-template) to use|- **urlsession**
- [DEFAULT] HTTP client: URLSession
- **alamofire**
- HTTP client: Alamofire
|urlsession|
+|library|Library template (sub-template) to use|- **urlsession**
- [DEFAULT] HTTP client: URLSession
- **alamofire**
- HTTP client: Alamofire
- **vapor**
- HTTP client: Vapor
|urlsession|
|mapFileBinaryToData|[WARNING] This option will be removed and enabled by default in the future once we've enhanced the code to work with `Data` in all the different situations. Map File and Binary to Data (default: false)| |false|
|nonPublicApi|Generates code with reduced access modifiers; allows embedding elsewhere without exposing non-public API calls to consumers.(default: false)| |null|
|objcCompatible|Add additional properties and methods for Objective-C compatibility (default: false)| |null|
diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/Swift5ClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/Swift5ClientCodegen.java
index f06bbd057c6..bf7dfd78d89 100644
--- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/Swift5ClientCodegen.java
+++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/Swift5ClientCodegen.java
@@ -70,6 +70,7 @@ public class Swift5ClientCodegen extends DefaultCodegen implements CodegenConfig
public static final String MAP_FILE_BINARY_TO_DATA = "mapFileBinaryToData";
protected static final String LIBRARY_ALAMOFIRE = "alamofire";
protected static final String LIBRARY_URLSESSION = "urlsession";
+ protected static final String LIBRARY_VAPOR = "vapor";
protected static final String RESPONSE_LIBRARY_PROMISE_KIT = "PromiseKit";
protected static final String RESPONSE_LIBRARY_RX_SWIFT = "RxSwift";
protected static final String RESPONSE_LIBRARY_RESULT = "Result";
@@ -297,6 +298,7 @@ public class Swift5ClientCodegen extends DefaultCodegen implements CodegenConfig
supportedLibraries.put(LIBRARY_URLSESSION, "[DEFAULT] HTTP client: URLSession");
supportedLibraries.put(LIBRARY_ALAMOFIRE, "HTTP client: Alamofire");
+ supportedLibraries.put(LIBRARY_VAPOR, "HTTP client: Vapor");
CliOption libraryOption = new CliOption(CodegenConstants.LIBRARY, "Library template (sub-template) to use");
libraryOption.setEnum(supportedLibraries);
@@ -499,57 +501,59 @@ public class Swift5ClientCodegen extends DefaultCodegen implements CodegenConfig
additionalProperties.put("apiDocPath", apiDocPath);
additionalProperties.put("modelDocPath", modelDocPath);
- supportingFiles.add(new SupportingFile("Podspec.mustache",
- "",
- projectName + ".podspec"));
- supportingFiles.add(new SupportingFile("Cartfile.mustache",
- "",
- "Cartfile"));
+ if (!getLibrary().equals(LIBRARY_VAPOR)) {
+ supportingFiles.add(new SupportingFile("Podspec.mustache",
+ "",
+ projectName + ".podspec"));
+ supportingFiles.add(new SupportingFile("Cartfile.mustache",
+ "",
+ "Cartfile"));
+ supportingFiles.add(new SupportingFile("CodableHelper.mustache",
+ sourceFolder,
+ "CodableHelper.swift"));
+ supportingFiles.add(new SupportingFile("OpenISO8601DateFormatter.mustache",
+ sourceFolder,
+ "OpenISO8601DateFormatter.swift"));
+ supportingFiles.add(new SupportingFile("JSONDataEncoding.mustache",
+ sourceFolder,
+ "JSONDataEncoding.swift"));
+ supportingFiles.add(new SupportingFile("JSONEncodingHelper.mustache",
+ sourceFolder,
+ "JSONEncodingHelper.swift"));
+ supportingFiles.add(new SupportingFile("git_push.sh.mustache",
+ "",
+ "git_push.sh"));
+ supportingFiles.add(new SupportingFile("SynchronizedDictionary.mustache",
+ sourceFolder,
+ "SynchronizedDictionary.swift"));
+ supportingFiles.add(new SupportingFile("XcodeGen.mustache",
+ "",
+ "project.yml"));
+ supportingFiles.add(new SupportingFile("APIHelper.mustache",
+ sourceFolder,
+ "APIHelper.swift"));
+ supportingFiles.add(new SupportingFile("Models.mustache",
+ sourceFolder,
+ "Models.swift"));
+ }
supportingFiles.add(new SupportingFile("Package.swift.mustache",
"",
"Package.swift"));
- supportingFiles.add(new SupportingFile("APIHelper.mustache",
- sourceFolder,
- "APIHelper.swift"));
supportingFiles.add(new SupportingFile("Configuration.mustache",
sourceFolder,
"Configuration.swift"));
supportingFiles.add(new SupportingFile("Extensions.mustache",
sourceFolder,
"Extensions.swift"));
- supportingFiles.add(new SupportingFile("Models.mustache",
- sourceFolder,
- "Models.swift"));
supportingFiles.add(new SupportingFile("APIs.mustache",
sourceFolder,
"APIs.swift"));
- supportingFiles.add(new SupportingFile("CodableHelper.mustache",
- sourceFolder,
- "CodableHelper.swift"));
- supportingFiles.add(new SupportingFile("OpenISO8601DateFormatter.mustache",
- sourceFolder,
- "OpenISO8601DateFormatter.swift"));
- supportingFiles.add(new SupportingFile("JSONDataEncoding.mustache",
- sourceFolder,
- "JSONDataEncoding.swift"));
- supportingFiles.add(new SupportingFile("JSONEncodingHelper.mustache",
- sourceFolder,
- "JSONEncodingHelper.swift"));
- supportingFiles.add(new SupportingFile("git_push.sh.mustache",
- "",
- "git_push.sh"));
- supportingFiles.add(new SupportingFile("SynchronizedDictionary.mustache",
- sourceFolder,
- "SynchronizedDictionary.swift"));
supportingFiles.add(new SupportingFile("gitignore.mustache",
"",
".gitignore"));
supportingFiles.add(new SupportingFile("README.mustache",
"",
"README.md"));
- supportingFiles.add(new SupportingFile("XcodeGen.mustache",
- "",
- "project.yml"));
switch (getLibrary()) {
case LIBRARY_ALAMOFIRE:
@@ -564,6 +568,9 @@ public class Swift5ClientCodegen extends DefaultCodegen implements CodegenConfig
sourceFolder,
"URLSessionImplementations.swift"));
break;
+ case LIBRARY_VAPOR:
+ additionalProperties.put("useVapor", true);
+ break;
default:
break;
}
diff --git a/modules/openapi-generator/src/main/resources/swift5/APIHelper.mustache b/modules/openapi-generator/src/main/resources/swift5/APIHelper.mustache
index 94dc810006a..e535c7df4c4 100644
--- a/modules/openapi-generator/src/main/resources/swift5/APIHelper.mustache
+++ b/modules/openapi-generator/src/main/resources/swift5/APIHelper.mustache
@@ -4,7 +4,8 @@
// https://openapi-generator.tech
//
-import Foundation
+import Foundation{{#useVapor}}
+import Vapor{{/useVapor}}
{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} struct APIHelper {
{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} static func rejectNil(_ source: [String: Any?]) -> [String: Any]? {
diff --git a/modules/openapi-generator/src/main/resources/swift5/APIs.mustache b/modules/openapi-generator/src/main/resources/swift5/APIs.mustache
index b05f0630179..f931988cf9f 100644
--- a/modules/openapi-generator/src/main/resources/swift5/APIs.mustache
+++ b/modules/openapi-generator/src/main/resources/swift5/APIs.mustache
@@ -5,18 +5,26 @@
//
import Foundation
+{{#useVapor}}
+import Vapor
+{{/useVapor}}
@available(*, deprecated, renamed: "{{projectName}}")
{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} typealias {{projectName}}API = {{projectName}}
{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}open{{/nonPublicApi}} class {{projectName}} {
{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} static var basePath = "{{{basePath}}}"
- {{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} static var credential: URLCredential?
- {{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} static var customHeaders: [String: String] = [:]{{#useAlamofire}}
+ {{#useVapor}}
+ {{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} static var customHeaders: HTTPHeaders = [:]
+ {{/useVapor}}
+ {{^useVapor}}
+ {{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} static var customHeaders: [String: String] = [:]
+ {{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} static var credential: URLCredential?{{#useAlamofire}}
{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} static var requestBuilderFactory: RequestBuilderFactory = AlamofireRequestBuilderFactory(){{/useAlamofire}}{{#useURLSession}}
{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} static var requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory(){{/useURLSession}}
{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} static var apiResponseQueue: DispatchQueue = .main
-}
+ {{/useVapor}}
+}{{^useVapor}}
{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}open{{/nonPublicApi}} class RequestBuilder {
var credential: URLCredential?
@@ -63,4 +71,4 @@ import Foundation
{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} protocol RequestBuilderFactory {
func getNonDecodableBuilder() -> RequestBuilder.Type
func getBuilder() -> RequestBuilder.Type
-}
+}{{/useVapor}}
diff --git a/modules/openapi-generator/src/main/resources/swift5/Configuration.mustache b/modules/openapi-generator/src/main/resources/swift5/Configuration.mustache
index a154850602e..d6bbdc0ae26 100644
--- a/modules/openapi-generator/src/main/resources/swift5/Configuration.mustache
+++ b/modules/openapi-generator/src/main/resources/swift5/Configuration.mustache
@@ -4,7 +4,8 @@
// https://openapi-generator.tech
//
-import Foundation
+import Foundation{{#useVapor}}
+import Vapor{{/useVapor}}
{{#swiftUseApiNamespace}}
@available(*, deprecated, renamed: "{{projectName}}.Configuration")
@@ -13,11 +14,15 @@ import Foundation
extension {{projectName}} {
{{/swiftUseApiNamespace}}
{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}open{{/nonPublicApi}} class Configuration {
+ {{#useVapor}}{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} static var apiClient: Vapor.Client? = nil
+ {{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} static var apiWrapper: (inout Vapor.ClientRequest) throws -> () = { _ in }
+ {{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} static var contentConfiguration = ContentConfiguration.default(){{/useVapor}}{{^useVapor}}
// This value is used to configure the date formatter that is used to serialize dates into JSON format.
// You must set it prior to encoding any dates, and it will only be read once.
@available(*, unavailable, message: "To set a different date format, use CodableHelper.dateFormatter instead.")
- {{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} static var dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSZZZZZ"
+ {{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} static var dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSZZZZZ"{{/useVapor}}
}
{{#swiftUseApiNamespace}}
}
+
{{/swiftUseApiNamespace}}
\ No newline at end of file
diff --git a/modules/openapi-generator/src/main/resources/swift5/Extensions.mustache b/modules/openapi-generator/src/main/resources/swift5/Extensions.mustache
index a4d5dd4b305..e81a205164f 100644
--- a/modules/openapi-generator/src/main/resources/swift5/Extensions.mustache
+++ b/modules/openapi-generator/src/main/resources/swift5/Extensions.mustache
@@ -8,7 +8,8 @@ import Foundation
#if canImport(AnyCodable)
import AnyCodable
#endif{{#usePromiseKit}}
-import PromiseKit{{/usePromiseKit}}
+import PromiseKit{{/usePromiseKit}}{{#useVapor}}
+import Vapor{{/useVapor}}{{^useVapor}}
extension Bool: JSONEncodable {
func encodeToJSON() -> Any { return self as Any }
@@ -94,7 +95,7 @@ extension UUID: JSONEncodable {
func encodeToJSON() -> Any {
return self.uuidString
}
-}{{#generateModelAdditionalProperties}}
+}{{/useVapor}}{{#generateModelAdditionalProperties}}
extension String: CodingKey {
@@ -180,13 +181,13 @@ extension KeyedDecodingContainerProtocol {
return map
}
-}{{/generateModelAdditionalProperties}}
+}{{/generateModelAdditionalProperties}}{{^useVapor}}
extension HTTPURLResponse {
var isStatusCodeSuccessful: Bool {
return Array(200 ..< 300).contains(statusCode)
}
-}{{#usePromiseKit}}
+}{{/useVapor}}{{#usePromiseKit}}
extension RequestBuilder {
{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} func execute() -> Promise> {
@@ -201,4 +202,39 @@ extension RequestBuilder {
}
return deferred.promise
}
-}{{/usePromiseKit}}
+}{{/usePromiseKit}}{{#useVapor}}
+
+extension UUID: Content { }
+
+extension URL: Content { }
+
+extension Bool: Content { }
+
+extension Set: ResponseEncodable where Element: Content {
+ public func encodeResponse(for request: Vapor.Request) -> EventLoopFuture {
+ let response = Vapor.Response()
+ do {
+ try response.content.encode(Array(self))
+ } catch {
+ return request.eventLoop.makeFailedFuture(error)
+ }
+ return request.eventLoop.makeSucceededFuture(response)
+ }
+}
+
+extension Set: RequestDecodable where Element: Content {
+ public static func decodeRequest(_ request: Vapor.Request) -> EventLoopFuture {
+ do {
+ let content = try request.content.decode([Element].self)
+ return request.eventLoop.makeSucceededFuture(Set(content))
+ } catch {
+ return request.eventLoop.makeFailedFuture(error)
+ }
+ }
+}
+
+extension Set: Content where Element: Content { }
+
+extension AnyCodable: Content {}
+{{/useVapor}}
+
diff --git a/modules/openapi-generator/src/main/resources/swift5/Package.swift.mustache b/modules/openapi-generator/src/main/resources/swift5/Package.swift.mustache
index 5dc55ffef83..5b106288b3c 100644
--- a/modules/openapi-generator/src/main/resources/swift5/Package.swift.mustache
+++ b/modules/openapi-generator/src/main/resources/swift5/Package.swift.mustache
@@ -5,10 +5,15 @@ import PackageDescription
let package = Package(
name: "{{projectName}}",
platforms: [
+ {{#useVapor}}
+ .macOS(.v10_15),
+ {{/useVapor}}
+ {{^useVapor}}
.iOS(.v9),
.macOS(.v10_11),
.tvOS(.v9),
.watchOS(.v3),
+ {{/useVapor}}
],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
@@ -23,6 +28,9 @@ let package = Package(
{{#useAlamofire}}
.package(url: "https://github.com/Alamofire/Alamofire.git", from: "4.9.1"),
{{/useAlamofire}}
+ {{#useVapor}}
+ .package(url: "https://github.com/vapor/vapor.git", from: "4.0.0")
+ {{/useVapor}}
{{#usePromiseKit}}
.package(url: "https://github.com/mxcl/PromiseKit.git", from: "6.15.3"),
{{/usePromiseKit}}
@@ -35,7 +43,7 @@ let package = Package(
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(
name: "{{projectName}}",
- dependencies: ["AnyCodable", {{#useAlamofire}}"Alamofire", {{/useAlamofire}}{{#usePromiseKit}}"PromiseKit", {{/usePromiseKit}}{{#useRxSwift}}"RxSwift"{{/useRxSwift}}],
+ dependencies: ["AnyCodable", {{#useVapor}}"Vapor", {{/useVapor}}{{#useAlamofire}}"Alamofire", {{/useAlamofire}}{{#usePromiseKit}}"PromiseKit", {{/usePromiseKit}}{{#useRxSwift}}"RxSwift"{{/useRxSwift}}],
path: "{{#swiftPackagePath}}{{swiftPackagePath}}{{/swiftPackagePath}}{{^swiftPackagePath}}{{#useSPMFileStructure}}Sources/{{projectName}}{{/useSPMFileStructure}}{{^useSPMFileStructure}}{{projectName}}/Classes{{/useSPMFileStructure}}{{/swiftPackagePath}}"
),
]
diff --git a/modules/openapi-generator/src/main/resources/swift5/README.mustache b/modules/openapi-generator/src/main/resources/swift5/README.mustache
index 4e15bc40b0b..2fc73bcdbc1 100644
--- a/modules/openapi-generator/src/main/resources/swift5/README.mustache
+++ b/modules/openapi-generator/src/main/resources/swift5/README.mustache
@@ -19,6 +19,13 @@ For more information, please visit [{{{infoUrl}}}]({{{infoUrl}}})
## Installation
+{{#useVapor}}
+Add the following entry in your Package.swift:
+
+> .package(path: "./{{{projectName}}}")
+
+{{/useVapor}}
+{{^useVapor}}
### Carthage
Run `carthage update`
@@ -27,7 +34,7 @@ Run `carthage update`
Run `pod install`
-## Documentation for API Endpoints
+{{/useVapor}}## Documentation for API Endpoints
All URIs are relative to *{{basePath}}*
diff --git a/modules/openapi-generator/src/main/resources/swift5/api.mustache b/modules/openapi-generator/src/main/resources/swift5/api.mustache
index 92643fdf268..7d84971ab98 100644
--- a/modules/openapi-generator/src/main/resources/swift5/api.mustache
+++ b/modules/openapi-generator/src/main/resources/swift5/api.mustache
@@ -10,21 +10,26 @@ import PromiseKit{{/usePromiseKit}}{{#useRxSwift}}
import RxSwift{{/useRxSwift}}{{#useCombine}}
#if canImport(Combine)
import Combine
-#endif{{/useCombine}}{{#swiftUseApiNamespace}}
+#endif{{/useCombine}}{{#useVapor}}
+import Vapor{{/useVapor}}
+#if canImport(AnyCodable)
+import AnyCodable
+#endif{{#swiftUseApiNamespace}}
extension {{projectName}} {
{{/swiftUseApiNamespace}}
{{#description}}
-/** {{description}} */{{/description}}
+/** {{{description}}} */{{/description}}
{{#objcCompatible}}@objc {{/objcCompatible}}{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}open{{/nonPublicApi}} class {{classname}}{{#objcCompatible}} : NSObject{{/objcCompatible}} {
{{#operation}}
+
{{#allParams}}
{{#isEnum}}
/**
* enum for parameter {{paramName}}
*/
- {{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} enum {{enumName}}_{{operationId}}: {{^isContainer}}{{{dataType}}}{{/isContainer}}{{#isContainer}}String{{/isContainer}}, CaseIterable {
+ {{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} enum {{enumName}}_{{operationId}}: {{^isContainer}}{{{dataType}}}{{/isContainer}}{{#isContainer}}String{{/isContainer}}, CaseIterable{{#useVapor}}, Content{{/useVapor}} {
{{#allowableValues}}
{{#enumVars}}
case {{name}} = {{{value}}}
@@ -34,6 +39,7 @@ extension {{projectName}} {
{{/isEnum}}
{{/allParams}}
+{{^useVapor}}
{{^usePromiseKit}}
{{^useRxSwift}}
{{^useResult}}
@@ -69,6 +75,7 @@ extension {{projectName}} {
{{/useResult}}
{{/useRxSwift}}
{{/usePromiseKit}}
+{{/useVapor}}
{{#usePromiseKit}}
/**
{{#summary}}
@@ -196,6 +203,126 @@ extension {{projectName}} {
}
}
{{/useResult}}
+{{#useVapor}}
+ /**
+ {{#summary}}
+ {{{summary}}}
+ {{/summary}}
+ {{httpMethod}} {{{path}}}{{#notes}}
+ {{{notes}}}{{/notes}}{{#subresourceOperation}}
+ subresourceOperation: {{subresourceOperation}}{{/subresourceOperation}}{{#defaultResponse}}
+ defaultResponse: {{defaultResponse}}{{/defaultResponse}}
+ {{#authMethods}}
+ - {{#isBasic}}BASIC{{/isBasic}}{{#isOAuth}}OAuth{{/isOAuth}}{{#isApiKey}}API Key{{/isApiKey}}:
+ - type: {{type}}{{#keyParamName}} {{keyParamName}} {{#isKeyInQuery}}(QUERY){{/isKeyInQuery}}{{#isKeyInHeaer}}(HEADER){{/isKeyInHeaer}}{{/keyParamName}}
+ - name: {{name}}
+ {{/authMethods}}
+ {{#hasResponseHeaders}}
+ - responseHeaders: [{{#responseHeaders}}{{{baseName}}}({{{dataType}}}){{^-last}}, {{/-last}}{{/responseHeaders}}]
+ {{/hasResponseHeaders}}
+ {{#externalDocs}}
+ - externalDocs: {{externalDocs}}
+ {{/externalDocs}}
+ {{#allParams}}
+ - parameter {{paramName}}: ({{#isFormParam}}form{{/isFormParam}}{{#isQueryParam}}query{{/isQueryParam}}{{#isPathParam}}path{{/isPathParam}}{{#isHeaderParam}}header{{/isHeaderParam}}{{#isBodyParam}}body{{/isBodyParam}}) {{{description}}} {{^required}}(optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}
+ {{/allParams}}
+ - returns: `EventLoopFuture` of `ClientResponse` {{{description}}}
+ */
+ {{#isDeprecated}}
+ @available(*, deprecated, message: "This operation is deprecated.")
+ {{/isDeprecated}}
+ {{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}open{{/nonPublicApi}} class func {{operationId}}Raw({{#allParams}}{{paramName}}: {{#isEnum}}{{#isArray}}[{{enumName}}_{{operationId}}]{{/isArray}}{{^isArray}}{{#isContainer}}{{{dataType}}}{{/isContainer}}{{^isContainer}}{{{datatypeWithEnum}}}_{{operationId}}{{/isContainer}}{{/isArray}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}{{^required}}? = nil{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#hasParams}}, {{/hasParams}}headers: HTTPHeaders = {{projectName}}.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ {{^pathParams}}let{{/pathParams}}{{#pathParams}}{{#-first}}var{{/-first}}{{/pathParams}} path = "{{{path}}}"{{#pathParams}}
+ let {{paramName}}PreEscape = String(describing: {{#isEnum}}{{paramName}}{{#isContainer}}{{{dataType}}}{{/isContainer}}{{^isContainer}}.rawValue{{/isContainer}}{{/isEnum}}{{^isEnum}}{{paramName}}{{/isEnum}})
+ let {{paramName}}PostEscape = {{paramName}}PreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
+ path = path.replacingOccurrences(of: "{{=<% %>=}}{<%baseName%>}<%={{ }}=%>", with: {{paramName}}PostEscape, options: .literal, range: nil){{/pathParams}}
+ let URLString = {{projectName}}.basePath + path
+
+ guard let apiClient = {{#swiftUseApiNamespace}}{{projectName}}.{{/swiftUseApiNamespace}}Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.{{httpMethod}}, headers: headers, to: URI(string: URLString)) { request in
+ try {{#swiftUseApiNamespace}}{{projectName}}.{{/swiftUseApiNamespace}}Configuration.apiWrapper(&request)
+ {{#hasHeaderParams}}{{#headerParams}}
+ request.headers.add(name: "{{baseName}}", value: {{#isArray}}{{paramName}}{{^required}}?{{/required}}.map { $0{{#isEnum}}.rawValue{{/isEnum}}.description }.description{{/isArray}}{{^isArray}}{{#isEnum}}{{paramName}}{{^required}}?{{/required}}.rawValue.description{{/isEnum}}{{^isEnum}}{{paramName}}{{^required}}?{{/required}}.description{{/isEnum}}{{/isArray}}{{^required}} ?? ""{{/required}})
+ {{/headerParams}}{{/hasHeaderParams}}
+ {{#hasQueryParams}}struct QueryParams: Content {
+ {{#queryParams}}
+ var {{paramName}}: {{#isEnum}}{{#isArray}}[{{enumName}}_{{operationId}}]{{/isArray}}{{^isArray}}{{#isContainer}}{{{dataType}}}{{/isContainer}}{{^isContainer}}{{{datatypeWithEnum}}}_{{operationId}}{{/isContainer}}{{/isArray}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}{{^required}}?{{/required}}
+ {{/queryParams}}
+ }
+ try request.query.encode(QueryParams({{#queryParams}}{{paramName}}: {{paramName}}{{^-last}}, {{/-last}}{{/queryParams}})){{/hasQueryParams}}
+ {{#hasBodyParam}}
+ {{#bodyParam}}{{#required}}{{#isBinary}}request.body = ByteBuffer(data: {{paramName}}){{/isBinary}}{{^isBinary}}{{#isFile}}request.body = ByteBuffer(data: {{paramName}}){{/isFile}}try request.content.encode({{paramName}}, using: Configuration.contentConfiguration.requireEncoder(for: {{{dataType}}}.defaultContentType)){{/isBinary}}{{/required}}{{^required}}if let body = {{paramName}} {
+
+ {{#isBinary}}request.body = ByteBuffer(data: body){{/isBinary}}{{^isBinary}}{{#isFile}}request.body = ByteBuffer(data: body){{/isFile}}try request.content.encode(body, using: Configuration.contentConfiguration.requireEncoder(for: {{{dataType}}}.defaultContentType)){{/isBinary}}
+ }{{/required}}{{/bodyParam}}
+ {{/hasBodyParam}}
+ {{#hasFormParams}}struct FormParams: Content {
+ static let defaultContentType = Vapor.HTTPMediaType.formData
+ {{#formParams}}
+ var {{paramName}}: {{#isEnum}}{{#isArray}}[{{enumName}}_{{operationId}}]{{/isArray}}{{^isArray}}{{#isContainer}}{{{dataType}}}{{/isContainer}}{{^isContainer}}{{{datatypeWithEnum}}}_{{operationId}}{{/isContainer}}{{/isArray}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}{{^required}}?{{/required}}
+ {{/formParams}}
+ }
+ try request.content.encode(FormParams({{#formParams}}{{paramName}}: {{paramName}}{{^-last}}, {{/-last}}{{/formParams}}), using: Configuration.contentConfiguration.requireEncoder(for: FormParams.defaultContentType)){{/hasFormParams}}
+ try beforeSend(&request)
+ }
+ }
+
+ {{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} enum {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}} {
+ {{#responses}}
+ case http{{code}}({{#dataType}}value: {{{dataType}}}, {{/dataType}}raw: ClientResponse)
+ {{/responses}}
+ {{^hasDefaultResponse}}
+ case http0(raw: ClientResponse)
+ {{/hasDefaultResponse}}
+ }
+
+ /**
+ {{#summary}}
+ {{{summary}}}
+ {{/summary}}
+ {{httpMethod}} {{{path}}}{{#notes}}
+ {{{notes}}}{{/notes}}{{#subresourceOperation}}
+ subresourceOperation: {{subresourceOperation}}{{/subresourceOperation}}{{#defaultResponse}}
+ defaultResponse: {{defaultResponse}}{{/defaultResponse}}
+ {{#authMethods}}
+ - {{#isBasic}}BASIC{{/isBasic}}{{#isOAuth}}OAuth{{/isOAuth}}{{#isApiKey}}API Key{{/isApiKey}}:
+ - type: {{type}}{{#keyParamName}} {{keyParamName}} {{#isKeyInQuery}}(QUERY){{/isKeyInQuery}}{{#isKeyInHeaer}}(HEADER){{/isKeyInHeaer}}{{/keyParamName}}
+ - name: {{name}}
+ {{/authMethods}}
+ {{#hasResponseHeaders}}
+ - responseHeaders: [{{#responseHeaders}}{{{baseName}}}({{{dataType}}}){{^-last}}, {{/-last}}{{/responseHeaders}}]
+ {{/hasResponseHeaders}}
+ {{#externalDocs}}
+ - externalDocs: {{externalDocs}}
+ {{/externalDocs}}
+ {{#allParams}}
+ - parameter {{paramName}}: ({{#isFormParam}}form{{/isFormParam}}{{#isQueryParam}}query{{/isQueryParam}}{{#isPathParam}}path{{/isPathParam}}{{#isHeaderParam}}header{{/isHeaderParam}}{{#isBodyParam}}body{{/isBodyParam}}) {{{description}}} {{^required}}(optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}
+ {{/allParams}}
+ - returns: `EventLoopFuture` of `{{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}` {{{description}}}
+ */
+ {{#isDeprecated}}
+ @available(*, deprecated, message: "This operation is deprecated.")
+ {{/isDeprecated}}
+ {{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}open{{/nonPublicApi}} class func {{operationId}}({{#allParams}}{{paramName}}: {{#isEnum}}{{#isArray}}[{{enumName}}_{{operationId}}]{{/isArray}}{{^isArray}}{{#isContainer}}{{{dataType}}}{{/isContainer}}{{^isContainer}}{{{datatypeWithEnum}}}_{{operationId}}{{/isContainer}}{{/isArray}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}{{^required}}? = nil{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#hasParams}}, {{/hasParams}}headers: HTTPHeaders = {{projectName}}.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture<{{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}> {
+ return {{operationId}}Raw({{#allParams}}{{paramName}}: {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}{{#hasParams}}, {{/hasParams}}headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}} in
+ switch response.status.code {
+ {{#responses}}
+ {{#isDefault}}default{{/isDefault}}{{^isDefault}}case {{code}}{{/isDefault}}:
+ return .http{{code}}({{#dataType}}value: {{#isBinary}}Data(buffer: response.body ?? ByteBuffer()){{/isBinary}}{{^isBinary}}{{#isFile}}Data(buffer: response.body ?? ByteBuffer()){{/isFile}}{{^isFile}}try response.content.decode({{{dataType}}}.self, using: Configuration.contentConfiguration.requireDecoder(for: {{{dataType}}}.defaultContentType)){{/isFile}}{{/isBinary}}, {{/dataType}}raw: response)
+ {{/responses}}
+ {{^hasDefaultResponse}}
+ default:
+ return .http0(raw: response)
+ {{/hasDefaultResponse}}
+ }
+ }
+ }
+
+{{/useVapor}}
+{{^useVapor}}
/**
{{#summary}}
@@ -268,7 +395,7 @@ extension {{projectName}} {
return requestBuilder.init(method: "{{httpMethod}}", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
+{{/useVapor}}
{{/operation}}
}
{{#swiftUseApiNamespace}}
diff --git a/modules/openapi-generator/src/main/resources/swift5/api_doc.mustache b/modules/openapi-generator/src/main/resources/swift5/api_doc.mustache
index f57a93153c6..93b51e32535 100644
--- a/modules/openapi-generator/src/main/resources/swift5/api_doc.mustache
+++ b/modules/openapi-generator/src/main/resources/swift5/api_doc.mustache
@@ -14,7 +14,9 @@ Method | HTTP request | Description
```swift
{{^usePromiseKit}}
{{^useRxSwift}}
+{{^useVapor}}
{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}open{{/nonPublicApi}} class func {{operationId}}({{#allParams}}{{paramName}}: {{#isEnum}}{{#isContainer}}{{{dataType}}}{{/isContainer}}{{^isContainer}}{{{datatypeWithEnum}}}_{{operationId}}{{/isContainer}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}{{^required}}? = nil{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#hasParams}}, {{/hasParams}}completion: @escaping (_ data: {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Void{{/returnType}}?, _ error: Error?) -> Void)
+{{/useVapor}}
{{/useRxSwift}}
{{/usePromiseKit}}
{{#usePromiseKit}}
@@ -23,6 +25,9 @@ Method | HTTP request | Description
{{#useRxSwift}}
{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}open{{/nonPublicApi}} class func {{operationId}}({{#allParams}}{{paramName}}: {{#isEnum}}{{#isContainer}}{{{dataType}}}{{/isContainer}}{{^isContainer}}{{{datatypeWithEnum}}}_{{operationId}}{{/isContainer}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}{{^required}}? = nil{{/required}}{{^-last}}, {{/-last}}{{/allParams}}) -> Observable<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Void{{/returnType}}>
{{/useRxSwift}}
+{{#useVapor}}
+ {{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}open{{/nonPublicApi}} class func {{operationId}}({{#allParams}}{{paramName}}: {{#isEnum}}{{#isContainer}}{{{dataType}}}{{/isContainer}}{{^isContainer}}{{{datatypeWithEnum}}}_{{operationId}}{{/isContainer}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}{{^required}}? = nil{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#hasParams}}, {{/hasParams}}headers: HTTPHeaders = {{projectName}}.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture<{{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}>
+{{/useVapor}}
```
{{{summary}}}{{#notes}}
@@ -39,6 +44,7 @@ import {{{projectName}}}
{{^usePromiseKit}}
{{^useRxSwift}}
+{{^useVapor}}
{{#summary}}
// {{{.}}}
{{/summary}}
@@ -52,6 +58,7 @@ import {{{projectName}}}
dump(response)
}
}
+{{/useVapor}}
{{/useRxSwift}}
{{/usePromiseKit}}
{{#usePromiseKit}}
@@ -69,6 +76,27 @@ import {{{projectName}}}
{{#useRxSwift}}
// TODO RxSwift sample code not yet implemented. To contribute, please open a ticket via http://github.com/OpenAPITools/openapi-generator/issues/new
{{/useRxSwift}}
+{{#useVapor}}
+{{#summary}}
+// {{{.}}}
+{{/summary}}
+{{classname}}.{{{operationId}}}({{#allParams}}{{paramName}}: {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ {{#responses}}
+ case .http{{code}}(let value, let raw):
+ {{/responses}}
+ {{^hasDefaultResponse}}
+ case .http0(let value, let raw):
+ {{/hasDefaultResponse}}
+ }
+ }
+}
+{{/useVapor}}
```
### Parameters
@@ -80,7 +108,23 @@ Name | Type | Description | Notes
### Return type
+{{#useVapor}}
+#### {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}
+
+```swift
+{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} enum {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}} {
+ {{#responses}}
+ case http{{code}}(value: {{#dataType}}{{dataType}}?{{/dataType}}{{^dataType}}Void?{{/dataType}}, raw: ClientResponse)
+ {{/responses}}
+ {{^hasDefaultResponse}}
+ case http0(value: {{#returnType}}{{returnType}}?{{/returnType}}{{^returnType}}Void?{{/returnType}}, raw: ClientResponse)
+ {{/hasDefaultResponse}}
+}
+```
+{{/useVapor}}
+{{^useVapor}}
{{#returnType}}{{#returnTypeIsPrimitive}}**{{{returnType}}}**{{/returnTypeIsPrimitive}}{{^returnTypeIsPrimitive}}[**{{{returnType}}}**]({{returnBaseType}}.md){{/returnTypeIsPrimitive}}{{/returnType}}{{^returnType}}Void (empty response body){{/returnType}}
+{{/useVapor}}
### Authorization
diff --git a/modules/openapi-generator/src/main/resources/swift5/model.mustache b/modules/openapi-generator/src/main/resources/swift5/model.mustache
index f9107398cfa..47df79b7c7d 100644
--- a/modules/openapi-generator/src/main/resources/swift5/model.mustache
+++ b/modules/openapi-generator/src/main/resources/swift5/model.mustache
@@ -8,7 +8,8 @@
import Foundation
#if canImport(AnyCodable)
import AnyCodable
-#endif
+#endif{{#useVapor}}
+import Vapor{{/useVapor}}
{{#swiftUseApiNamespace}}
@available(*, deprecated, renamed: "{{projectName}}.{{classname}}")
diff --git a/modules/openapi-generator/src/main/resources/swift5/modelEnum.mustache b/modules/openapi-generator/src/main/resources/swift5/modelEnum.mustache
index b10347d63db..4d868682a1e 100644
--- a/modules/openapi-generator/src/main/resources/swift5/modelEnum.mustache
+++ b/modules/openapi-generator/src/main/resources/swift5/modelEnum.mustache
@@ -1,7 +1,7 @@
-{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} enum {{classname}}: {{dataType}}, Codable, CaseIterable {
+{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} enum {{classname}}: {{dataType}}, {{#useVapor}}Content, Hashable{{/useVapor}}{{^useVapor}}Codable{{/useVapor}}, CaseIterable {
{{#allowableValues}}
{{#enumVars}}
- case {{name}} = {{{value}}}
+ case {{{name}}} = {{{value}}}
{{/enumVars}}
{{/allowableValues}}
}
\ No newline at end of file
diff --git a/modules/openapi-generator/src/main/resources/swift5/modelInlineEnumDeclaration.mustache b/modules/openapi-generator/src/main/resources/swift5/modelInlineEnumDeclaration.mustache
index 1c749e0b6cd..039bae3cb73 100644
--- a/modules/openapi-generator/src/main/resources/swift5/modelInlineEnumDeclaration.mustache
+++ b/modules/openapi-generator/src/main/resources/swift5/modelInlineEnumDeclaration.mustache
@@ -1,7 +1,7 @@
- {{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} enum {{enumName}}: {{^isContainer}}{{dataType}}{{/isContainer}}{{#isContainer}}String{{/isContainer}}, Codable, CaseIterable {
+ {{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} enum {{enumName}}: {{^isContainer}}{{dataType}}{{/isContainer}}{{#isContainer}}String{{/isContainer}}, {{#useVapor}}Content, Hashable{{/useVapor}}{{^useVapor}}Codable{{/useVapor}}, CaseIterable {
{{#allowableValues}}
{{#enumVars}}
- case {{name}} = {{{value}}}
+ case {{{name}}} = {{{value}}}
{{/enumVars}}
{{/allowableValues}}
}
\ No newline at end of file
diff --git a/modules/openapi-generator/src/main/resources/swift5/modelObject.mustache b/modules/openapi-generator/src/main/resources/swift5/modelObject.mustache
index da0d44247fc..450d95f1f76 100644
--- a/modules/openapi-generator/src/main/resources/swift5/modelObject.mustache
+++ b/modules/openapi-generator/src/main/resources/swift5/modelObject.mustache
@@ -1,4 +1,4 @@
-{{^objcCompatible}}{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} {{#useClasses}}final class{{/useClasses}}{{^useClasses}}struct{{/useClasses}} {{classname}}: Codable{{#vendorExtensions.x-swift-hashable}}, Hashable{{/vendorExtensions.x-swift-hashable}} {
+{{^objcCompatible}}{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} {{#useClasses}}final class{{/useClasses}}{{^useClasses}}struct{{/useClasses}} {{{classname}}}: {{#useVapor}}Content{{/useVapor}}{{^useVapor}}Codable{{/useVapor}}{{#vendorExtensions.x-swift-hashable}}, Hashable{{/vendorExtensions.x-swift-hashable}} {
{{/objcCompatible}}{{#objcCompatible}}@objc {{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} class {{classname}}: NSObject, Codable {
{{/objcCompatible}}
@@ -9,12 +9,12 @@
{{/allVars}}
{{#allVars}}
{{#isEnum}}
- {{#description}}/** {{description}} */
+ {{#description}}/** {{{description}}} */
{{/description}}{{#deprecated}}@available(*, deprecated, message: "This property is deprecated.")
{{/deprecated}}{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} {{#readonlyProperties}}private(set) {{/readonlyProperties}}var {{{name}}}: {{{datatypeWithEnum}}}{{#required}}{{#isNullable}}?{{/isNullable}}{{/required}}{{^required}}?{{/required}}{{#defaultValue}} = {{{defaultValue}}}{{/defaultValue}}
{{/isEnum}}
{{^isEnum}}
- {{#description}}/** {{description}} */
+ {{#description}}/** {{{description}}} */
{{/description}}{{#deprecated}}@available(*, deprecated, message: "This property is deprecated.")
{{/deprecated}}{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} {{#readonlyProperties}}private(set) {{/readonlyProperties}}var {{{name}}}: {{{datatype}}}{{#required}}{{#isNullable}}?{{/isNullable}}{{/required}}{{^required}}?{{/required}}{{#defaultValue}} = {{{defaultValue}}}{{/defaultValue}}
{{#objcCompatible}}
@@ -102,4 +102,4 @@
{{/allVars}}
{{#generateModelAdditionalProperties}}{{#additionalPropertiesType}}hasher.combine(additionalProperties.hashValue){{/additionalPropertiesType}}{{/generateModelAdditionalProperties}}
}{{/vendorExtensions.x-swift-hashable}}{{/useClasses}}{{/objcCompatible}}
-}
\ No newline at end of file
+}
diff --git a/modules/openapi-generator/src/main/resources/swift5/modelOneOf.mustache b/modules/openapi-generator/src/main/resources/swift5/modelOneOf.mustache
index 8aeddcc3c12..fae34faa975 100644
--- a/modules/openapi-generator/src/main/resources/swift5/modelOneOf.mustache
+++ b/modules/openapi-generator/src/main/resources/swift5/modelOneOf.mustache
@@ -1,4 +1,4 @@
-public enum {{classname}}: Codable {
+public enum {{classname}}: {{#useVapor}}Content{{/useVapor}}{{^useVapor}}Codable{{/useVapor}} {
{{#oneOf}}
case type{{.}}({{.}})
{{/oneOf}}
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs.swift
index 85346c2896e..82eb3630aa6 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs.swift
@@ -11,8 +11,8 @@ public typealias PetstoreClientAPI = PetstoreClient
open class PetstoreClient {
public static var basePath = "http://petstore.swagger.io:80/v2"
- public static var credential: URLCredential?
public static var customHeaders: [String: String] = [:]
+ public static var credential: URLCredential?
public static var requestBuilderFactory: RequestBuilderFactory = AlamofireRequestBuilderFactory()
public static var apiResponseQueue: DispatchQueue = .main
}
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift
index 542fb6f69ba..7d09ab30c12 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class AnotherFakeAPI {
+
/**
To test special tags
@@ -50,5 +54,4 @@ open class AnotherFakeAPI {
return requestBuilder.init(method: "PATCH", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift
index 9b75edc92ee..5480213e38d 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class FakeAPI {
+
/**
- parameter body: (body) Input boolean as post body (optional)
@@ -680,5 +684,4 @@ open class FakeAPI {
return requestBuilder.init(method: "GET", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift
index fd7d845d340..9683e0ce5b1 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class FakeClassnameTags123API {
+
/**
To test class name in snake case
@@ -53,5 +57,4 @@ open class FakeClassnameTags123API {
return requestBuilder.init(method: "PATCH", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift
index d7d5bdfa2ea..8cbd15364b6 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class PetAPI {
+
/**
Add a new pet to the store
@@ -479,5 +483,4 @@ open class PetAPI {
return requestBuilder.init(method: "POST", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift
index c80d4286b53..a83e954ae6a 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class StoreAPI {
+
/**
Delete purchase order by ID
@@ -185,5 +189,4 @@ open class StoreAPI {
return requestBuilder.init(method: "POST", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift
index 542dc212bd1..dbff6ade41c 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class UserAPI {
+
/**
Create user
@@ -362,5 +366,4 @@ open class UserAPI {
return requestBuilder.init(method: "PUT", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Configuration.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Configuration.swift
index 18edabbed78..8fb05331889 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Configuration.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Configuration.swift
@@ -7,6 +7,7 @@
import Foundation
open class Configuration {
+
// This value is used to configure the date formatter that is used to serialize dates into JSON format.
// You must set it prior to encoding any dates, and it will only be read once.
@available(*, unavailable, message: "To set a different date format, use CodableHelper.dateFormatter instead.")
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift
index 61a478de142..621afb93561 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift
@@ -33,3 +33,4 @@ public struct AdditionalPropertiesClass: Codable, Hashable {
try container.encodeIfPresent(mapMapString, forKey: .mapMapString)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift
index 157cca1d227..cdd4f5335b9 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift
@@ -33,3 +33,4 @@ public struct Animal: Codable, Hashable {
try container.encodeIfPresent(color, forKey: .color)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift
index 8607cbef1a3..c365505ab9d 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift
@@ -37,3 +37,4 @@ public struct ApiResponse: Codable, Hashable {
try container.encodeIfPresent(message, forKey: .message)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift
index f3f161b44c1..226f7456181 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift
@@ -29,3 +29,4 @@ public struct ArrayOfArrayOfNumberOnly: Codable, Hashable {
try container.encodeIfPresent(arrayArrayNumber, forKey: .arrayArrayNumber)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift
index d62de957472..39831127871 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift
@@ -29,3 +29,4 @@ public struct ArrayOfNumberOnly: Codable, Hashable {
try container.encodeIfPresent(arrayNumber, forKey: .arrayNumber)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift
index 360d50d027f..8865d76bef2 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift
@@ -37,3 +37,4 @@ public struct ArrayTest: Codable, Hashable {
try container.encodeIfPresent(arrayArrayOfModel, forKey: .arrayArrayOfModel)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift
index f0781a9cb73..71cd93bce5f 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift
@@ -50,3 +50,4 @@ public struct Capitalization: Codable, Hashable {
try container.encodeIfPresent(ATT_NAME, forKey: .ATT_NAME)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift
index d5519760387..457e04bd475 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift
@@ -37,3 +37,4 @@ public struct Cat: Codable, Hashable {
try container.encodeIfPresent(declawed, forKey: .declawed)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift
index 8312680deb3..8caebb1c206 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift
@@ -29,3 +29,4 @@ public struct CatAllOf: Codable, Hashable {
try container.encodeIfPresent(declawed, forKey: .declawed)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift
index 398da60aa73..89016ca353d 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift
@@ -33,3 +33,4 @@ public struct Category: Codable, Hashable {
try container.encode(name, forKey: .name)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift
index 03bf63e4cad..16e69e560bd 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift
@@ -30,3 +30,4 @@ public struct ClassModel: Codable, Hashable {
try container.encodeIfPresent(_class, forKey: ._class)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Client.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Client.swift
index 59604878043..60dbc5dc5c1 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Client.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Client.swift
@@ -29,3 +29,4 @@ public struct Client: Codable, Hashable {
try container.encodeIfPresent(client, forKey: .client)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift
index 4ada3ceb605..658732a7f36 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift
@@ -37,3 +37,4 @@ public struct Dog: Codable, Hashable {
try container.encodeIfPresent(breed, forKey: .breed)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift
index f6c3d287301..82b0dedf35b 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift
@@ -29,3 +29,4 @@ public struct DogAllOf: Codable, Hashable {
try container.encodeIfPresent(breed, forKey: .breed)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift
index 0e0aad42abe..1d8ce99539c 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift
@@ -41,3 +41,4 @@ public struct EnumArrays: Codable, Hashable {
try container.encodeIfPresent(arrayEnum, forKey: .arrayEnum)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift
index 9e44926be9b..8c8bca49774 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift
@@ -63,3 +63,4 @@ public struct EnumTest: Codable, Hashable {
try container.encodeIfPresent(outerEnum, forKey: .outerEnum)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/File.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/File.swift
index 11694b2ca59..05dd5b1a825 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/File.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/File.swift
@@ -31,3 +31,4 @@ public struct File: Codable, Hashable {
try container.encodeIfPresent(sourceURI, forKey: .sourceURI)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift
index 6aa85d8eecf..3ca66a31359 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift
@@ -33,3 +33,4 @@ public struct FileSchemaTestClass: Codable, Hashable {
try container.encodeIfPresent(files, forKey: .files)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift
index 114c884efc5..a7a4b39e720 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift
@@ -77,3 +77,4 @@ public struct FormatTest: Codable, Hashable {
try container.encode(password, forKey: .password)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift
index cb1a7456a7d..54ed8a723c6 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift
@@ -33,3 +33,4 @@ public struct HasOnlyReadOnly: Codable, Hashable {
try container.encodeIfPresent(foo, forKey: .foo)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/List.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/List.swift
index 8ecdd3b0233..67e3048469f 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/List.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/List.swift
@@ -29,3 +29,4 @@ public struct List: Codable, Hashable {
try container.encodeIfPresent(_123list, forKey: ._123list)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift
index 0ff74ed8400..1e728fcdf58 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift
@@ -45,3 +45,4 @@ public struct MapTest: Codable, Hashable {
try container.encodeIfPresent(indirectMap, forKey: .indirectMap)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
index 58a0a54ca09..c79ca459217 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
@@ -37,3 +37,4 @@ public struct MixedPropertiesAndAdditionalPropertiesClass: Codable, Hashable {
try container.encodeIfPresent(map, forKey: .map)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift
index 0f59769954f..23402143f71 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift
@@ -34,3 +34,4 @@ public struct Model200Response: Codable, Hashable {
try container.encodeIfPresent(_class, forKey: ._class)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Name.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Name.swift
index d88c94f05c9..a28f46a33ce 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Name.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Name.swift
@@ -42,3 +42,4 @@ public struct Name: Codable, Hashable {
try container.encodeIfPresent(_123number, forKey: ._123number)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift
index 0f05482b9b7..87ceb64bb97 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift
@@ -29,3 +29,4 @@ public struct NumberOnly: Codable, Hashable {
try container.encodeIfPresent(justNumber, forKey: .justNumber)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift
index 100d6b71fed..e2eeced4c57 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift
@@ -55,3 +55,4 @@ public struct Order: Codable, Hashable {
try container.encodeIfPresent(complete, forKey: .complete)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift
index 15a4e4a15b6..edeaccaeaa6 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift
@@ -37,3 +37,4 @@ public struct OuterComposite: Codable, Hashable {
try container.encodeIfPresent(myBoolean, forKey: .myBoolean)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift
index a87ab825ea0..ddd1186b891 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift
@@ -55,3 +55,4 @@ public struct Pet: Codable, Hashable {
try container.encodeIfPresent(status, forKey: .status)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift
index 6426deedf63..57ba3f577c8 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift
@@ -33,3 +33,4 @@ public struct ReadOnlyFirst: Codable, Hashable {
try container.encodeIfPresent(baz, forKey: .baz)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Return.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Return.swift
index 777c241bc0c..afc2b51f8f3 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Return.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Return.swift
@@ -30,3 +30,4 @@ public struct Return: Codable, Hashable {
try container.encodeIfPresent(_return, forKey: ._return)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift
index b677523a749..bfe9723f888 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift
@@ -29,3 +29,4 @@ public struct SpecialModelName: Codable, Hashable {
try container.encodeIfPresent(specialPropertyName, forKey: .specialPropertyName)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift
index f575c9df65c..126c35c85a6 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift
@@ -49,3 +49,4 @@ public struct StringBooleanMap: Codable, Hashable {
additionalProperties = try additionalPropertiesContainer.decodeMap(Bool.self, excludedKeys: nonAdditionalPropertyKeys)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift
index cd5acc827db..07b826264f3 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift
@@ -33,3 +33,4 @@ public struct Tag: Codable, Hashable {
try container.encodeIfPresent(name, forKey: .name)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift
index 341c9b4b8c2..e58eecd960f 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift
@@ -45,3 +45,4 @@ public struct TypeHolderDefault: Codable, Hashable {
try container.encode(arrayItem, forKey: .arrayItem)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift
index 04166af0895..6c22fdbae7a 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift
@@ -45,3 +45,4 @@ public struct TypeHolderExample: Codable, Hashable {
try container.encode(arrayItem, forKey: .arrayItem)
}
}
+
diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift
index 9f3ded8fcd9..7afe359ae40 100644
--- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift
+++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift
@@ -58,3 +58,4 @@ public struct User: Codable, Hashable {
try container.encodeIfPresent(userStatus, forKey: .userStatus)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs.swift
index 01bc6ff0d8d..941c61b713a 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs.swift
@@ -11,8 +11,8 @@ public typealias PetstoreClientAPI = PetstoreClient
open class PetstoreClient {
public static var basePath = "http://petstore.swagger.io:80/v2"
- public static var credential: URLCredential?
public static var customHeaders: [String: String] = [:]
+ public static var credential: URLCredential?
public static var requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory()
public static var apiResponseQueue: DispatchQueue = .main
}
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift
index f7f14df25d3..70498ae5c83 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift
@@ -9,8 +9,12 @@ import Foundation
#if canImport(Combine)
import Combine
#endif
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class AnotherFakeAPI {
+
/**
To test special tags
@@ -58,5 +62,4 @@ open class AnotherFakeAPI {
return requestBuilder.init(method: "PATCH", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift
index c2587336354..90aa780acc5 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift
@@ -9,8 +9,12 @@ import Foundation
#if canImport(Combine)
import Combine
#endif
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class FakeAPI {
+
/**
- parameter body: (body) Input boolean as post body (optional)
@@ -743,5 +747,4 @@ open class FakeAPI {
return requestBuilder.init(method: "GET", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift
index 094b75647ae..af9a24d7412 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift
@@ -9,8 +9,12 @@ import Foundation
#if canImport(Combine)
import Combine
#endif
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class FakeClassnameTags123API {
+
/**
To test class name in snake case
@@ -61,5 +65,4 @@ open class FakeClassnameTags123API {
return requestBuilder.init(method: "PATCH", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift
index b1d495832c6..7c968379435 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift
@@ -9,8 +9,12 @@ import Foundation
#if canImport(Combine)
import Combine
#endif
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class PetAPI {
+
/**
Add a new pet to the store
@@ -527,5 +531,4 @@ open class PetAPI {
return requestBuilder.init(method: "POST", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift
index 9e4aa781716..0ed144406b9 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift
@@ -9,8 +9,12 @@ import Foundation
#if canImport(Combine)
import Combine
#endif
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class StoreAPI {
+
/**
Delete purchase order by ID
@@ -208,5 +212,4 @@ open class StoreAPI {
return requestBuilder.init(method: "POST", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift
index fa260d3e83a..c469d6ed3a1 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift
@@ -9,8 +9,12 @@ import Foundation
#if canImport(Combine)
import Combine
#endif
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class UserAPI {
+
/**
Create user
@@ -405,5 +409,4 @@ open class UserAPI {
return requestBuilder.init(method: "PUT", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Configuration.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Configuration.swift
index 18edabbed78..8fb05331889 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Configuration.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Configuration.swift
@@ -7,6 +7,7 @@
import Foundation
open class Configuration {
+
// This value is used to configure the date formatter that is used to serialize dates into JSON format.
// You must set it prior to encoding any dates, and it will only be read once.
@available(*, unavailable, message: "To set a different date format, use CodableHelper.dateFormatter instead.")
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift
index 61a478de142..621afb93561 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift
@@ -33,3 +33,4 @@ public struct AdditionalPropertiesClass: Codable, Hashable {
try container.encodeIfPresent(mapMapString, forKey: .mapMapString)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift
index 157cca1d227..cdd4f5335b9 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift
@@ -33,3 +33,4 @@ public struct Animal: Codable, Hashable {
try container.encodeIfPresent(color, forKey: .color)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift
index 8607cbef1a3..c365505ab9d 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift
@@ -37,3 +37,4 @@ public struct ApiResponse: Codable, Hashable {
try container.encodeIfPresent(message, forKey: .message)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift
index f3f161b44c1..226f7456181 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift
@@ -29,3 +29,4 @@ public struct ArrayOfArrayOfNumberOnly: Codable, Hashable {
try container.encodeIfPresent(arrayArrayNumber, forKey: .arrayArrayNumber)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift
index d62de957472..39831127871 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift
@@ -29,3 +29,4 @@ public struct ArrayOfNumberOnly: Codable, Hashable {
try container.encodeIfPresent(arrayNumber, forKey: .arrayNumber)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift
index 360d50d027f..8865d76bef2 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift
@@ -37,3 +37,4 @@ public struct ArrayTest: Codable, Hashable {
try container.encodeIfPresent(arrayArrayOfModel, forKey: .arrayArrayOfModel)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift
index f0781a9cb73..71cd93bce5f 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift
@@ -50,3 +50,4 @@ public struct Capitalization: Codable, Hashable {
try container.encodeIfPresent(ATT_NAME, forKey: .ATT_NAME)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift
index d5519760387..457e04bd475 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift
@@ -37,3 +37,4 @@ public struct Cat: Codable, Hashable {
try container.encodeIfPresent(declawed, forKey: .declawed)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift
index 8312680deb3..8caebb1c206 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift
@@ -29,3 +29,4 @@ public struct CatAllOf: Codable, Hashable {
try container.encodeIfPresent(declawed, forKey: .declawed)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift
index 398da60aa73..89016ca353d 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift
@@ -33,3 +33,4 @@ public struct Category: Codable, Hashable {
try container.encode(name, forKey: .name)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift
index 03bf63e4cad..16e69e560bd 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift
@@ -30,3 +30,4 @@ public struct ClassModel: Codable, Hashable {
try container.encodeIfPresent(_class, forKey: ._class)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Client.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Client.swift
index 59604878043..60dbc5dc5c1 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Client.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Client.swift
@@ -29,3 +29,4 @@ public struct Client: Codable, Hashable {
try container.encodeIfPresent(client, forKey: .client)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift
index 4ada3ceb605..658732a7f36 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift
@@ -37,3 +37,4 @@ public struct Dog: Codable, Hashable {
try container.encodeIfPresent(breed, forKey: .breed)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift
index f6c3d287301..82b0dedf35b 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift
@@ -29,3 +29,4 @@ public struct DogAllOf: Codable, Hashable {
try container.encodeIfPresent(breed, forKey: .breed)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift
index 0e0aad42abe..1d8ce99539c 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift
@@ -41,3 +41,4 @@ public struct EnumArrays: Codable, Hashable {
try container.encodeIfPresent(arrayEnum, forKey: .arrayEnum)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift
index 9e44926be9b..8c8bca49774 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift
@@ -63,3 +63,4 @@ public struct EnumTest: Codable, Hashable {
try container.encodeIfPresent(outerEnum, forKey: .outerEnum)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/File.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/File.swift
index 11694b2ca59..05dd5b1a825 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/File.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/File.swift
@@ -31,3 +31,4 @@ public struct File: Codable, Hashable {
try container.encodeIfPresent(sourceURI, forKey: .sourceURI)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift
index 6aa85d8eecf..3ca66a31359 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift
@@ -33,3 +33,4 @@ public struct FileSchemaTestClass: Codable, Hashable {
try container.encodeIfPresent(files, forKey: .files)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift
index 114c884efc5..a7a4b39e720 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift
@@ -77,3 +77,4 @@ public struct FormatTest: Codable, Hashable {
try container.encode(password, forKey: .password)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift
index cb1a7456a7d..54ed8a723c6 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift
@@ -33,3 +33,4 @@ public struct HasOnlyReadOnly: Codable, Hashable {
try container.encodeIfPresent(foo, forKey: .foo)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/List.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/List.swift
index 8ecdd3b0233..67e3048469f 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/List.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/List.swift
@@ -29,3 +29,4 @@ public struct List: Codable, Hashable {
try container.encodeIfPresent(_123list, forKey: ._123list)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift
index 0ff74ed8400..1e728fcdf58 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift
@@ -45,3 +45,4 @@ public struct MapTest: Codable, Hashable {
try container.encodeIfPresent(indirectMap, forKey: .indirectMap)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
index 58a0a54ca09..c79ca459217 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
@@ -37,3 +37,4 @@ public struct MixedPropertiesAndAdditionalPropertiesClass: Codable, Hashable {
try container.encodeIfPresent(map, forKey: .map)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift
index 0f59769954f..23402143f71 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift
@@ -34,3 +34,4 @@ public struct Model200Response: Codable, Hashable {
try container.encodeIfPresent(_class, forKey: ._class)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Name.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Name.swift
index d88c94f05c9..a28f46a33ce 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Name.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Name.swift
@@ -42,3 +42,4 @@ public struct Name: Codable, Hashable {
try container.encodeIfPresent(_123number, forKey: ._123number)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift
index 0f05482b9b7..87ceb64bb97 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift
@@ -29,3 +29,4 @@ public struct NumberOnly: Codable, Hashable {
try container.encodeIfPresent(justNumber, forKey: .justNumber)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift
index 100d6b71fed..e2eeced4c57 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift
@@ -55,3 +55,4 @@ public struct Order: Codable, Hashable {
try container.encodeIfPresent(complete, forKey: .complete)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift
index 15a4e4a15b6..edeaccaeaa6 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift
@@ -37,3 +37,4 @@ public struct OuterComposite: Codable, Hashable {
try container.encodeIfPresent(myBoolean, forKey: .myBoolean)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift
index a87ab825ea0..ddd1186b891 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift
@@ -55,3 +55,4 @@ public struct Pet: Codable, Hashable {
try container.encodeIfPresent(status, forKey: .status)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift
index 6426deedf63..57ba3f577c8 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift
@@ -33,3 +33,4 @@ public struct ReadOnlyFirst: Codable, Hashable {
try container.encodeIfPresent(baz, forKey: .baz)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Return.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Return.swift
index 777c241bc0c..afc2b51f8f3 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Return.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Return.swift
@@ -30,3 +30,4 @@ public struct Return: Codable, Hashable {
try container.encodeIfPresent(_return, forKey: ._return)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift
index b677523a749..bfe9723f888 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift
@@ -29,3 +29,4 @@ public struct SpecialModelName: Codable, Hashable {
try container.encodeIfPresent(specialPropertyName, forKey: .specialPropertyName)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift
index f575c9df65c..126c35c85a6 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift
@@ -49,3 +49,4 @@ public struct StringBooleanMap: Codable, Hashable {
additionalProperties = try additionalPropertiesContainer.decodeMap(Bool.self, excludedKeys: nonAdditionalPropertyKeys)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift
index cd5acc827db..07b826264f3 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift
@@ -33,3 +33,4 @@ public struct Tag: Codable, Hashable {
try container.encodeIfPresent(name, forKey: .name)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift
index 341c9b4b8c2..e58eecd960f 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift
@@ -45,3 +45,4 @@ public struct TypeHolderDefault: Codable, Hashable {
try container.encode(arrayItem, forKey: .arrayItem)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift
index 04166af0895..6c22fdbae7a 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift
@@ -45,3 +45,4 @@ public struct TypeHolderExample: Codable, Hashable {
try container.encode(arrayItem, forKey: .arrayItem)
}
}
+
diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift
index 9f3ded8fcd9..7afe359ae40 100644
--- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift
+++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift
@@ -58,3 +58,4 @@ public struct User: Codable, Hashable {
try container.encodeIfPresent(userStatus, forKey: .userStatus)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs.swift
index 01bc6ff0d8d..941c61b713a 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs.swift
@@ -11,8 +11,8 @@ public typealias PetstoreClientAPI = PetstoreClient
open class PetstoreClient {
public static var basePath = "http://petstore.swagger.io:80/v2"
- public static var credential: URLCredential?
public static var customHeaders: [String: String] = [:]
+ public static var credential: URLCredential?
public static var requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory()
public static var apiResponseQueue: DispatchQueue = .main
}
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift
index 542fb6f69ba..7d09ab30c12 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class AnotherFakeAPI {
+
/**
To test special tags
@@ -50,5 +54,4 @@ open class AnotherFakeAPI {
return requestBuilder.init(method: "PATCH", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift
index eb6d1e67c4f..3a25702d994 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class FakeAPI {
+
/**
creates an XmlItem
@@ -779,5 +783,4 @@ open class FakeAPI {
return requestBuilder.init(method: "PUT", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift
index fd7d845d340..9683e0ce5b1 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class FakeClassnameTags123API {
+
/**
To test class name in snake case
@@ -53,5 +57,4 @@ open class FakeClassnameTags123API {
return requestBuilder.init(method: "PATCH", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift
index fa8620ba081..e8ab4d6861a 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class PetAPI {
+
/**
Add a new pet to the store
@@ -479,5 +483,4 @@ open class PetAPI {
return requestBuilder.init(method: "POST", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift
index c80d4286b53..a83e954ae6a 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class StoreAPI {
+
/**
Delete purchase order by ID
@@ -185,5 +189,4 @@ open class StoreAPI {
return requestBuilder.init(method: "POST", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift
index 542dc212bd1..dbff6ade41c 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class UserAPI {
+
/**
Create user
@@ -362,5 +366,4 @@ open class UserAPI {
return requestBuilder.init(method: "PUT", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Configuration.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Configuration.swift
index 18edabbed78..8fb05331889 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Configuration.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Configuration.swift
@@ -7,6 +7,7 @@
import Foundation
open class Configuration {
+
// This value is used to configure the date formatter that is used to serialize dates into JSON format.
// You must set it prior to encoding any dates, and it will only be read once.
@available(*, unavailable, message: "To set a different date format, use CodableHelper.dateFormatter instead.")
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesAnyType.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesAnyType.swift
index 96d07d1ef30..07dd0c38a1f 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesAnyType.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesAnyType.swift
@@ -58,3 +58,4 @@ public struct AdditionalPropertiesAnyType: Codable, Hashable {
additionalProperties = try additionalPropertiesContainer.decodeMap(AnyCodable.self, excludedKeys: nonAdditionalPropertyKeys)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesArray.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesArray.swift
index 106e4dd6de1..43a6d66cb59 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesArray.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesArray.swift
@@ -58,3 +58,4 @@ public struct AdditionalPropertiesArray: Codable, Hashable {
additionalProperties = try additionalPropertiesContainer.decodeMap([AnyCodable].self, excludedKeys: nonAdditionalPropertyKeys)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesBoolean.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesBoolean.swift
index bfbd7a5f20d..a2a20a926a1 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesBoolean.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesBoolean.swift
@@ -58,3 +58,4 @@ public struct AdditionalPropertiesBoolean: Codable, Hashable {
additionalProperties = try additionalPropertiesContainer.decodeMap(Bool.self, excludedKeys: nonAdditionalPropertyKeys)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift
index 614e0963353..eb6669c105a 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift
@@ -69,3 +69,4 @@ public struct AdditionalPropertiesClass: Codable, Hashable {
try container.encodeIfPresent(anytype3, forKey: .anytype3)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesInteger.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesInteger.swift
index b57691746ca..0ccd9115bfd 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesInteger.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesInteger.swift
@@ -58,3 +58,4 @@ public struct AdditionalPropertiesInteger: Codable, Hashable {
additionalProperties = try additionalPropertiesContainer.decodeMap(Int.self, excludedKeys: nonAdditionalPropertyKeys)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesNumber.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesNumber.swift
index fd6a6a52d06..06987825557 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesNumber.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesNumber.swift
@@ -58,3 +58,4 @@ public struct AdditionalPropertiesNumber: Codable, Hashable {
additionalProperties = try additionalPropertiesContainer.decodeMap(Double.self, excludedKeys: nonAdditionalPropertyKeys)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesObject.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesObject.swift
index 675a07ca0c1..848a0983a3f 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesObject.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesObject.swift
@@ -58,3 +58,4 @@ public struct AdditionalPropertiesObject: Codable, Hashable {
additionalProperties = try additionalPropertiesContainer.decodeMap([String: AnyCodable].self, excludedKeys: nonAdditionalPropertyKeys)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesString.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesString.swift
index df5aa8b6953..7b5bd40f70f 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesString.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesString.swift
@@ -58,3 +58,4 @@ public struct AdditionalPropertiesString: Codable, Hashable {
additionalProperties = try additionalPropertiesContainer.decodeMap(String.self, excludedKeys: nonAdditionalPropertyKeys)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift
index 157cca1d227..cdd4f5335b9 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift
@@ -33,3 +33,4 @@ public struct Animal: Codable, Hashable {
try container.encodeIfPresent(color, forKey: .color)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift
index 8607cbef1a3..c365505ab9d 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift
@@ -37,3 +37,4 @@ public struct ApiResponse: Codable, Hashable {
try container.encodeIfPresent(message, forKey: .message)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift
index f3f161b44c1..226f7456181 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift
@@ -29,3 +29,4 @@ public struct ArrayOfArrayOfNumberOnly: Codable, Hashable {
try container.encodeIfPresent(arrayArrayNumber, forKey: .arrayArrayNumber)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift
index d62de957472..39831127871 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift
@@ -29,3 +29,4 @@ public struct ArrayOfNumberOnly: Codable, Hashable {
try container.encodeIfPresent(arrayNumber, forKey: .arrayNumber)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift
index 360d50d027f..8865d76bef2 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift
@@ -37,3 +37,4 @@ public struct ArrayTest: Codable, Hashable {
try container.encodeIfPresent(arrayArrayOfModel, forKey: .arrayArrayOfModel)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/BigCat.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/BigCat.swift
index 3284de5040e..4ca3454f9bd 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/BigCat.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/BigCat.swift
@@ -35,3 +35,4 @@ public struct BigCat: Codable, Hashable {
try container.encodeIfPresent(kind, forKey: .kind)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/BigCatAllOf.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/BigCatAllOf.swift
index 7d2d2489849..8c6a92c8b48 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/BigCatAllOf.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/BigCatAllOf.swift
@@ -35,3 +35,4 @@ public struct BigCatAllOf: Codable, Hashable {
try container.encodeIfPresent(kind, forKey: .kind)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift
index f0781a9cb73..71cd93bce5f 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift
@@ -50,3 +50,4 @@ public struct Capitalization: Codable, Hashable {
try container.encodeIfPresent(ATT_NAME, forKey: .ATT_NAME)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift
index d5519760387..457e04bd475 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift
@@ -37,3 +37,4 @@ public struct Cat: Codable, Hashable {
try container.encodeIfPresent(declawed, forKey: .declawed)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift
index 8312680deb3..8caebb1c206 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift
@@ -29,3 +29,4 @@ public struct CatAllOf: Codable, Hashable {
try container.encodeIfPresent(declawed, forKey: .declawed)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Category.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Category.swift
index 24dd89221d0..e880b792bbe 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Category.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Category.swift
@@ -33,3 +33,4 @@ public struct Category: Codable, Hashable {
try container.encode(name, forKey: .name)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift
index 03bf63e4cad..16e69e560bd 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift
@@ -30,3 +30,4 @@ public struct ClassModel: Codable, Hashable {
try container.encodeIfPresent(_class, forKey: ._class)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Client.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Client.swift
index 59604878043..60dbc5dc5c1 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Client.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Client.swift
@@ -29,3 +29,4 @@ public struct Client: Codable, Hashable {
try container.encodeIfPresent(client, forKey: .client)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift
index 4ada3ceb605..658732a7f36 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift
@@ -37,3 +37,4 @@ public struct Dog: Codable, Hashable {
try container.encodeIfPresent(breed, forKey: .breed)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift
index f6c3d287301..82b0dedf35b 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift
@@ -29,3 +29,4 @@ public struct DogAllOf: Codable, Hashable {
try container.encodeIfPresent(breed, forKey: .breed)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift
index 0e0aad42abe..1d8ce99539c 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift
@@ -41,3 +41,4 @@ public struct EnumArrays: Codable, Hashable {
try container.encodeIfPresent(arrayEnum, forKey: .arrayEnum)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift
index 9e44926be9b..8c8bca49774 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift
@@ -63,3 +63,4 @@ public struct EnumTest: Codable, Hashable {
try container.encodeIfPresent(outerEnum, forKey: .outerEnum)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/File.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/File.swift
index 11694b2ca59..05dd5b1a825 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/File.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/File.swift
@@ -31,3 +31,4 @@ public struct File: Codable, Hashable {
try container.encodeIfPresent(sourceURI, forKey: .sourceURI)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift
index 6aa85d8eecf..3ca66a31359 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift
@@ -33,3 +33,4 @@ public struct FileSchemaTestClass: Codable, Hashable {
try container.encodeIfPresent(files, forKey: .files)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift
index 60eafb2febe..5dccf04e1e1 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift
@@ -81,3 +81,4 @@ public struct FormatTest: Codable, Hashable {
try container.encodeIfPresent(bigDecimal, forKey: .bigDecimal)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift
index cb1a7456a7d..54ed8a723c6 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift
@@ -33,3 +33,4 @@ public struct HasOnlyReadOnly: Codable, Hashable {
try container.encodeIfPresent(foo, forKey: .foo)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/List.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/List.swift
index 8ecdd3b0233..67e3048469f 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/List.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/List.swift
@@ -29,3 +29,4 @@ public struct List: Codable, Hashable {
try container.encodeIfPresent(_123list, forKey: ._123list)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift
index 0ff74ed8400..1e728fcdf58 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift
@@ -45,3 +45,4 @@ public struct MapTest: Codable, Hashable {
try container.encodeIfPresent(indirectMap, forKey: .indirectMap)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
index 58a0a54ca09..c79ca459217 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
@@ -37,3 +37,4 @@ public struct MixedPropertiesAndAdditionalPropertiesClass: Codable, Hashable {
try container.encodeIfPresent(map, forKey: .map)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift
index 0f59769954f..23402143f71 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift
@@ -34,3 +34,4 @@ public struct Model200Response: Codable, Hashable {
try container.encodeIfPresent(_class, forKey: ._class)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Name.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Name.swift
index d88c94f05c9..a28f46a33ce 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Name.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Name.swift
@@ -42,3 +42,4 @@ public struct Name: Codable, Hashable {
try container.encodeIfPresent(_123number, forKey: ._123number)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift
index 0f05482b9b7..87ceb64bb97 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift
@@ -29,3 +29,4 @@ public struct NumberOnly: Codable, Hashable {
try container.encodeIfPresent(justNumber, forKey: .justNumber)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Order.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Order.swift
index 100d6b71fed..e2eeced4c57 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Order.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Order.swift
@@ -55,3 +55,4 @@ public struct Order: Codable, Hashable {
try container.encodeIfPresent(complete, forKey: .complete)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift
index 15a4e4a15b6..edeaccaeaa6 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift
@@ -37,3 +37,4 @@ public struct OuterComposite: Codable, Hashable {
try container.encodeIfPresent(myBoolean, forKey: .myBoolean)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift
index 63b32ba8f11..f3a1bc92289 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift
@@ -55,3 +55,4 @@ public struct Pet: Codable, Hashable {
try container.encodeIfPresent(status, forKey: .status)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift
index 6426deedf63..57ba3f577c8 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift
@@ -33,3 +33,4 @@ public struct ReadOnlyFirst: Codable, Hashable {
try container.encodeIfPresent(baz, forKey: .baz)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Return.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Return.swift
index 777c241bc0c..afc2b51f8f3 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Return.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Return.swift
@@ -30,3 +30,4 @@ public struct Return: Codable, Hashable {
try container.encodeIfPresent(_return, forKey: ._return)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift
index b677523a749..bfe9723f888 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift
@@ -29,3 +29,4 @@ public struct SpecialModelName: Codable, Hashable {
try container.encodeIfPresent(specialPropertyName, forKey: .specialPropertyName)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift
index f575c9df65c..126c35c85a6 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift
@@ -49,3 +49,4 @@ public struct StringBooleanMap: Codable, Hashable {
additionalProperties = try additionalPropertiesContainer.decodeMap(Bool.self, excludedKeys: nonAdditionalPropertyKeys)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift
index cd5acc827db..07b826264f3 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift
@@ -33,3 +33,4 @@ public struct Tag: Codable, Hashable {
try container.encodeIfPresent(name, forKey: .name)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift
index 341c9b4b8c2..e58eecd960f 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift
@@ -45,3 +45,4 @@ public struct TypeHolderDefault: Codable, Hashable {
try container.encode(arrayItem, forKey: .arrayItem)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift
index 7a0b4dda2a5..23343c3c393 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift
@@ -49,3 +49,4 @@ public struct TypeHolderExample: Codable, Hashable {
try container.encode(arrayItem, forKey: .arrayItem)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/User.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/User.swift
index 9f3ded8fcd9..7afe359ae40 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/User.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/User.swift
@@ -58,3 +58,4 @@ public struct User: Codable, Hashable {
try container.encodeIfPresent(userStatus, forKey: .userStatus)
}
}
+
diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/XmlItem.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/XmlItem.swift
index 997e2eebce5..ae43cd28692 100644
--- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/XmlItem.swift
+++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/XmlItem.swift
@@ -141,3 +141,4 @@ public struct XmlItem: Codable, Hashable {
try container.encodeIfPresent(prefixNsWrappedArray, forKey: .prefixNsWrappedArray)
}
}
+
diff --git a/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/APIs.swift b/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/APIs.swift
index 850c8fc4383..bbc07371c77 100644
--- a/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/APIs.swift
+++ b/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/APIs.swift
@@ -11,8 +11,8 @@ public typealias PetstoreClientAPI = PetstoreClient
open class PetstoreClient {
public static var basePath = "http://petstore.swagger.io/v2"
- public static var credential: URLCredential?
public static var customHeaders: [String: String] = [:]
+ public static var credential: URLCredential?
public static var requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory()
public static var apiResponseQueue: DispatchQueue = .main
}
diff --git a/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift b/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift
index bf00a6fa741..190716faed6 100644
--- a/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift
+++ b/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class PetAPI {
+
/**
Add a new pet to the store
@@ -421,5 +425,4 @@ open class PetAPI {
return requestBuilder.init(method: "POST", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift b/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift
index 9d68c2def6e..c25565f0cf8 100644
--- a/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift
+++ b/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class StoreAPI {
+
/**
Delete purchase order by ID
@@ -185,5 +189,4 @@ open class StoreAPI {
return requestBuilder.init(method: "POST", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift b/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift
index 106277bbe05..33ee8164a3e 100644
--- a/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift
+++ b/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class UserAPI {
+
/**
Create user
@@ -380,5 +384,4 @@ open class UserAPI {
return requestBuilder.init(method: "PUT", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/Configuration.swift b/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/Configuration.swift
index 18edabbed78..8fb05331889 100644
--- a/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/Configuration.swift
+++ b/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/Configuration.swift
@@ -7,6 +7,7 @@
import Foundation
open class Configuration {
+
// This value is used to configure the date formatter that is used to serialize dates into JSON format.
// You must set it prior to encoding any dates, and it will only be read once.
@available(*, unavailable, message: "To set a different date format, use CodableHelper.dateFormatter instead.")
diff --git a/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift b/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift
index 619a45e20bb..ff77211ec29 100644
--- a/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift
+++ b/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift
@@ -38,3 +38,4 @@ public struct ApiResponse: Codable, Hashable {
try container.encodeIfPresent(message, forKey: .message)
}
}
+
diff --git a/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/Models/Category.swift b/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/Models/Category.swift
index 26ba10c456e..0036cc7a857 100644
--- a/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/Models/Category.swift
+++ b/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/Models/Category.swift
@@ -34,3 +34,4 @@ public struct Category: Codable, Hashable {
try container.encodeIfPresent(name, forKey: .name)
}
}
+
diff --git a/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/Models/Order.swift b/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/Models/Order.swift
index 81d122defdf..ccd3bea0249 100644
--- a/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/Models/Order.swift
+++ b/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/Models/Order.swift
@@ -57,3 +57,4 @@ public struct Order: Codable, Hashable {
try container.encodeIfPresent(complete, forKey: .complete)
}
}
+
diff --git a/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift b/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift
index 475b1d7e546..047967197a7 100644
--- a/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift
+++ b/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift
@@ -57,3 +57,4 @@ public struct Pet: Codable, Hashable {
try container.encodeIfPresent(status, forKey: .status)
}
}
+
diff --git a/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift b/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift
index 6f008baf726..555a33e6a18 100644
--- a/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift
+++ b/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift
@@ -34,3 +34,4 @@ public struct Tag: Codable, Hashable {
try container.encodeIfPresent(name, forKey: .name)
}
}
+
diff --git a/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/Models/User.swift b/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/Models/User.swift
index f46bd774131..4d8eeffdbf8 100644
--- a/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/Models/User.swift
+++ b/samples/client/petstore/swift5/deprecated/PetstoreClient/Classes/OpenAPIs/Models/User.swift
@@ -59,3 +59,4 @@ public struct User: Codable, Hashable {
try container.encodeIfPresent(userStatus, forKey: .userStatus)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/APIs.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/APIs.swift
index e98c4bb0fbe..a4d2c1877f1 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/APIs.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/APIs.swift
@@ -11,8 +11,8 @@ internal typealias PetstoreClientAPI = PetstoreClient
internal class PetstoreClient {
internal static var basePath = "http://petstore.swagger.io:80/v2"
- internal static var credential: URLCredential?
internal static var customHeaders: [String: String] = [:]
+ internal static var credential: URLCredential?
internal static var requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory()
internal static var apiResponseQueue: DispatchQueue = .main
}
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift
index 3962e550ac4..8a124ebde97 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
internal class AnotherFakeAPI {
+
/**
To test special tags
@@ -50,5 +54,4 @@ internal class AnotherFakeAPI {
return requestBuilder.init(method: "PATCH", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift
index b38a586bd0f..61e43e6ec10 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
internal class FakeAPI {
+
/**
- parameter body: (body) Input boolean as post body (optional)
@@ -680,5 +684,4 @@ internal class FakeAPI {
return requestBuilder.init(method: "GET", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift
index f746118089c..2a7bc6d2ef8 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
internal class FakeClassnameTags123API {
+
/**
To test class name in snake case
@@ -53,5 +57,4 @@ internal class FakeClassnameTags123API {
return requestBuilder.init(method: "PATCH", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift
index 67a5a95b72b..9828ee518ff 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
internal class PetAPI {
+
/**
Add a new pet to the store
@@ -479,5 +483,4 @@ internal class PetAPI {
return requestBuilder.init(method: "POST", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift
index 4b57f341494..ab762a4f84c 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
internal class StoreAPI {
+
/**
Delete purchase order by ID
@@ -185,5 +189,4 @@ internal class StoreAPI {
return requestBuilder.init(method: "POST", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift
index 01b5c8c0792..a1ac6beeb22 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
internal class UserAPI {
+
/**
Create user
@@ -362,5 +366,4 @@ internal class UserAPI {
return requestBuilder.init(method: "PUT", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Configuration.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Configuration.swift
index 3b39a978be4..5be96e4e203 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Configuration.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Configuration.swift
@@ -7,6 +7,7 @@
import Foundation
internal class Configuration {
+
// This value is used to configure the date formatter that is used to serialize dates into JSON format.
// You must set it prior to encoding any dates, and it will only be read once.
@available(*, unavailable, message: "To set a different date format, use CodableHelper.dateFormatter instead.")
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift
index 048d2223b46..731b7b76eb6 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift
@@ -33,3 +33,4 @@ internal struct AdditionalPropertiesClass: Codable, Hashable {
try container.encodeIfPresent(mapMapString, forKey: .mapMapString)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift
index cf3022b7a59..b160f8c835d 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift
@@ -33,3 +33,4 @@ internal struct Animal: Codable, Hashable {
try container.encodeIfPresent(color, forKey: .color)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift
index 3bba5d0f051..c62ce400c81 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift
@@ -37,3 +37,4 @@ internal struct ApiResponse: Codable, Hashable {
try container.encodeIfPresent(message, forKey: .message)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift
index 6600b567f54..2fa5da894c4 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift
@@ -29,3 +29,4 @@ internal struct ArrayOfArrayOfNumberOnly: Codable, Hashable {
try container.encodeIfPresent(arrayArrayNumber, forKey: .arrayArrayNumber)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift
index b9bb366249b..4ad2ff35d21 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift
@@ -29,3 +29,4 @@ internal struct ArrayOfNumberOnly: Codable, Hashable {
try container.encodeIfPresent(arrayNumber, forKey: .arrayNumber)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift
index 5aab5e0237f..e3464b693ec 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift
@@ -37,3 +37,4 @@ internal struct ArrayTest: Codable, Hashable {
try container.encodeIfPresent(arrayArrayOfModel, forKey: .arrayArrayOfModel)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift
index cc75d775764..042f77b8ab8 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift
@@ -50,3 +50,4 @@ internal struct Capitalization: Codable, Hashable {
try container.encodeIfPresent(ATT_NAME, forKey: .ATT_NAME)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift
index e1d59e33c66..4828c445c1b 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift
@@ -37,3 +37,4 @@ internal struct Cat: Codable, Hashable {
try container.encodeIfPresent(declawed, forKey: .declawed)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift
index 8a3358a747a..343d71d6873 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift
@@ -29,3 +29,4 @@ internal struct CatAllOf: Codable, Hashable {
try container.encodeIfPresent(declawed, forKey: .declawed)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Category.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Category.swift
index cdd51a8ffba..df67d9bd6f1 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Category.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Category.swift
@@ -33,3 +33,4 @@ internal struct Category: Codable, Hashable {
try container.encode(name, forKey: .name)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift
index c5561f409fc..d679cfe582a 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift
@@ -30,3 +30,4 @@ internal struct ClassModel: Codable, Hashable {
try container.encodeIfPresent(_class, forKey: ._class)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Client.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Client.swift
index a5640b27b26..2e50c580b65 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Client.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Client.swift
@@ -29,3 +29,4 @@ internal struct Client: Codable, Hashable {
try container.encodeIfPresent(client, forKey: .client)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift
index fcf4077c0b1..cdf48f3a786 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift
@@ -37,3 +37,4 @@ internal struct Dog: Codable, Hashable {
try container.encodeIfPresent(breed, forKey: .breed)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift
index f5cb2649406..f2e801a399e 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift
@@ -29,3 +29,4 @@ internal struct DogAllOf: Codable, Hashable {
try container.encodeIfPresent(breed, forKey: .breed)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift
index 502b7f16fd2..950a66d752a 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift
@@ -41,3 +41,4 @@ internal struct EnumArrays: Codable, Hashable {
try container.encodeIfPresent(arrayEnum, forKey: .arrayEnum)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift
index 6ab42303c45..77419816570 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift
@@ -63,3 +63,4 @@ internal struct EnumTest: Codable, Hashable {
try container.encodeIfPresent(outerEnum, forKey: .outerEnum)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/File.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/File.swift
index c4843091f8d..14b22772e3f 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/File.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/File.swift
@@ -31,3 +31,4 @@ internal struct File: Codable, Hashable {
try container.encodeIfPresent(sourceURI, forKey: .sourceURI)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift
index 52bea1373b0..e0f8e9990a5 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift
@@ -33,3 +33,4 @@ internal struct FileSchemaTestClass: Codable, Hashable {
try container.encodeIfPresent(files, forKey: .files)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift
index c1eff9ffd18..6f8b00eddf8 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift
@@ -77,3 +77,4 @@ internal struct FormatTest: Codable, Hashable {
try container.encode(password, forKey: .password)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift
index df1e18887c5..0ddedc17958 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift
@@ -33,3 +33,4 @@ internal struct HasOnlyReadOnly: Codable, Hashable {
try container.encodeIfPresent(foo, forKey: .foo)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/List.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/List.swift
index 10956a8bf61..0e7903fd06a 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/List.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/List.swift
@@ -29,3 +29,4 @@ internal struct List: Codable, Hashable {
try container.encodeIfPresent(_123list, forKey: ._123list)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift
index cee2c1dc24f..748bc6781a5 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift
@@ -45,3 +45,4 @@ internal struct MapTest: Codable, Hashable {
try container.encodeIfPresent(indirectMap, forKey: .indirectMap)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
index ef916b0d877..68ef87daf00 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
@@ -37,3 +37,4 @@ internal struct MixedPropertiesAndAdditionalPropertiesClass: Codable, Hashable {
try container.encodeIfPresent(map, forKey: .map)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift
index 6a6ff7664b9..dad6079ddb2 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift
@@ -34,3 +34,4 @@ internal struct Model200Response: Codable, Hashable {
try container.encodeIfPresent(_class, forKey: ._class)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Name.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Name.swift
index 5e4345bb54a..2a842bf54aa 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Name.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Name.swift
@@ -42,3 +42,4 @@ internal struct Name: Codable, Hashable {
try container.encodeIfPresent(_123number, forKey: ._123number)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift
index 0a36afc7855..36cf8d164bd 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift
@@ -29,3 +29,4 @@ internal struct NumberOnly: Codable, Hashable {
try container.encodeIfPresent(justNumber, forKey: .justNumber)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Order.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Order.swift
index bb0eb5c601f..45046f9a00f 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Order.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Order.swift
@@ -55,3 +55,4 @@ internal struct Order: Codable, Hashable {
try container.encodeIfPresent(complete, forKey: .complete)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift
index 3b41213b30f..082cdebd26c 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift
@@ -37,3 +37,4 @@ internal struct OuterComposite: Codable, Hashable {
try container.encodeIfPresent(myBoolean, forKey: .myBoolean)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift
index 833730ac896..8c77a382e8f 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift
@@ -55,3 +55,4 @@ internal struct Pet: Codable, Hashable {
try container.encodeIfPresent(status, forKey: .status)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift
index d0a73f836f7..e8961d9d8a8 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift
@@ -33,3 +33,4 @@ internal struct ReadOnlyFirst: Codable, Hashable {
try container.encodeIfPresent(baz, forKey: .baz)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Return.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Return.swift
index 9b2e502be39..7a2e2da47f8 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Return.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Return.swift
@@ -30,3 +30,4 @@ internal struct Return: Codable, Hashable {
try container.encodeIfPresent(_return, forKey: ._return)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift
index f77f26ce88c..2c3d25c5bbb 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift
@@ -29,3 +29,4 @@ internal struct SpecialModelName: Codable, Hashable {
try container.encodeIfPresent(specialPropertyName, forKey: .specialPropertyName)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift
index a0f5dc1082e..4b76e50cece 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift
@@ -49,3 +49,4 @@ internal struct StringBooleanMap: Codable, Hashable {
additionalProperties = try additionalPropertiesContainer.decodeMap(Bool.self, excludedKeys: nonAdditionalPropertyKeys)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift
index 866911641d0..810603ff0b5 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift
@@ -33,3 +33,4 @@ internal struct Tag: Codable, Hashable {
try container.encodeIfPresent(name, forKey: .name)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift
index 3b3d4c7387a..4a71a601e1b 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift
@@ -45,3 +45,4 @@ internal struct TypeHolderDefault: Codable, Hashable {
try container.encode(arrayItem, forKey: .arrayItem)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift
index 2ca47db911d..71cdf9ee1ea 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift
@@ -45,3 +45,4 @@ internal struct TypeHolderExample: Codable, Hashable {
try container.encode(arrayItem, forKey: .arrayItem)
}
}
+
diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/User.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/User.swift
index 4f1504516ba..57017c341e7 100644
--- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/User.swift
+++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/Models/User.swift
@@ -58,3 +58,4 @@ internal struct User: Codable, Hashable {
try container.encodeIfPresent(userStatus, forKey: .userStatus)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs.swift
index 01bc6ff0d8d..941c61b713a 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs.swift
@@ -11,8 +11,8 @@ public typealias PetstoreClientAPI = PetstoreClient
open class PetstoreClient {
public static var basePath = "http://petstore.swagger.io:80/v2"
- public static var credential: URLCredential?
public static var customHeaders: [String: String] = [:]
+ public static var credential: URLCredential?
public static var requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory()
public static var apiResponseQueue: DispatchQueue = .main
}
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift
index 440c9b339a7..932d46d6ace 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
@objc open class AnotherFakeAPI : NSObject {
+
/**
To test special tags
@@ -50,5 +54,4 @@ import Foundation
return requestBuilder.init(method: "PATCH", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift
index 4d94d2c6913..81f62a73feb 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
@objc open class FakeAPI : NSObject {
+
/**
- parameter body: (body) Input boolean as post body (optional)
@@ -680,5 +684,4 @@ import Foundation
return requestBuilder.init(method: "GET", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift
index 36099b5f1a3..7f3651400e4 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
@objc open class FakeClassnameTags123API : NSObject {
+
/**
To test class name in snake case
@@ -53,5 +57,4 @@ import Foundation
return requestBuilder.init(method: "PATCH", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift
index 1bdfc19cd71..8797c88211e 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
@objc open class PetAPI : NSObject {
+
/**
Add a new pet to the store
@@ -479,5 +483,4 @@ import Foundation
return requestBuilder.init(method: "POST", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift
index 4acac5ebd4f..30856f73a3d 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
@objc open class StoreAPI : NSObject {
+
/**
Delete purchase order by ID
@@ -185,5 +189,4 @@ import Foundation
return requestBuilder.init(method: "POST", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift
index fb331f2a38d..d66abcb14bf 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
@objc open class UserAPI : NSObject {
+
/**
Create user
@@ -362,5 +366,4 @@ import Foundation
return requestBuilder.init(method: "PUT", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Configuration.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Configuration.swift
index 18edabbed78..8fb05331889 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Configuration.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Configuration.swift
@@ -7,6 +7,7 @@
import Foundation
open class Configuration {
+
// This value is used to configure the date formatter that is used to serialize dates into JSON format.
// You must set it prior to encoding any dates, and it will only be read once.
@available(*, unavailable, message: "To set a different date format, use CodableHelper.dateFormatter instead.")
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift
index 3b250581cc1..1421cb642ee 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift
@@ -33,3 +33,4 @@ import AnyCodable
try container.encodeIfPresent(mapMapString, forKey: .mapMapString)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift
index c8bc6f8fd9b..d60621e7bf6 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift
@@ -33,3 +33,4 @@ import AnyCodable
try container.encodeIfPresent(color, forKey: .color)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift
index 9feb0336458..1b42b26535c 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift
@@ -42,3 +42,4 @@ import AnyCodable
try container.encodeIfPresent(message, forKey: .message)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift
index acab776dfa1..08aca8598d0 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift
@@ -29,3 +29,4 @@ import AnyCodable
try container.encodeIfPresent(arrayArrayNumber, forKey: .arrayArrayNumber)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift
index d44e23a7567..e8114a8f45e 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift
@@ -29,3 +29,4 @@ import AnyCodable
try container.encodeIfPresent(arrayNumber, forKey: .arrayNumber)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift
index 2ed77dba0af..be0dea61b91 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift
@@ -37,3 +37,4 @@ import AnyCodable
try container.encodeIfPresent(arrayArrayOfModel, forKey: .arrayArrayOfModel)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift
index c7c00b23f7c..6f137adc91f 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift
@@ -50,3 +50,4 @@ import AnyCodable
try container.encodeIfPresent(ATT_NAME, forKey: .ATT_NAME)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift
index 9f34145e79f..60eccac9412 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift
@@ -42,3 +42,4 @@ import AnyCodable
try container.encodeIfPresent(declawed, forKey: .declawed)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift
index 32fe1b1e59f..cce886558e8 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift
@@ -34,3 +34,4 @@ import AnyCodable
try container.encodeIfPresent(declawed, forKey: .declawed)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Category.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Category.swift
index fd5f886af43..c8e542ad6b5 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Category.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Category.swift
@@ -38,3 +38,4 @@ import AnyCodable
try container.encode(name, forKey: .name)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift
index 10b0983599d..6bc90a989bd 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift
@@ -30,3 +30,4 @@ import AnyCodable
try container.encodeIfPresent(_class, forKey: ._class)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Client.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Client.swift
index c6f66fc19cb..a3585de4f0d 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Client.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Client.swift
@@ -29,3 +29,4 @@ import AnyCodable
try container.encodeIfPresent(client, forKey: .client)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift
index baaa824e4e1..2b060c8ad38 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift
@@ -37,3 +37,4 @@ import AnyCodable
try container.encodeIfPresent(breed, forKey: .breed)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift
index 8e4ca318581..d92db038ca4 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift
@@ -29,3 +29,4 @@ import AnyCodable
try container.encodeIfPresent(breed, forKey: .breed)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift
index 317ec4f8628..1269cb72e27 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift
@@ -41,3 +41,4 @@ import AnyCodable
try container.encodeIfPresent(arrayEnum, forKey: .arrayEnum)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift
index 39f68239e4d..066d266386b 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift
@@ -63,3 +63,4 @@ import AnyCodable
try container.encodeIfPresent(outerEnum, forKey: .outerEnum)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/File.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/File.swift
index b1f58093b02..b175f6370d2 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/File.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/File.swift
@@ -31,3 +31,4 @@ import AnyCodable
try container.encodeIfPresent(sourceURI, forKey: .sourceURI)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift
index c766f63637d..24a6e66432b 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift
@@ -33,3 +33,4 @@ import AnyCodable
try container.encodeIfPresent(files, forKey: .files)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift
index 70920c84fa8..413656ff25e 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift
@@ -102,3 +102,4 @@ import AnyCodable
try container.encode(password, forKey: .password)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift
index f491a19800e..eac4a144616 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift
@@ -33,3 +33,4 @@ import AnyCodable
try container.encodeIfPresent(foo, forKey: .foo)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/List.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/List.swift
index baad1d10fe0..f48559c0c45 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/List.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/List.swift
@@ -29,3 +29,4 @@ import AnyCodable
try container.encodeIfPresent(_123list, forKey: ._123list)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift
index b095210c3f6..68a3e128cc2 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift
@@ -45,3 +45,4 @@ import AnyCodable
try container.encodeIfPresent(indirectMap, forKey: .indirectMap)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
index d3b66777924..1594ac4a26a 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
@@ -37,3 +37,4 @@ import AnyCodable
try container.encodeIfPresent(map, forKey: .map)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift
index 6abc550286b..dfae9880b13 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift
@@ -39,3 +39,4 @@ import AnyCodable
try container.encodeIfPresent(_class, forKey: ._class)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Name.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Name.swift
index 1544a22cda5..3b41f3cafd9 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Name.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Name.swift
@@ -52,3 +52,4 @@ import AnyCodable
try container.encodeIfPresent(_123number, forKey: ._123number)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift
index 9e5280165f9..b828f6d3b47 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift
@@ -29,3 +29,4 @@ import AnyCodable
try container.encodeIfPresent(justNumber, forKey: .justNumber)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Order.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Order.swift
index d04a6cdab99..27237e43da7 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Order.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Order.swift
@@ -75,3 +75,4 @@ import AnyCodable
try container.encodeIfPresent(complete, forKey: .complete)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift
index 6521635743e..bbc4536d428 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift
@@ -42,3 +42,4 @@ import AnyCodable
try container.encodeIfPresent(myBoolean, forKey: .myBoolean)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift
index 1339931a073..a59ef82eb80 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift
@@ -60,3 +60,4 @@ import AnyCodable
try container.encodeIfPresent(status, forKey: .status)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift
index 7d3b2e5c9b3..8aef5456332 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift
@@ -33,3 +33,4 @@ import AnyCodable
try container.encodeIfPresent(baz, forKey: .baz)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Return.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Return.swift
index aa7cae02016..f497fdc7e09 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Return.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Return.swift
@@ -35,3 +35,4 @@ import AnyCodable
try container.encodeIfPresent(_return, forKey: ._return)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift
index c2ba68d894c..8a5860ae0b9 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift
@@ -34,3 +34,4 @@ import AnyCodable
try container.encodeIfPresent(specialPropertyName, forKey: .specialPropertyName)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift
index 9ca13a19d8e..4708c93daa0 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift
@@ -49,3 +49,4 @@ import AnyCodable
additionalProperties = try additionalPropertiesContainer.decodeMap(Bool.self, excludedKeys: nonAdditionalPropertyKeys)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift
index de3f7c181c4..6150ef4895f 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift
@@ -38,3 +38,4 @@ import AnyCodable
try container.encodeIfPresent(name, forKey: .name)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift
index 4882236d3e1..27408db6f27 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift
@@ -45,3 +45,4 @@ import AnyCodable
try container.encode(arrayItem, forKey: .arrayItem)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift
index 17dfc262df3..61c7c8b4fb4 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift
@@ -45,3 +45,4 @@ import AnyCodable
try container.encode(arrayItem, forKey: .arrayItem)
}
}
+
diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/User.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/User.swift
index 8b9ef462778..3c71f76aab0 100644
--- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/User.swift
+++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/User.swift
@@ -68,3 +68,4 @@ import AnyCodable
try container.encodeIfPresent(userStatus, forKey: .userStatus)
}
}
+
diff --git a/samples/client/petstore/swift5/oneOf/Package.resolved b/samples/client/petstore/swift5/oneOf/Package.resolved
new file mode 100644
index 00000000000..d384b276b4b
--- /dev/null
+++ b/samples/client/petstore/swift5/oneOf/Package.resolved
@@ -0,0 +1,16 @@
+{
+ "object": {
+ "pins": [
+ {
+ "package": "AnyCodable",
+ "repositoryURL": "https://github.com/Flight-School/AnyCodable",
+ "state": {
+ "branch": null,
+ "revision": "876d162385e9862ae8b3c8d65dc301312b040005",
+ "version": "0.6.0"
+ }
+ }
+ ]
+ },
+ "version": 1
+}
diff --git a/samples/client/petstore/swift5/oneOf/PetstoreClient/Classes/OpenAPIs/APIs.swift b/samples/client/petstore/swift5/oneOf/PetstoreClient/Classes/OpenAPIs/APIs.swift
index 7935d8a9fa6..ed13fa3738a 100644
--- a/samples/client/petstore/swift5/oneOf/PetstoreClient/Classes/OpenAPIs/APIs.swift
+++ b/samples/client/petstore/swift5/oneOf/PetstoreClient/Classes/OpenAPIs/APIs.swift
@@ -11,8 +11,8 @@ public typealias PetstoreClientAPI = PetstoreClient
open class PetstoreClient {
public static var basePath = "http://localhost"
- public static var credential: URLCredential?
public static var customHeaders: [String: String] = [:]
+ public static var credential: URLCredential?
public static var requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory()
public static var apiResponseQueue: DispatchQueue = .main
}
diff --git a/samples/client/petstore/swift5/oneOf/PetstoreClient/Classes/OpenAPIs/APIs/DefaultAPI.swift b/samples/client/petstore/swift5/oneOf/PetstoreClient/Classes/OpenAPIs/APIs/DefaultAPI.swift
index 5e6a278c0d0..6d18703c99e 100644
--- a/samples/client/petstore/swift5/oneOf/PetstoreClient/Classes/OpenAPIs/APIs/DefaultAPI.swift
+++ b/samples/client/petstore/swift5/oneOf/PetstoreClient/Classes/OpenAPIs/APIs/DefaultAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class DefaultAPI {
+
/**
- parameter apiResponseQueue: The queue on which api response is dispatched.
@@ -45,5 +49,4 @@ open class DefaultAPI {
return requestBuilder.init(method: "GET", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/oneOf/PetstoreClient/Classes/OpenAPIs/Configuration.swift b/samples/client/petstore/swift5/oneOf/PetstoreClient/Classes/OpenAPIs/Configuration.swift
index 18edabbed78..8fb05331889 100644
--- a/samples/client/petstore/swift5/oneOf/PetstoreClient/Classes/OpenAPIs/Configuration.swift
+++ b/samples/client/petstore/swift5/oneOf/PetstoreClient/Classes/OpenAPIs/Configuration.swift
@@ -7,6 +7,7 @@
import Foundation
open class Configuration {
+
// This value is used to configure the date formatter that is used to serialize dates into JSON format.
// You must set it prior to encoding any dates, and it will only be read once.
@available(*, unavailable, message: "To set a different date format, use CodableHelper.dateFormatter instead.")
diff --git a/samples/client/petstore/swift5/oneOf/PetstoreClient/Classes/OpenAPIs/Models/Apple.swift b/samples/client/petstore/swift5/oneOf/PetstoreClient/Classes/OpenAPIs/Models/Apple.swift
index 17495d47fd3..ee0b5786ef1 100644
--- a/samples/client/petstore/swift5/oneOf/PetstoreClient/Classes/OpenAPIs/Models/Apple.swift
+++ b/samples/client/petstore/swift5/oneOf/PetstoreClient/Classes/OpenAPIs/Models/Apple.swift
@@ -29,3 +29,4 @@ public struct Apple: Codable, Hashable {
try container.encodeIfPresent(kind, forKey: .kind)
}
}
+
diff --git a/samples/client/petstore/swift5/oneOf/PetstoreClient/Classes/OpenAPIs/Models/Banana.swift b/samples/client/petstore/swift5/oneOf/PetstoreClient/Classes/OpenAPIs/Models/Banana.swift
index c0a23db0b1c..1ad6e976a7e 100644
--- a/samples/client/petstore/swift5/oneOf/PetstoreClient/Classes/OpenAPIs/Models/Banana.swift
+++ b/samples/client/petstore/swift5/oneOf/PetstoreClient/Classes/OpenAPIs/Models/Banana.swift
@@ -29,3 +29,4 @@ public struct Banana: Codable, Hashable {
try container.encodeIfPresent(count, forKey: .count)
}
}
+
diff --git a/samples/client/petstore/swift5/oneOf/pom.xml b/samples/client/petstore/swift5/oneOf/pom.xml
new file mode 100644
index 00000000000..c1b201eb3b4
--- /dev/null
+++ b/samples/client/petstore/swift5/oneOf/pom.xml
@@ -0,0 +1,43 @@
+
+ 4.0.0
+ io.swagger
+ Swift5PetstoreClientTests
+ pom
+ 1.0-SNAPSHOT
+ Swift5 Swagger Petstore Client
+
+
+
+ maven-dependency-plugin
+
+
+ package
+
+ copy-dependencies
+
+
+ ${project.build.directory}
+
+
+
+
+
+ org.codehaus.mojo
+ exec-maven-plugin
+ 1.2.1
+
+
+ xcodebuild-test
+ integration-test
+
+ exec
+
+
+ ./run_spmbuild.sh
+
+
+
+
+
+
+
diff --git a/samples/client/petstore/swift5/oneOf/run_spmbuild.sh b/samples/client/petstore/swift5/oneOf/run_spmbuild.sh
new file mode 100755
index 00000000000..1a9f585ad05
--- /dev/null
+++ b/samples/client/petstore/swift5/oneOf/run_spmbuild.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+swift build && exit ${PIPESTATUS[0]}
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs.swift
index 01bc6ff0d8d..941c61b713a 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs.swift
@@ -11,8 +11,8 @@ public typealias PetstoreClientAPI = PetstoreClient
open class PetstoreClient {
public static var basePath = "http://petstore.swagger.io:80/v2"
- public static var credential: URLCredential?
public static var customHeaders: [String: String] = [:]
+ public static var credential: URLCredential?
public static var requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory()
public static var apiResponseQueue: DispatchQueue = .main
}
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift
index 72ecfdc6f76..55126ff4f11 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift
@@ -7,8 +7,12 @@
import Foundation
import PromiseKit
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class AnotherFakeAPI {
+
/**
To test special tags
@@ -53,5 +57,4 @@ open class AnotherFakeAPI {
return requestBuilder.init(method: "PATCH", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift
index 89d44314c53..23e4ba9c8f5 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift
@@ -7,8 +7,12 @@
import Foundation
import PromiseKit
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class FakeAPI {
+
/**
- parameter body: (body) Input boolean as post body (optional)
@@ -705,5 +709,4 @@ open class FakeAPI {
return requestBuilder.init(method: "GET", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift
index 5cd88bffeae..52d394026e2 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift
@@ -7,8 +7,12 @@
import Foundation
import PromiseKit
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class FakeClassnameTags123API {
+
/**
To test class name in snake case
@@ -56,5 +60,4 @@ open class FakeClassnameTags123API {
return requestBuilder.init(method: "PATCH", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift
index 2ca6128ac8d..eabaa59872a 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift
@@ -7,8 +7,12 @@
import Foundation
import PromiseKit
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class PetAPI {
+
/**
Add a new pet to the store
@@ -498,5 +502,4 @@ open class PetAPI {
return requestBuilder.init(method: "POST", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift
index 2a877b9fb57..8376ab9883e 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift
@@ -7,8 +7,12 @@
import Foundation
import PromiseKit
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class StoreAPI {
+
/**
Delete purchase order by ID
@@ -194,5 +198,4 @@ open class StoreAPI {
return requestBuilder.init(method: "POST", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift
index 6b12f6a0b09..1d9a3e6a443 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift
@@ -7,8 +7,12 @@
import Foundation
import PromiseKit
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class UserAPI {
+
/**
Create user
@@ -379,5 +383,4 @@ open class UserAPI {
return requestBuilder.init(method: "PUT", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Configuration.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Configuration.swift
index 18edabbed78..8fb05331889 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Configuration.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Configuration.swift
@@ -7,6 +7,7 @@
import Foundation
open class Configuration {
+
// This value is used to configure the date formatter that is used to serialize dates into JSON format.
// You must set it prior to encoding any dates, and it will only be read once.
@available(*, unavailable, message: "To set a different date format, use CodableHelper.dateFormatter instead.")
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift
index 61a478de142..621afb93561 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift
@@ -33,3 +33,4 @@ public struct AdditionalPropertiesClass: Codable, Hashable {
try container.encodeIfPresent(mapMapString, forKey: .mapMapString)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift
index 157cca1d227..cdd4f5335b9 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift
@@ -33,3 +33,4 @@ public struct Animal: Codable, Hashable {
try container.encodeIfPresent(color, forKey: .color)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift
index 8607cbef1a3..c365505ab9d 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift
@@ -37,3 +37,4 @@ public struct ApiResponse: Codable, Hashable {
try container.encodeIfPresent(message, forKey: .message)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift
index f3f161b44c1..226f7456181 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift
@@ -29,3 +29,4 @@ public struct ArrayOfArrayOfNumberOnly: Codable, Hashable {
try container.encodeIfPresent(arrayArrayNumber, forKey: .arrayArrayNumber)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift
index d62de957472..39831127871 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift
@@ -29,3 +29,4 @@ public struct ArrayOfNumberOnly: Codable, Hashable {
try container.encodeIfPresent(arrayNumber, forKey: .arrayNumber)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift
index 360d50d027f..8865d76bef2 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift
@@ -37,3 +37,4 @@ public struct ArrayTest: Codable, Hashable {
try container.encodeIfPresent(arrayArrayOfModel, forKey: .arrayArrayOfModel)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift
index f0781a9cb73..71cd93bce5f 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift
@@ -50,3 +50,4 @@ public struct Capitalization: Codable, Hashable {
try container.encodeIfPresent(ATT_NAME, forKey: .ATT_NAME)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift
index d5519760387..457e04bd475 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift
@@ -37,3 +37,4 @@ public struct Cat: Codable, Hashable {
try container.encodeIfPresent(declawed, forKey: .declawed)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift
index 8312680deb3..8caebb1c206 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift
@@ -29,3 +29,4 @@ public struct CatAllOf: Codable, Hashable {
try container.encodeIfPresent(declawed, forKey: .declawed)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift
index 398da60aa73..89016ca353d 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift
@@ -33,3 +33,4 @@ public struct Category: Codable, Hashable {
try container.encode(name, forKey: .name)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift
index 03bf63e4cad..16e69e560bd 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift
@@ -30,3 +30,4 @@ public struct ClassModel: Codable, Hashable {
try container.encodeIfPresent(_class, forKey: ._class)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Client.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Client.swift
index 59604878043..60dbc5dc5c1 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Client.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Client.swift
@@ -29,3 +29,4 @@ public struct Client: Codable, Hashable {
try container.encodeIfPresent(client, forKey: .client)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift
index 4ada3ceb605..658732a7f36 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift
@@ -37,3 +37,4 @@ public struct Dog: Codable, Hashable {
try container.encodeIfPresent(breed, forKey: .breed)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift
index f6c3d287301..82b0dedf35b 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift
@@ -29,3 +29,4 @@ public struct DogAllOf: Codable, Hashable {
try container.encodeIfPresent(breed, forKey: .breed)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift
index 0e0aad42abe..1d8ce99539c 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift
@@ -41,3 +41,4 @@ public struct EnumArrays: Codable, Hashable {
try container.encodeIfPresent(arrayEnum, forKey: .arrayEnum)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift
index 9e44926be9b..8c8bca49774 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift
@@ -63,3 +63,4 @@ public struct EnumTest: Codable, Hashable {
try container.encodeIfPresent(outerEnum, forKey: .outerEnum)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/File.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/File.swift
index 11694b2ca59..05dd5b1a825 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/File.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/File.swift
@@ -31,3 +31,4 @@ public struct File: Codable, Hashable {
try container.encodeIfPresent(sourceURI, forKey: .sourceURI)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift
index 6aa85d8eecf..3ca66a31359 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift
@@ -33,3 +33,4 @@ public struct FileSchemaTestClass: Codable, Hashable {
try container.encodeIfPresent(files, forKey: .files)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift
index 114c884efc5..a7a4b39e720 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift
@@ -77,3 +77,4 @@ public struct FormatTest: Codable, Hashable {
try container.encode(password, forKey: .password)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift
index cb1a7456a7d..54ed8a723c6 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift
@@ -33,3 +33,4 @@ public struct HasOnlyReadOnly: Codable, Hashable {
try container.encodeIfPresent(foo, forKey: .foo)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/List.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/List.swift
index 8ecdd3b0233..67e3048469f 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/List.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/List.swift
@@ -29,3 +29,4 @@ public struct List: Codable, Hashable {
try container.encodeIfPresent(_123list, forKey: ._123list)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift
index 0ff74ed8400..1e728fcdf58 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift
@@ -45,3 +45,4 @@ public struct MapTest: Codable, Hashable {
try container.encodeIfPresent(indirectMap, forKey: .indirectMap)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
index 58a0a54ca09..c79ca459217 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
@@ -37,3 +37,4 @@ public struct MixedPropertiesAndAdditionalPropertiesClass: Codable, Hashable {
try container.encodeIfPresent(map, forKey: .map)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift
index 0f59769954f..23402143f71 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift
@@ -34,3 +34,4 @@ public struct Model200Response: Codable, Hashable {
try container.encodeIfPresent(_class, forKey: ._class)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Name.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Name.swift
index d88c94f05c9..a28f46a33ce 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Name.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Name.swift
@@ -42,3 +42,4 @@ public struct Name: Codable, Hashable {
try container.encodeIfPresent(_123number, forKey: ._123number)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift
index 0f05482b9b7..87ceb64bb97 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift
@@ -29,3 +29,4 @@ public struct NumberOnly: Codable, Hashable {
try container.encodeIfPresent(justNumber, forKey: .justNumber)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift
index 100d6b71fed..e2eeced4c57 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift
@@ -55,3 +55,4 @@ public struct Order: Codable, Hashable {
try container.encodeIfPresent(complete, forKey: .complete)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift
index 15a4e4a15b6..edeaccaeaa6 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift
@@ -37,3 +37,4 @@ public struct OuterComposite: Codable, Hashable {
try container.encodeIfPresent(myBoolean, forKey: .myBoolean)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift
index a87ab825ea0..ddd1186b891 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift
@@ -55,3 +55,4 @@ public struct Pet: Codable, Hashable {
try container.encodeIfPresent(status, forKey: .status)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift
index 6426deedf63..57ba3f577c8 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift
@@ -33,3 +33,4 @@ public struct ReadOnlyFirst: Codable, Hashable {
try container.encodeIfPresent(baz, forKey: .baz)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Return.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Return.swift
index 777c241bc0c..afc2b51f8f3 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Return.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Return.swift
@@ -30,3 +30,4 @@ public struct Return: Codable, Hashable {
try container.encodeIfPresent(_return, forKey: ._return)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift
index b677523a749..bfe9723f888 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift
@@ -29,3 +29,4 @@ public struct SpecialModelName: Codable, Hashable {
try container.encodeIfPresent(specialPropertyName, forKey: .specialPropertyName)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift
index f575c9df65c..126c35c85a6 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift
@@ -49,3 +49,4 @@ public struct StringBooleanMap: Codable, Hashable {
additionalProperties = try additionalPropertiesContainer.decodeMap(Bool.self, excludedKeys: nonAdditionalPropertyKeys)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift
index cd5acc827db..07b826264f3 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift
@@ -33,3 +33,4 @@ public struct Tag: Codable, Hashable {
try container.encodeIfPresent(name, forKey: .name)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift
index 341c9b4b8c2..e58eecd960f 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift
@@ -45,3 +45,4 @@ public struct TypeHolderDefault: Codable, Hashable {
try container.encode(arrayItem, forKey: .arrayItem)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift
index 04166af0895..6c22fdbae7a 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift
@@ -45,3 +45,4 @@ public struct TypeHolderExample: Codable, Hashable {
try container.encode(arrayItem, forKey: .arrayItem)
}
}
+
diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift
index 9f3ded8fcd9..7afe359ae40 100644
--- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift
+++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift
@@ -58,3 +58,4 @@ public struct User: Codable, Hashable {
try container.encodeIfPresent(userStatus, forKey: .userStatus)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/Package.resolved b/samples/client/petstore/swift5/readonlyProperties/Package.resolved
new file mode 100644
index 00000000000..d384b276b4b
--- /dev/null
+++ b/samples/client/petstore/swift5/readonlyProperties/Package.resolved
@@ -0,0 +1,16 @@
+{
+ "object": {
+ "pins": [
+ {
+ "package": "AnyCodable",
+ "repositoryURL": "https://github.com/Flight-School/AnyCodable",
+ "state": {
+ "branch": null,
+ "revision": "876d162385e9862ae8b3c8d65dc301312b040005",
+ "version": "0.6.0"
+ }
+ }
+ ]
+ },
+ "version": 1
+}
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/APIs.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/APIs.swift
index 01bc6ff0d8d..941c61b713a 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/APIs.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/APIs.swift
@@ -11,8 +11,8 @@ public typealias PetstoreClientAPI = PetstoreClient
open class PetstoreClient {
public static var basePath = "http://petstore.swagger.io:80/v2"
- public static var credential: URLCredential?
public static var customHeaders: [String: String] = [:]
+ public static var credential: URLCredential?
public static var requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory()
public static var apiResponseQueue: DispatchQueue = .main
}
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift
index 542fb6f69ba..7d09ab30c12 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class AnotherFakeAPI {
+
/**
To test special tags
@@ -50,5 +54,4 @@ open class AnotherFakeAPI {
return requestBuilder.init(method: "PATCH", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift
index 9b75edc92ee..5480213e38d 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class FakeAPI {
+
/**
- parameter body: (body) Input boolean as post body (optional)
@@ -680,5 +684,4 @@ open class FakeAPI {
return requestBuilder.init(method: "GET", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift
index fd7d845d340..9683e0ce5b1 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class FakeClassnameTags123API {
+
/**
To test class name in snake case
@@ -53,5 +57,4 @@ open class FakeClassnameTags123API {
return requestBuilder.init(method: "PATCH", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift
index d7d5bdfa2ea..8cbd15364b6 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class PetAPI {
+
/**
Add a new pet to the store
@@ -479,5 +483,4 @@ open class PetAPI {
return requestBuilder.init(method: "POST", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift
index c80d4286b53..a83e954ae6a 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class StoreAPI {
+
/**
Delete purchase order by ID
@@ -185,5 +189,4 @@ open class StoreAPI {
return requestBuilder.init(method: "POST", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift
index 542dc212bd1..dbff6ade41c 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class UserAPI {
+
/**
Create user
@@ -362,5 +366,4 @@ open class UserAPI {
return requestBuilder.init(method: "PUT", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Configuration.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Configuration.swift
index 18edabbed78..8fb05331889 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Configuration.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Configuration.swift
@@ -7,6 +7,7 @@
import Foundation
open class Configuration {
+
// This value is used to configure the date formatter that is used to serialize dates into JSON format.
// You must set it prior to encoding any dates, and it will only be read once.
@available(*, unavailable, message: "To set a different date format, use CodableHelper.dateFormatter instead.")
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift
index 55e1a850f06..34f35d9b4c9 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift
@@ -33,3 +33,4 @@ public struct AdditionalPropertiesClass: Codable, Hashable {
try container.encodeIfPresent(mapMapString, forKey: .mapMapString)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift
index 3fded4244c3..14bb2bd2fe0 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift
@@ -33,3 +33,4 @@ public struct Animal: Codable, Hashable {
try container.encodeIfPresent(color, forKey: .color)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift
index 1522485099c..acaac402ef4 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift
@@ -37,3 +37,4 @@ public struct ApiResponse: Codable, Hashable {
try container.encodeIfPresent(message, forKey: .message)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift
index d754b57dd07..d8ef19116b8 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift
@@ -29,3 +29,4 @@ public struct ArrayOfArrayOfNumberOnly: Codable, Hashable {
try container.encodeIfPresent(arrayArrayNumber, forKey: .arrayArrayNumber)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift
index 261f521a2e3..949077533e9 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift
@@ -29,3 +29,4 @@ public struct ArrayOfNumberOnly: Codable, Hashable {
try container.encodeIfPresent(arrayNumber, forKey: .arrayNumber)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift
index e68cd879f6c..6135c1556a2 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift
@@ -37,3 +37,4 @@ public struct ArrayTest: Codable, Hashable {
try container.encodeIfPresent(arrayArrayOfModel, forKey: .arrayArrayOfModel)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift
index d449c5890d1..6353bd4d8a8 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift
@@ -50,3 +50,4 @@ public struct Capitalization: Codable, Hashable {
try container.encodeIfPresent(ATT_NAME, forKey: .ATT_NAME)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift
index 3ddf9bee2fd..834c51d9152 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift
@@ -37,3 +37,4 @@ public struct Cat: Codable, Hashable {
try container.encodeIfPresent(declawed, forKey: .declawed)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift
index 40685ac1a16..b227089dc4f 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift
@@ -29,3 +29,4 @@ public struct CatAllOf: Codable, Hashable {
try container.encodeIfPresent(declawed, forKey: .declawed)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Category.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Category.swift
index da9e51d2a51..1413c58141e 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Category.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Category.swift
@@ -33,3 +33,4 @@ public struct Category: Codable, Hashable {
try container.encode(name, forKey: .name)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift
index c6984e27050..73b8414f342 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift
@@ -30,3 +30,4 @@ public struct ClassModel: Codable, Hashable {
try container.encodeIfPresent(_class, forKey: ._class)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Client.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Client.swift
index a08ef9f5ba4..364b58f1c4e 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Client.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Client.swift
@@ -29,3 +29,4 @@ public struct Client: Codable, Hashable {
try container.encodeIfPresent(client, forKey: .client)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift
index efe8988d381..849fbfed745 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift
@@ -37,3 +37,4 @@ public struct Dog: Codable, Hashable {
try container.encodeIfPresent(breed, forKey: .breed)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift
index 1d1f8ca7db9..527edd845c4 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift
@@ -29,3 +29,4 @@ public struct DogAllOf: Codable, Hashable {
try container.encodeIfPresent(breed, forKey: .breed)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift
index d8e15faf3a3..1a79ffe95b1 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift
@@ -41,3 +41,4 @@ public struct EnumArrays: Codable, Hashable {
try container.encodeIfPresent(arrayEnum, forKey: .arrayEnum)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift
index ca412e06fe1..c097933904b 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift
@@ -63,3 +63,4 @@ public struct EnumTest: Codable, Hashable {
try container.encodeIfPresent(outerEnum, forKey: .outerEnum)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/File.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/File.swift
index 1c9a0f33ee8..c5ebbaf2f4f 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/File.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/File.swift
@@ -31,3 +31,4 @@ public struct File: Codable, Hashable {
try container.encodeIfPresent(sourceURI, forKey: .sourceURI)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift
index 50304fe594a..c04b1dccf76 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift
@@ -33,3 +33,4 @@ public struct FileSchemaTestClass: Codable, Hashable {
try container.encodeIfPresent(files, forKey: .files)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift
index bf2d4131948..65bb0ca0842 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift
@@ -77,3 +77,4 @@ public struct FormatTest: Codable, Hashable {
try container.encode(password, forKey: .password)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift
index ee6bd8280bd..e8216047d6e 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift
@@ -33,3 +33,4 @@ public struct HasOnlyReadOnly: Codable, Hashable {
try container.encodeIfPresent(foo, forKey: .foo)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/List.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/List.swift
index 41a0eacd2ac..1269b40251d 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/List.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/List.swift
@@ -29,3 +29,4 @@ public struct List: Codable, Hashable {
try container.encodeIfPresent(_123list, forKey: ._123list)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift
index 27e27b36d0f..19f258d2929 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift
@@ -45,3 +45,4 @@ public struct MapTest: Codable, Hashable {
try container.encodeIfPresent(indirectMap, forKey: .indirectMap)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
index 306c8adeaa3..2dd49ab0212 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
@@ -37,3 +37,4 @@ public struct MixedPropertiesAndAdditionalPropertiesClass: Codable, Hashable {
try container.encodeIfPresent(map, forKey: .map)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift
index 233fa7656ab..9080e5c382f 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift
@@ -34,3 +34,4 @@ public struct Model200Response: Codable, Hashable {
try container.encodeIfPresent(_class, forKey: ._class)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Name.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Name.swift
index c1fda99c0c7..0280404c044 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Name.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Name.swift
@@ -42,3 +42,4 @@ public struct Name: Codable, Hashable {
try container.encodeIfPresent(_123number, forKey: ._123number)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift
index 5526fc2fbf2..36be35a0533 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift
@@ -29,3 +29,4 @@ public struct NumberOnly: Codable, Hashable {
try container.encodeIfPresent(justNumber, forKey: .justNumber)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Order.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Order.swift
index c79bc3f02d3..bda67408a9d 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Order.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Order.swift
@@ -55,3 +55,4 @@ public struct Order: Codable, Hashable {
try container.encodeIfPresent(complete, forKey: .complete)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift
index c69f16e2a88..d8e7469f99a 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift
@@ -37,3 +37,4 @@ public struct OuterComposite: Codable, Hashable {
try container.encodeIfPresent(myBoolean, forKey: .myBoolean)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift
index 46f5919b6b7..f4f7928e77e 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift
@@ -55,3 +55,4 @@ public struct Pet: Codable, Hashable {
try container.encodeIfPresent(status, forKey: .status)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift
index 249d7691c21..6b80302150a 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift
@@ -33,3 +33,4 @@ public struct ReadOnlyFirst: Codable, Hashable {
try container.encodeIfPresent(baz, forKey: .baz)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Return.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Return.swift
index 23e8e52f6e5..ca4883d9251 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Return.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Return.swift
@@ -30,3 +30,4 @@ public struct Return: Codable, Hashable {
try container.encodeIfPresent(_return, forKey: ._return)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift
index 8a12be510ab..66b8f4d69ff 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift
@@ -29,3 +29,4 @@ public struct SpecialModelName: Codable, Hashable {
try container.encodeIfPresent(specialPropertyName, forKey: .specialPropertyName)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift
index 19103698f9a..11a5a854895 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift
@@ -49,3 +49,4 @@ public struct StringBooleanMap: Codable, Hashable {
additionalProperties = try additionalPropertiesContainer.decodeMap(Bool.self, excludedKeys: nonAdditionalPropertyKeys)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift
index e3d44bf635f..2af3e2f0698 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift
@@ -33,3 +33,4 @@ public struct Tag: Codable, Hashable {
try container.encodeIfPresent(name, forKey: .name)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift
index 575466ee7d5..125a63b0ed3 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift
@@ -45,3 +45,4 @@ public struct TypeHolderDefault: Codable, Hashable {
try container.encode(arrayItem, forKey: .arrayItem)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift
index ba22b15d848..3aa1851a585 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift
@@ -45,3 +45,4 @@ public struct TypeHolderExample: Codable, Hashable {
try container.encode(arrayItem, forKey: .arrayItem)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/User.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/User.swift
index 33cb2a06044..4af156b9bac 100644
--- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/User.swift
+++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/Models/User.swift
@@ -58,3 +58,4 @@ public struct User: Codable, Hashable {
try container.encodeIfPresent(userStatus, forKey: .userStatus)
}
}
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/pom.xml b/samples/client/petstore/swift5/readonlyProperties/pom.xml
new file mode 100644
index 00000000000..c1b201eb3b4
--- /dev/null
+++ b/samples/client/petstore/swift5/readonlyProperties/pom.xml
@@ -0,0 +1,43 @@
+
+ 4.0.0
+ io.swagger
+ Swift5PetstoreClientTests
+ pom
+ 1.0-SNAPSHOT
+ Swift5 Swagger Petstore Client
+
+
+
+ maven-dependency-plugin
+
+
+ package
+
+ copy-dependencies
+
+
+ ${project.build.directory}
+
+
+
+
+
+ org.codehaus.mojo
+ exec-maven-plugin
+ 1.2.1
+
+
+ xcodebuild-test
+ integration-test
+
+ exec
+
+
+ ./run_spmbuild.sh
+
+
+
+
+
+
+
diff --git a/samples/client/petstore/swift5/readonlyProperties/run_spmbuild.sh b/samples/client/petstore/swift5/readonlyProperties/run_spmbuild.sh
new file mode 100755
index 00000000000..1a9f585ad05
--- /dev/null
+++ b/samples/client/petstore/swift5/readonlyProperties/run_spmbuild.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+swift build && exit ${PIPESTATUS[0]}
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs.swift
index 01bc6ff0d8d..941c61b713a 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs.swift
@@ -11,8 +11,8 @@ public typealias PetstoreClientAPI = PetstoreClient
open class PetstoreClient {
public static var basePath = "http://petstore.swagger.io:80/v2"
- public static var credential: URLCredential?
public static var customHeaders: [String: String] = [:]
+ public static var credential: URLCredential?
public static var requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory()
public static var apiResponseQueue: DispatchQueue = .main
}
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift
index f2f733281fc..cae5f3f349a 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class AnotherFakeAPI {
+
/**
To test special tags
@@ -50,5 +54,4 @@ open class AnotherFakeAPI {
return requestBuilder.init(method: "PATCH", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift
index 180df7841ae..6a9229f32eb 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class FakeAPI {
+
/**
- parameter body: (body) Input boolean as post body (optional)
@@ -680,5 +684,4 @@ open class FakeAPI {
return requestBuilder.init(method: "GET", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift
index 161b2c3f758..2f693b327d4 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class FakeClassnameTags123API {
+
/**
To test class name in snake case
@@ -53,5 +57,4 @@ open class FakeClassnameTags123API {
return requestBuilder.init(method: "PATCH", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift
index 23e7fc21b70..6dafda832a6 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class PetAPI {
+
/**
Add a new pet to the store
@@ -479,5 +483,4 @@ open class PetAPI {
return requestBuilder.init(method: "POST", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift
index ccdb44bf803..273ca0423a6 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class StoreAPI {
+
/**
Delete purchase order by ID
@@ -185,5 +189,4 @@ open class StoreAPI {
return requestBuilder.init(method: "POST", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift
index ea100babfca..62c9dd6e3cb 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class UserAPI {
+
/**
Create user
@@ -362,5 +366,4 @@ open class UserAPI {
return requestBuilder.init(method: "PUT", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Configuration.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Configuration.swift
index 18edabbed78..8fb05331889 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Configuration.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Configuration.swift
@@ -7,6 +7,7 @@
import Foundation
open class Configuration {
+
// This value is used to configure the date formatter that is used to serialize dates into JSON format.
// You must set it prior to encoding any dates, and it will only be read once.
@available(*, unavailable, message: "To set a different date format, use CodableHelper.dateFormatter instead.")
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift
index 61a478de142..621afb93561 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift
@@ -33,3 +33,4 @@ public struct AdditionalPropertiesClass: Codable, Hashable {
try container.encodeIfPresent(mapMapString, forKey: .mapMapString)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift
index 157cca1d227..cdd4f5335b9 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift
@@ -33,3 +33,4 @@ public struct Animal: Codable, Hashable {
try container.encodeIfPresent(color, forKey: .color)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift
index 8607cbef1a3..c365505ab9d 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift
@@ -37,3 +37,4 @@ public struct ApiResponse: Codable, Hashable {
try container.encodeIfPresent(message, forKey: .message)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift
index f3f161b44c1..226f7456181 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift
@@ -29,3 +29,4 @@ public struct ArrayOfArrayOfNumberOnly: Codable, Hashable {
try container.encodeIfPresent(arrayArrayNumber, forKey: .arrayArrayNumber)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift
index d62de957472..39831127871 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift
@@ -29,3 +29,4 @@ public struct ArrayOfNumberOnly: Codable, Hashable {
try container.encodeIfPresent(arrayNumber, forKey: .arrayNumber)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift
index 360d50d027f..8865d76bef2 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift
@@ -37,3 +37,4 @@ public struct ArrayTest: Codable, Hashable {
try container.encodeIfPresent(arrayArrayOfModel, forKey: .arrayArrayOfModel)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift
index f0781a9cb73..71cd93bce5f 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift
@@ -50,3 +50,4 @@ public struct Capitalization: Codable, Hashable {
try container.encodeIfPresent(ATT_NAME, forKey: .ATT_NAME)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift
index d5519760387..457e04bd475 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift
@@ -37,3 +37,4 @@ public struct Cat: Codable, Hashable {
try container.encodeIfPresent(declawed, forKey: .declawed)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift
index 8312680deb3..8caebb1c206 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift
@@ -29,3 +29,4 @@ public struct CatAllOf: Codable, Hashable {
try container.encodeIfPresent(declawed, forKey: .declawed)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift
index 398da60aa73..89016ca353d 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift
@@ -33,3 +33,4 @@ public struct Category: Codable, Hashable {
try container.encode(name, forKey: .name)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift
index 03bf63e4cad..16e69e560bd 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift
@@ -30,3 +30,4 @@ public struct ClassModel: Codable, Hashable {
try container.encodeIfPresent(_class, forKey: ._class)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Client.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Client.swift
index 59604878043..60dbc5dc5c1 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Client.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Client.swift
@@ -29,3 +29,4 @@ public struct Client: Codable, Hashable {
try container.encodeIfPresent(client, forKey: .client)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift
index 4ada3ceb605..658732a7f36 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift
@@ -37,3 +37,4 @@ public struct Dog: Codable, Hashable {
try container.encodeIfPresent(breed, forKey: .breed)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift
index f6c3d287301..82b0dedf35b 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift
@@ -29,3 +29,4 @@ public struct DogAllOf: Codable, Hashable {
try container.encodeIfPresent(breed, forKey: .breed)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift
index 0e0aad42abe..1d8ce99539c 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift
@@ -41,3 +41,4 @@ public struct EnumArrays: Codable, Hashable {
try container.encodeIfPresent(arrayEnum, forKey: .arrayEnum)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift
index 9e44926be9b..8c8bca49774 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift
@@ -63,3 +63,4 @@ public struct EnumTest: Codable, Hashable {
try container.encodeIfPresent(outerEnum, forKey: .outerEnum)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/File.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/File.swift
index 11694b2ca59..05dd5b1a825 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/File.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/File.swift
@@ -31,3 +31,4 @@ public struct File: Codable, Hashable {
try container.encodeIfPresent(sourceURI, forKey: .sourceURI)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift
index 6aa85d8eecf..3ca66a31359 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift
@@ -33,3 +33,4 @@ public struct FileSchemaTestClass: Codable, Hashable {
try container.encodeIfPresent(files, forKey: .files)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift
index 114c884efc5..a7a4b39e720 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift
@@ -77,3 +77,4 @@ public struct FormatTest: Codable, Hashable {
try container.encode(password, forKey: .password)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift
index cb1a7456a7d..54ed8a723c6 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift
@@ -33,3 +33,4 @@ public struct HasOnlyReadOnly: Codable, Hashable {
try container.encodeIfPresent(foo, forKey: .foo)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/List.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/List.swift
index 8ecdd3b0233..67e3048469f 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/List.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/List.swift
@@ -29,3 +29,4 @@ public struct List: Codable, Hashable {
try container.encodeIfPresent(_123list, forKey: ._123list)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift
index 0ff74ed8400..1e728fcdf58 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift
@@ -45,3 +45,4 @@ public struct MapTest: Codable, Hashable {
try container.encodeIfPresent(indirectMap, forKey: .indirectMap)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
index 58a0a54ca09..c79ca459217 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
@@ -37,3 +37,4 @@ public struct MixedPropertiesAndAdditionalPropertiesClass: Codable, Hashable {
try container.encodeIfPresent(map, forKey: .map)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift
index 0f59769954f..23402143f71 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift
@@ -34,3 +34,4 @@ public struct Model200Response: Codable, Hashable {
try container.encodeIfPresent(_class, forKey: ._class)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Name.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Name.swift
index d88c94f05c9..a28f46a33ce 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Name.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Name.swift
@@ -42,3 +42,4 @@ public struct Name: Codable, Hashable {
try container.encodeIfPresent(_123number, forKey: ._123number)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift
index 0f05482b9b7..87ceb64bb97 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift
@@ -29,3 +29,4 @@ public struct NumberOnly: Codable, Hashable {
try container.encodeIfPresent(justNumber, forKey: .justNumber)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift
index 100d6b71fed..e2eeced4c57 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift
@@ -55,3 +55,4 @@ public struct Order: Codable, Hashable {
try container.encodeIfPresent(complete, forKey: .complete)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift
index 15a4e4a15b6..edeaccaeaa6 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift
@@ -37,3 +37,4 @@ public struct OuterComposite: Codable, Hashable {
try container.encodeIfPresent(myBoolean, forKey: .myBoolean)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift
index a87ab825ea0..ddd1186b891 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift
@@ -55,3 +55,4 @@ public struct Pet: Codable, Hashable {
try container.encodeIfPresent(status, forKey: .status)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift
index 6426deedf63..57ba3f577c8 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift
@@ -33,3 +33,4 @@ public struct ReadOnlyFirst: Codable, Hashable {
try container.encodeIfPresent(baz, forKey: .baz)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Return.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Return.swift
index 777c241bc0c..afc2b51f8f3 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Return.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Return.swift
@@ -30,3 +30,4 @@ public struct Return: Codable, Hashable {
try container.encodeIfPresent(_return, forKey: ._return)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift
index b677523a749..bfe9723f888 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift
@@ -29,3 +29,4 @@ public struct SpecialModelName: Codable, Hashable {
try container.encodeIfPresent(specialPropertyName, forKey: .specialPropertyName)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift
index f575c9df65c..126c35c85a6 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift
@@ -49,3 +49,4 @@ public struct StringBooleanMap: Codable, Hashable {
additionalProperties = try additionalPropertiesContainer.decodeMap(Bool.self, excludedKeys: nonAdditionalPropertyKeys)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift
index cd5acc827db..07b826264f3 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift
@@ -33,3 +33,4 @@ public struct Tag: Codable, Hashable {
try container.encodeIfPresent(name, forKey: .name)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift
index 341c9b4b8c2..e58eecd960f 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift
@@ -45,3 +45,4 @@ public struct TypeHolderDefault: Codable, Hashable {
try container.encode(arrayItem, forKey: .arrayItem)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift
index 04166af0895..6c22fdbae7a 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift
@@ -45,3 +45,4 @@ public struct TypeHolderExample: Codable, Hashable {
try container.encode(arrayItem, forKey: .arrayItem)
}
}
+
diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift
index 9f3ded8fcd9..7afe359ae40 100644
--- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift
+++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift
@@ -58,3 +58,4 @@ public struct User: Codable, Hashable {
try container.encodeIfPresent(userStatus, forKey: .userStatus)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs.swift
index 01bc6ff0d8d..941c61b713a 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs.swift
@@ -11,8 +11,8 @@ public typealias PetstoreClientAPI = PetstoreClient
open class PetstoreClient {
public static var basePath = "http://petstore.swagger.io:80/v2"
- public static var credential: URLCredential?
public static var customHeaders: [String: String] = [:]
+ public static var credential: URLCredential?
public static var requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory()
public static var apiResponseQueue: DispatchQueue = .main
}
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift
index d46906177c8..53feaab19c9 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift
@@ -7,8 +7,12 @@
import Foundation
import RxSwift
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class AnotherFakeAPI {
+
/**
To test special tags
@@ -55,5 +59,4 @@ open class AnotherFakeAPI {
return requestBuilder.init(method: "PATCH", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift
index abf1a1b7f5d..6e93b4da9c3 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift
@@ -7,8 +7,12 @@
import Foundation
import RxSwift
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class FakeAPI {
+
/**
- parameter body: (body) Input boolean as post body (optional)
@@ -729,5 +733,4 @@ open class FakeAPI {
return requestBuilder.init(method: "GET", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift
index 4e4de2bab77..698c1ea36e6 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift
@@ -7,8 +7,12 @@
import Foundation
import RxSwift
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class FakeClassnameTags123API {
+
/**
To test class name in snake case
@@ -58,5 +62,4 @@ open class FakeClassnameTags123API {
return requestBuilder.init(method: "PATCH", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift
index a51e91c1f0e..a94255d6337 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift
@@ -7,8 +7,12 @@
import Foundation
import RxSwift
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class PetAPI {
+
/**
Add a new pet to the store
@@ -516,5 +520,4 @@ open class PetAPI {
return requestBuilder.init(method: "POST", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift
index 9343800cddb..6a771cae237 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift
@@ -7,8 +7,12 @@
import Foundation
import RxSwift
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class StoreAPI {
+
/**
Delete purchase order by ID
@@ -202,5 +206,4 @@ open class StoreAPI {
return requestBuilder.init(method: "POST", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift
index 2e9dac80ae3..a268b55cc45 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift
@@ -7,8 +7,12 @@
import Foundation
import RxSwift
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class UserAPI {
+
/**
Create user
@@ -395,5 +399,4 @@ open class UserAPI {
return requestBuilder.init(method: "PUT", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Configuration.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Configuration.swift
index 18edabbed78..8fb05331889 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Configuration.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Configuration.swift
@@ -7,6 +7,7 @@
import Foundation
open class Configuration {
+
// This value is used to configure the date formatter that is used to serialize dates into JSON format.
// You must set it prior to encoding any dates, and it will only be read once.
@available(*, unavailable, message: "To set a different date format, use CodableHelper.dateFormatter instead.")
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift
index 61a478de142..621afb93561 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift
@@ -33,3 +33,4 @@ public struct AdditionalPropertiesClass: Codable, Hashable {
try container.encodeIfPresent(mapMapString, forKey: .mapMapString)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift
index 157cca1d227..cdd4f5335b9 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift
@@ -33,3 +33,4 @@ public struct Animal: Codable, Hashable {
try container.encodeIfPresent(color, forKey: .color)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift
index 8607cbef1a3..c365505ab9d 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift
@@ -37,3 +37,4 @@ public struct ApiResponse: Codable, Hashable {
try container.encodeIfPresent(message, forKey: .message)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift
index f3f161b44c1..226f7456181 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift
@@ -29,3 +29,4 @@ public struct ArrayOfArrayOfNumberOnly: Codable, Hashable {
try container.encodeIfPresent(arrayArrayNumber, forKey: .arrayArrayNumber)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift
index d62de957472..39831127871 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift
@@ -29,3 +29,4 @@ public struct ArrayOfNumberOnly: Codable, Hashable {
try container.encodeIfPresent(arrayNumber, forKey: .arrayNumber)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift
index 360d50d027f..8865d76bef2 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift
@@ -37,3 +37,4 @@ public struct ArrayTest: Codable, Hashable {
try container.encodeIfPresent(arrayArrayOfModel, forKey: .arrayArrayOfModel)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift
index f0781a9cb73..71cd93bce5f 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift
@@ -50,3 +50,4 @@ public struct Capitalization: Codable, Hashable {
try container.encodeIfPresent(ATT_NAME, forKey: .ATT_NAME)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift
index d5519760387..457e04bd475 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift
@@ -37,3 +37,4 @@ public struct Cat: Codable, Hashable {
try container.encodeIfPresent(declawed, forKey: .declawed)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift
index 8312680deb3..8caebb1c206 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift
@@ -29,3 +29,4 @@ public struct CatAllOf: Codable, Hashable {
try container.encodeIfPresent(declawed, forKey: .declawed)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift
index 398da60aa73..89016ca353d 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Category.swift
@@ -33,3 +33,4 @@ public struct Category: Codable, Hashable {
try container.encode(name, forKey: .name)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift
index 761eb4f866e..6a72957b687 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift
@@ -30,3 +30,4 @@ public struct ClassModel: Codable, Hashable {
try container.encodeIfPresent(`class`, forKey: .`class`)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Client.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Client.swift
index 59604878043..60dbc5dc5c1 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Client.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Client.swift
@@ -29,3 +29,4 @@ public struct Client: Codable, Hashable {
try container.encodeIfPresent(client, forKey: .client)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift
index 4ada3ceb605..658732a7f36 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift
@@ -37,3 +37,4 @@ public struct Dog: Codable, Hashable {
try container.encodeIfPresent(breed, forKey: .breed)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift
index f6c3d287301..82b0dedf35b 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift
@@ -29,3 +29,4 @@ public struct DogAllOf: Codable, Hashable {
try container.encodeIfPresent(breed, forKey: .breed)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift
index 0e0aad42abe..1d8ce99539c 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift
@@ -41,3 +41,4 @@ public struct EnumArrays: Codable, Hashable {
try container.encodeIfPresent(arrayEnum, forKey: .arrayEnum)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift
index 9e44926be9b..8c8bca49774 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift
@@ -63,3 +63,4 @@ public struct EnumTest: Codable, Hashable {
try container.encodeIfPresent(outerEnum, forKey: .outerEnum)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/File.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/File.swift
index 11694b2ca59..05dd5b1a825 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/File.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/File.swift
@@ -31,3 +31,4 @@ public struct File: Codable, Hashable {
try container.encodeIfPresent(sourceURI, forKey: .sourceURI)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift
index 6aa85d8eecf..3ca66a31359 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift
@@ -33,3 +33,4 @@ public struct FileSchemaTestClass: Codable, Hashable {
try container.encodeIfPresent(files, forKey: .files)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift
index 114c884efc5..a7a4b39e720 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift
@@ -77,3 +77,4 @@ public struct FormatTest: Codable, Hashable {
try container.encode(password, forKey: .password)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift
index cb1a7456a7d..54ed8a723c6 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift
@@ -33,3 +33,4 @@ public struct HasOnlyReadOnly: Codable, Hashable {
try container.encodeIfPresent(foo, forKey: .foo)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/List.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/List.swift
index 8ecdd3b0233..67e3048469f 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/List.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/List.swift
@@ -29,3 +29,4 @@ public struct List: Codable, Hashable {
try container.encodeIfPresent(_123list, forKey: ._123list)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift
index 0ff74ed8400..1e728fcdf58 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift
@@ -45,3 +45,4 @@ public struct MapTest: Codable, Hashable {
try container.encodeIfPresent(indirectMap, forKey: .indirectMap)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
index 58a0a54ca09..c79ca459217 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
@@ -37,3 +37,4 @@ public struct MixedPropertiesAndAdditionalPropertiesClass: Codable, Hashable {
try container.encodeIfPresent(map, forKey: .map)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift
index e5906f84436..7d15d45c21a 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift
@@ -34,3 +34,4 @@ public struct Model200Response: Codable, Hashable {
try container.encodeIfPresent(`class`, forKey: .`class`)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Name.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Name.swift
index d88c94f05c9..a28f46a33ce 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Name.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Name.swift
@@ -42,3 +42,4 @@ public struct Name: Codable, Hashable {
try container.encodeIfPresent(_123number, forKey: ._123number)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift
index 0f05482b9b7..87ceb64bb97 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift
@@ -29,3 +29,4 @@ public struct NumberOnly: Codable, Hashable {
try container.encodeIfPresent(justNumber, forKey: .justNumber)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift
index 100d6b71fed..e2eeced4c57 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift
@@ -55,3 +55,4 @@ public struct Order: Codable, Hashable {
try container.encodeIfPresent(complete, forKey: .complete)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift
index 15a4e4a15b6..edeaccaeaa6 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift
@@ -37,3 +37,4 @@ public struct OuterComposite: Codable, Hashable {
try container.encodeIfPresent(myBoolean, forKey: .myBoolean)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift
index a87ab825ea0..ddd1186b891 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift
@@ -55,3 +55,4 @@ public struct Pet: Codable, Hashable {
try container.encodeIfPresent(status, forKey: .status)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift
index 6426deedf63..57ba3f577c8 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift
@@ -33,3 +33,4 @@ public struct ReadOnlyFirst: Codable, Hashable {
try container.encodeIfPresent(baz, forKey: .baz)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Return.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Return.swift
index 268ce3bfee0..bda0c791d83 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Return.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Return.swift
@@ -30,3 +30,4 @@ public struct Return: Codable, Hashable {
try container.encodeIfPresent(`return`, forKey: .`return`)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift
index b677523a749..bfe9723f888 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift
@@ -29,3 +29,4 @@ public struct SpecialModelName: Codable, Hashable {
try container.encodeIfPresent(specialPropertyName, forKey: .specialPropertyName)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift
index eb3882d7c2a..2edf881a8f0 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift
@@ -22,3 +22,4 @@ public struct StringBooleanMap: Codable, Hashable {
var container = encoder.container(keyedBy: CodingKeys.self)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift
index cd5acc827db..07b826264f3 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift
@@ -33,3 +33,4 @@ public struct Tag: Codable, Hashable {
try container.encodeIfPresent(name, forKey: .name)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift
index 341c9b4b8c2..e58eecd960f 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift
@@ -45,3 +45,4 @@ public struct TypeHolderDefault: Codable, Hashable {
try container.encode(arrayItem, forKey: .arrayItem)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift
index 04166af0895..6c22fdbae7a 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift
@@ -45,3 +45,4 @@ public struct TypeHolderExample: Codable, Hashable {
try container.encode(arrayItem, forKey: .arrayItem)
}
}
+
diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift
index 9f3ded8fcd9..7afe359ae40 100644
--- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift
+++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/User.swift
@@ -58,3 +58,4 @@ public struct User: Codable, Hashable {
try container.encodeIfPresent(userStatus, forKey: .userStatus)
}
}
+
diff --git a/samples/client/petstore/swift5/swift5_test_all.sh b/samples/client/petstore/swift5/swift5_test_all.sh
index 153b5cfbc07..0b5ef4780b5 100755
--- a/samples/client/petstore/swift5/swift5_test_all.sh
+++ b/samples/client/petstore/swift5/swift5_test_all.sh
@@ -6,21 +6,25 @@ DIRECTORY=`dirname $0`
# example project with unit tests
# temporarily commment them because they are flaky
+# mvn -f $DIRECTORY/alamofireLibrary/SwaggerClientTests/pom.xml integration-test
+# mvn -f $DIRECTORY/combineLibrary/SwaggerClientTests/pom.xml integration-test
# mvn -f $DIRECTORY/default/SwaggerClientTests/pom.xml integration-test
# mvn -f $DIRECTORY/promisekitLibrary/SwaggerClientTests/pom.xml integration-test
# mvn -f $DIRECTORY/rxswiftLibrary/SwaggerClientTests/pom.xml integration-test
# mvn -f $DIRECTORY/urlsessionLibrary/SwaggerClientTests/pom.xml integration-test
-# mvn -f $DIRECTORY/alamofireLibrary/SwaggerClientTests/pom.xml integration-test
-# mvn -f $DIRECTORY/combineLibrary/SwaggerClientTests/pom.xml integration-test
# spm build
+mvn -f $DIRECTORY/alamofireLibrary/pom.xml integration-test
+mvn -f $DIRECTORY/combineLibrary/pom.xml integration-test
mvn -f $DIRECTORY/default/pom.xml integration-test
+mvn -f $DIRECTORY/deprecated/pom.xml integration-test
mvn -f $DIRECTORY/nonPublicApi/pom.xml integration-test
mvn -f $DIRECTORY/objcCompatible/pom.xml integration-test
+mvn -f $DIRECTORY/oneOf/pom.xml integration-test
mvn -f $DIRECTORY/promisekitLibrary/pom.xml integration-test
+mvn -f $DIRECTORY/readonlyProperties/pom.xml integration-test
mvn -f $DIRECTORY/resultLibrary/pom.xml integration-test
mvn -f $DIRECTORY/rxswiftLibrary/pom.xml integration-test
mvn -f $DIRECTORY/urlsessionLibrary/pom.xml integration-test
-mvn -f $DIRECTORY/alamofireLibrary/pom.xml integration-test
-mvn -f $DIRECTORY/combineLibrary/pom.xml integration-test
-mvn -f $DIRECTORY/deprecated/pom.xml integration-test
+mvn -f $DIRECTORY/vaporLibrary/pom.xml integration-test
+mvn -f $DIRECTORY/x-swift-hashable/pom.xml integration-test
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs.swift
index 01bc6ff0d8d..941c61b713a 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs.swift
@@ -11,8 +11,8 @@ public typealias PetstoreClientAPI = PetstoreClient
open class PetstoreClient {
public static var basePath = "http://petstore.swagger.io:80/v2"
- public static var credential: URLCredential?
public static var customHeaders: [String: String] = [:]
+ public static var credential: URLCredential?
public static var requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory()
public static var apiResponseQueue: DispatchQueue = .main
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs/AnotherFakeAPI.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs/AnotherFakeAPI.swift
index cce6d705d43..978e6ba041c 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs/AnotherFakeAPI.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs/AnotherFakeAPI.swift
@@ -6,11 +6,15 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
extension PetstoreClient {
open class AnotherFakeAPI {
+
/**
To test special tags
@@ -53,6 +57,5 @@ open class AnotherFakeAPI {
return requestBuilder.init(method: "PATCH", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift
index dbe358912cb..3ddcead03e4 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift
@@ -6,11 +6,15 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
extension PetstoreClient {
open class FakeAPI {
+
/**
- parameter body: (body) Input boolean as post body (optional)
@@ -683,6 +687,5 @@ open class FakeAPI {
return requestBuilder.init(method: "GET", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs/FakeClassnameTags123API.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs/FakeClassnameTags123API.swift
index a8bfc8b0546..e22de1f00c8 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs/FakeClassnameTags123API.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs/FakeClassnameTags123API.swift
@@ -6,11 +6,15 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
extension PetstoreClient {
open class FakeClassnameTags123API {
+
/**
To test class name in snake case
@@ -56,6 +60,5 @@ open class FakeClassnameTags123API {
return requestBuilder.init(method: "PATCH", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs/PetAPI.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs/PetAPI.swift
index ea664ec3af4..52289b62b56 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs/PetAPI.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs/PetAPI.swift
@@ -6,11 +6,15 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
extension PetstoreClient {
open class PetAPI {
+
/**
Add a new pet to the store
@@ -482,6 +486,5 @@ open class PetAPI {
return requestBuilder.init(method: "POST", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs/StoreAPI.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs/StoreAPI.swift
index 6c53077c654..19993eaff1e 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs/StoreAPI.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs/StoreAPI.swift
@@ -6,11 +6,15 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
extension PetstoreClient {
open class StoreAPI {
+
/**
Delete purchase order by ID
@@ -188,6 +192,5 @@ open class StoreAPI {
return requestBuilder.init(method: "POST", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs/UserAPI.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs/UserAPI.swift
index 1b09adafcfb..9e0ae01d871 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs/UserAPI.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs/UserAPI.swift
@@ -6,11 +6,15 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
extension PetstoreClient {
open class UserAPI {
+
/**
Create user
@@ -365,6 +369,5 @@ open class UserAPI {
return requestBuilder.init(method: "PUT", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Configuration.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Configuration.swift
index 2ad2048e74c..410882590eb 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Configuration.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Configuration.swift
@@ -11,9 +11,11 @@ public typealias Configuration = PetstoreClient.Configuration
extension PetstoreClient {
open class Configuration {
+
// This value is used to configure the date formatter that is used to serialize dates into JSON format.
// You must set it prior to encoding any dates, and it will only be read once.
@available(*, unavailable, message: "To set a different date format, use CodableHelper.dateFormatter instead.")
public static var dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSZZZZZ"
}
}
+
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesClass.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesClass.swift
index 1baefca5943..7f5b6a45ade 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesClass.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesClass.swift
@@ -50,4 +50,5 @@ public final class AdditionalPropertiesClass: Codable, Hashable {
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Animal.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Animal.swift
index bb576872813..24b111486de 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Animal.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Animal.swift
@@ -50,4 +50,5 @@ public final class Animal: Codable, Hashable {
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/ApiResponse.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/ApiResponse.swift
index 7682a7cb7f9..d6e874cad6c 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/ApiResponse.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/ApiResponse.swift
@@ -56,4 +56,5 @@ public final class ApiResponse: Codable, Hashable {
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/ArrayOfArrayOfNumberOnly.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/ArrayOfArrayOfNumberOnly.swift
index 42b106c6f61..46175c0b05e 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/ArrayOfArrayOfNumberOnly.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/ArrayOfArrayOfNumberOnly.swift
@@ -44,4 +44,5 @@ public final class ArrayOfArrayOfNumberOnly: Codable, Hashable {
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/ArrayOfNumberOnly.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/ArrayOfNumberOnly.swift
index 13a415a4469..240989ed68e 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/ArrayOfNumberOnly.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/ArrayOfNumberOnly.swift
@@ -44,4 +44,5 @@ public final class ArrayOfNumberOnly: Codable, Hashable {
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/ArrayTest.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/ArrayTest.swift
index 943c193458c..fc774738102 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/ArrayTest.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/ArrayTest.swift
@@ -56,4 +56,5 @@ public final class ArrayTest: Codable, Hashable {
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Capitalization.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Capitalization.swift
index d72936f45ac..2c3e64811a3 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Capitalization.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Capitalization.swift
@@ -75,4 +75,5 @@ public final class Capitalization: Codable, Hashable {
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Cat.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Cat.swift
index 5ba88eae81c..16834ea68f4 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Cat.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Cat.swift
@@ -56,4 +56,5 @@ public final class Cat: Codable, Hashable {
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/CatAllOf.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/CatAllOf.swift
index 4437f05ec8c..15b96135e89 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/CatAllOf.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/CatAllOf.swift
@@ -44,4 +44,5 @@ public final class CatAllOf: Codable, Hashable {
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Category.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Category.swift
index 4cd6f0940b0..f0427d76d28 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Category.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Category.swift
@@ -50,4 +50,5 @@ public final class Category: Codable, Hashable {
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/ClassModel.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/ClassModel.swift
index ebba6acf1f3..ff0539ba0b5 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/ClassModel.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/ClassModel.swift
@@ -45,4 +45,5 @@ public final class ClassModel: Codable, Hashable {
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Client.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Client.swift
index d671608ac8e..effc6525144 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Client.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Client.swift
@@ -44,4 +44,5 @@ public final class Client: Codable, Hashable {
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Dog.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Dog.swift
index a506fe02097..ccab17d0209 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Dog.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Dog.swift
@@ -56,4 +56,5 @@ public final class Dog: Codable, Hashable {
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/DogAllOf.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/DogAllOf.swift
index ea53f2f14e1..20b02ab06b7 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/DogAllOf.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/DogAllOf.swift
@@ -44,4 +44,5 @@ public final class DogAllOf: Codable, Hashable {
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/EnumArrays.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/EnumArrays.swift
index 82a858e1250..a1eb07aa955 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/EnumArrays.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/EnumArrays.swift
@@ -58,4 +58,5 @@ public final class EnumArrays: Codable, Hashable {
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/EnumTest.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/EnumTest.swift
index dc229bc0108..4b39f2161f1 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/EnumTest.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/EnumTest.swift
@@ -86,4 +86,5 @@ public final class EnumTest: Codable, Hashable {
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/File.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/File.swift
index 0e8e00f2e4e..ad1922e129b 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/File.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/File.swift
@@ -46,4 +46,5 @@ public final class File: Codable, Hashable {
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/FileSchemaTestClass.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/FileSchemaTestClass.swift
index 3eaf14887a6..523b2bab52e 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/FileSchemaTestClass.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/FileSchemaTestClass.swift
@@ -50,4 +50,5 @@ public final class FileSchemaTestClass: Codable, Hashable {
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/FormatTest.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/FormatTest.swift
index 3becb33e171..7ea8c7dc1ee 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/FormatTest.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/FormatTest.swift
@@ -116,4 +116,5 @@ public final class FormatTest: Codable, Hashable {
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/HasOnlyReadOnly.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/HasOnlyReadOnly.swift
index 2eeee949b9e..75ce3afe50d 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/HasOnlyReadOnly.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/HasOnlyReadOnly.swift
@@ -50,4 +50,5 @@ public final class HasOnlyReadOnly: Codable, Hashable {
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/List.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/List.swift
index d7bd15e4ab7..0dbb9c9f351 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/List.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/List.swift
@@ -44,4 +44,5 @@ public final class List: Codable, Hashable {
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/MapTest.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/MapTest.swift
index e1b5051c98a..fa4d05b2b0d 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/MapTest.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/MapTest.swift
@@ -66,4 +66,5 @@ public final class MapTest: Codable, Hashable {
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/MixedPropertiesAndAdditionalPropertiesClass.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
index 126d5952d23..af739161a45 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
@@ -56,4 +56,5 @@ public final class MixedPropertiesAndAdditionalPropertiesClass: Codable, Hashabl
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Model200Response.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Model200Response.swift
index abec4f578a3..c029d5acbd8 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Model200Response.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Model200Response.swift
@@ -51,4 +51,5 @@ public final class Model200Response: Codable, Hashable {
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Name.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Name.swift
index ae67e9ce2c9..e37f05bbb5e 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Name.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Name.swift
@@ -63,4 +63,5 @@ public final class Name: Codable, Hashable {
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/NumberOnly.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/NumberOnly.swift
index 122ba86ecf6..b375325d252 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/NumberOnly.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/NumberOnly.swift
@@ -44,4 +44,5 @@ public final class NumberOnly: Codable, Hashable {
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Order.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Order.swift
index 31979b10b85..9399d0b83f8 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Order.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Order.swift
@@ -80,4 +80,5 @@ public final class Order: Codable, Hashable {
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/OuterComposite.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/OuterComposite.swift
index 377df8fd2e0..125a7f19c8e 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/OuterComposite.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/OuterComposite.swift
@@ -56,4 +56,5 @@ public final class OuterComposite: Codable, Hashable {
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Pet.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Pet.swift
index d93428d9bda..7c3e1f6e58a 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Pet.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Pet.swift
@@ -80,4 +80,5 @@ public final class Pet: Codable, Hashable {
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/ReadOnlyFirst.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/ReadOnlyFirst.swift
index e3a074ebcc8..d6ff6cf50f8 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/ReadOnlyFirst.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/ReadOnlyFirst.swift
@@ -50,4 +50,5 @@ public final class ReadOnlyFirst: Codable, Hashable {
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Return.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Return.swift
index f517ed55714..c7a9c35ec1c 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Return.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Return.swift
@@ -45,4 +45,5 @@ public final class Return: Codable, Hashable {
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/SpecialModelName.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/SpecialModelName.swift
index 3b5cc185319..1f6a989b081 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/SpecialModelName.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/SpecialModelName.swift
@@ -44,4 +44,5 @@ public final class SpecialModelName: Codable, Hashable {
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/StringBooleanMap.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/StringBooleanMap.swift
index 1449e89190f..67216302d21 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/StringBooleanMap.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/StringBooleanMap.swift
@@ -62,4 +62,5 @@ public final class StringBooleanMap: Codable, Hashable {
hasher.combine(additionalProperties.hashValue)
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Tag.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Tag.swift
index cfd84044fe2..365ccb8b3aa 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Tag.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Tag.swift
@@ -50,4 +50,5 @@ public final class Tag: Codable, Hashable {
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/TypeHolderDefault.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/TypeHolderDefault.swift
index 82595deb500..3f64638c1bc 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/TypeHolderDefault.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/TypeHolderDefault.swift
@@ -68,4 +68,5 @@ public final class TypeHolderDefault: Codable, Hashable {
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/TypeHolderExample.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/TypeHolderExample.swift
index 9509c507b87..c7b480af0d0 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/TypeHolderExample.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/TypeHolderExample.swift
@@ -68,4 +68,5 @@ public final class TypeHolderExample: Codable, Hashable {
}
}
+
}
diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/User.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/User.swift
index 63b13180dcd..3af56094d8c 100644
--- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/User.swift
+++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/User.swift
@@ -87,4 +87,5 @@ public final class User: Codable, Hashable {
}
}
+
}
diff --git a/samples/client/petstore/swift5/vaporLibrary/.gitignore b/samples/client/petstore/swift5/vaporLibrary/.gitignore
new file mode 100644
index 00000000000..5e5d5cebcf4
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/.gitignore
@@ -0,0 +1,63 @@
+# Xcode
+#
+# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
+
+## Build generated
+build/
+DerivedData
+
+## Various settings
+*.pbxuser
+!default.pbxuser
+*.mode1v3
+!default.mode1v3
+*.mode2v3
+!default.mode2v3
+*.perspectivev3
+!default.perspectivev3
+xcuserdata
+
+## Other
+*.xccheckout
+*.moved-aside
+*.xcuserstate
+*.xcscmblueprint
+
+## Obj-C/Swift specific
+*.hmap
+*.ipa
+
+## Playgrounds
+timeline.xctimeline
+playground.xcworkspace
+
+# Swift Package Manager
+#
+# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
+# Packages/
+.build/
+
+# CocoaPods
+#
+# We recommend against adding the Pods directory to your .gitignore. However
+# you should judge for yourself, the pros and cons are mentioned at:
+# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
+#
+# Pods/
+
+# Carthage
+#
+# Add this line if you want to avoid checking in source code from Carthage dependencies.
+# Carthage/Checkouts
+
+Carthage/Build
+
+# fastlane
+#
+# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
+# screenshots whenever they are needed.
+# For more information about the recommended setup visit:
+# https://github.com/fastlane/fastlane/blob/master/docs/Gitignore.md
+
+fastlane/report.xml
+fastlane/screenshots
diff --git a/samples/client/petstore/swift5/vaporLibrary/.openapi-generator-ignore b/samples/client/petstore/swift5/vaporLibrary/.openapi-generator-ignore
new file mode 100644
index 00000000000..7484ee590a3
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/.openapi-generator-ignore
@@ -0,0 +1,23 @@
+# OpenAPI Generator Ignore
+# Generated by openapi-generator https://github.com/openapitools/openapi-generator
+
+# Use this file to prevent files from being overwritten by the generator.
+# The patterns follow closely to .gitignore or .dockerignore.
+
+# As an example, the C# client generator defines ApiClient.cs.
+# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
+#ApiClient.cs
+
+# You can match any string of characters against a directory, file or extension with a single asterisk (*):
+#foo/*/qux
+# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
+
+# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
+#foo/**/qux
+# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
+
+# You can also negate patterns with an exclamation (!).
+# For example, you can ignore all files in a docs folder with the file extension .md:
+#docs/*.md
+# Then explicitly reverse the ignore rule for a single file:
+#!docs/README.md
diff --git a/samples/client/petstore/swift5/vaporLibrary/.openapi-generator/FILES b/samples/client/petstore/swift5/vaporLibrary/.openapi-generator/FILES
new file mode 100644
index 00000000000..ec27ad4b38e
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/.openapi-generator/FILES
@@ -0,0 +1,118 @@
+.gitignore
+Package.swift
+README.md
+Sources/PetstoreClient/APIs.swift
+Sources/PetstoreClient/APIs/AnotherFakeAPI.swift
+Sources/PetstoreClient/APIs/FakeAPI.swift
+Sources/PetstoreClient/APIs/FakeClassnameTags123API.swift
+Sources/PetstoreClient/APIs/PetAPI.swift
+Sources/PetstoreClient/APIs/StoreAPI.swift
+Sources/PetstoreClient/APIs/UserAPI.swift
+Sources/PetstoreClient/Configuration.swift
+Sources/PetstoreClient/Extensions.swift
+Sources/PetstoreClient/Models/AdditionalPropertiesAnyType.swift
+Sources/PetstoreClient/Models/AdditionalPropertiesArray.swift
+Sources/PetstoreClient/Models/AdditionalPropertiesBoolean.swift
+Sources/PetstoreClient/Models/AdditionalPropertiesClass.swift
+Sources/PetstoreClient/Models/AdditionalPropertiesInteger.swift
+Sources/PetstoreClient/Models/AdditionalPropertiesNumber.swift
+Sources/PetstoreClient/Models/AdditionalPropertiesObject.swift
+Sources/PetstoreClient/Models/AdditionalPropertiesString.swift
+Sources/PetstoreClient/Models/Animal.swift
+Sources/PetstoreClient/Models/AnimalFarm.swift
+Sources/PetstoreClient/Models/ApiResponse.swift
+Sources/PetstoreClient/Models/ArrayOfArrayOfNumberOnly.swift
+Sources/PetstoreClient/Models/ArrayOfNumberOnly.swift
+Sources/PetstoreClient/Models/ArrayTest.swift
+Sources/PetstoreClient/Models/BigCat.swift
+Sources/PetstoreClient/Models/BigCatAllOf.swift
+Sources/PetstoreClient/Models/Capitalization.swift
+Sources/PetstoreClient/Models/Cat.swift
+Sources/PetstoreClient/Models/CatAllOf.swift
+Sources/PetstoreClient/Models/Category.swift
+Sources/PetstoreClient/Models/ClassModel.swift
+Sources/PetstoreClient/Models/Client.swift
+Sources/PetstoreClient/Models/Dog.swift
+Sources/PetstoreClient/Models/DogAllOf.swift
+Sources/PetstoreClient/Models/EnumArrays.swift
+Sources/PetstoreClient/Models/EnumClass.swift
+Sources/PetstoreClient/Models/EnumTest.swift
+Sources/PetstoreClient/Models/File.swift
+Sources/PetstoreClient/Models/FileSchemaTestClass.swift
+Sources/PetstoreClient/Models/FormatTest.swift
+Sources/PetstoreClient/Models/HasOnlyReadOnly.swift
+Sources/PetstoreClient/Models/List.swift
+Sources/PetstoreClient/Models/MapTest.swift
+Sources/PetstoreClient/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
+Sources/PetstoreClient/Models/Model200Response.swift
+Sources/PetstoreClient/Models/Name.swift
+Sources/PetstoreClient/Models/NumberOnly.swift
+Sources/PetstoreClient/Models/Order.swift
+Sources/PetstoreClient/Models/OuterComposite.swift
+Sources/PetstoreClient/Models/OuterEnum.swift
+Sources/PetstoreClient/Models/Pet.swift
+Sources/PetstoreClient/Models/ReadOnlyFirst.swift
+Sources/PetstoreClient/Models/Return.swift
+Sources/PetstoreClient/Models/SpecialModelName.swift
+Sources/PetstoreClient/Models/StringBooleanMap.swift
+Sources/PetstoreClient/Models/Tag.swift
+Sources/PetstoreClient/Models/TypeHolderDefault.swift
+Sources/PetstoreClient/Models/TypeHolderExample.swift
+Sources/PetstoreClient/Models/User.swift
+Sources/PetstoreClient/Models/XmlItem.swift
+docs/AdditionalPropertiesAnyType.md
+docs/AdditionalPropertiesArray.md
+docs/AdditionalPropertiesBoolean.md
+docs/AdditionalPropertiesClass.md
+docs/AdditionalPropertiesInteger.md
+docs/AdditionalPropertiesNumber.md
+docs/AdditionalPropertiesObject.md
+docs/AdditionalPropertiesString.md
+docs/Animal.md
+docs/AnimalFarm.md
+docs/AnotherFakeAPI.md
+docs/ApiResponse.md
+docs/ArrayOfArrayOfNumberOnly.md
+docs/ArrayOfNumberOnly.md
+docs/ArrayTest.md
+docs/BigCat.md
+docs/BigCatAllOf.md
+docs/Capitalization.md
+docs/Cat.md
+docs/CatAllOf.md
+docs/Category.md
+docs/ClassModel.md
+docs/Client.md
+docs/Dog.md
+docs/DogAllOf.md
+docs/EnumArrays.md
+docs/EnumClass.md
+docs/EnumTest.md
+docs/FakeAPI.md
+docs/FakeClassnameTags123API.md
+docs/File.md
+docs/FileSchemaTestClass.md
+docs/FormatTest.md
+docs/HasOnlyReadOnly.md
+docs/List.md
+docs/MapTest.md
+docs/MixedPropertiesAndAdditionalPropertiesClass.md
+docs/Model200Response.md
+docs/Name.md
+docs/NumberOnly.md
+docs/Order.md
+docs/OuterComposite.md
+docs/OuterEnum.md
+docs/Pet.md
+docs/PetAPI.md
+docs/ReadOnlyFirst.md
+docs/Return.md
+docs/SpecialModelName.md
+docs/StoreAPI.md
+docs/StringBooleanMap.md
+docs/Tag.md
+docs/TypeHolderDefault.md
+docs/TypeHolderExample.md
+docs/User.md
+docs/UserAPI.md
+docs/XmlItem.md
diff --git a/samples/client/petstore/swift5/vaporLibrary/.openapi-generator/VERSION b/samples/client/petstore/swift5/vaporLibrary/.openapi-generator/VERSION
new file mode 100644
index 00000000000..6555596f931
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/.openapi-generator/VERSION
@@ -0,0 +1 @@
+5.2.0-SNAPSHOT
\ No newline at end of file
diff --git a/samples/client/petstore/swift5/vaporLibrary/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/samples/client/petstore/swift5/vaporLibrary/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 00000000000..919434a6254
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Package.resolved b/samples/client/petstore/swift5/vaporLibrary/Package.resolved
new file mode 100644
index 00000000000..8f867e0061d
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Package.resolved
@@ -0,0 +1,160 @@
+{
+ "object": {
+ "pins": [
+ {
+ "package": "AnyCodable",
+ "repositoryURL": "https://github.com/Flight-School/AnyCodable",
+ "state": {
+ "branch": null,
+ "revision": "876d162385e9862ae8b3c8d65dc301312b040005",
+ "version": "0.6.0"
+ }
+ },
+ {
+ "package": "async-http-client",
+ "repositoryURL": "https://github.com/swift-server/async-http-client.git",
+ "state": {
+ "branch": null,
+ "revision": "8ccba7328d178ac05a1a9803cf3f2c6660d2f826",
+ "version": "1.3.0"
+ }
+ },
+ {
+ "package": "async-kit",
+ "repositoryURL": "https://github.com/vapor/async-kit.git",
+ "state": {
+ "branch": null,
+ "revision": "c1de408100a2f2e4ab2ea06512e8635bc1a59144",
+ "version": "1.3.1"
+ }
+ },
+ {
+ "package": "console-kit",
+ "repositoryURL": "https://github.com/vapor/console-kit.git",
+ "state": {
+ "branch": null,
+ "revision": "cfe8bcd58f74ffecb4f536d8237de146b634ecd3",
+ "version": "4.2.6"
+ }
+ },
+ {
+ "package": "multipart-kit",
+ "repositoryURL": "https://github.com/vapor/multipart-kit.git",
+ "state": {
+ "branch": null,
+ "revision": "2376b4949e8a1675f7c495224029498194eecf61",
+ "version": "4.0.3"
+ }
+ },
+ {
+ "package": "routing-kit",
+ "repositoryURL": "https://github.com/vapor/routing-kit.git",
+ "state": {
+ "branch": null,
+ "revision": "a0801a36a6ad501d5ad6285cbcd4774de6b0a734",
+ "version": "4.3.0"
+ }
+ },
+ {
+ "package": "swift-backtrace",
+ "repositoryURL": "https://github.com/swift-server/swift-backtrace.git",
+ "state": {
+ "branch": null,
+ "revision": "54a65d6391a1467a896d0d351ff2de6f469ee53c",
+ "version": "1.2.3"
+ }
+ },
+ {
+ "package": "swift-crypto",
+ "repositoryURL": "https://github.com/apple/swift-crypto.git",
+ "state": {
+ "branch": null,
+ "revision": "3bea268b223651c4ab7b7b9ad62ef9b2d4143eb6",
+ "version": "1.1.6"
+ }
+ },
+ {
+ "package": "swift-log",
+ "repositoryURL": "https://github.com/apple/swift-log.git",
+ "state": {
+ "branch": null,
+ "revision": "5d66f7ba25daf4f94100e7022febf3c75e37a6c7",
+ "version": "1.4.2"
+ }
+ },
+ {
+ "package": "swift-metrics",
+ "repositoryURL": "https://github.com/apple/swift-metrics.git",
+ "state": {
+ "branch": null,
+ "revision": "e382458581b05839a571c578e90060fff499f101",
+ "version": "2.1.1"
+ }
+ },
+ {
+ "package": "swift-nio",
+ "repositoryURL": "https://github.com/apple/swift-nio.git",
+ "state": {
+ "branch": null,
+ "revision": "d161bf658780b209c185994528e7e24376cf7283",
+ "version": "2.29.0"
+ }
+ },
+ {
+ "package": "swift-nio-extras",
+ "repositoryURL": "https://github.com/apple/swift-nio-extras.git",
+ "state": {
+ "branch": null,
+ "revision": "de1c80ad1fdff1ba772bcef6b392c3ef735f39a6",
+ "version": "1.8.0"
+ }
+ },
+ {
+ "package": "swift-nio-http2",
+ "repositoryURL": "https://github.com/apple/swift-nio-http2.git",
+ "state": {
+ "branch": null,
+ "revision": "e3e9024a632b40695ad5d3a85f9776a9b27a4bc6",
+ "version": "1.17.0"
+ }
+ },
+ {
+ "package": "swift-nio-ssl",
+ "repositoryURL": "https://github.com/apple/swift-nio-ssl.git",
+ "state": {
+ "branch": null,
+ "revision": "6363cdf6d2fb863e82434f3c4618f4e896e37569",
+ "version": "2.13.1"
+ }
+ },
+ {
+ "package": "swift-nio-transport-services",
+ "repositoryURL": "https://github.com/apple/swift-nio-transport-services.git",
+ "state": {
+ "branch": null,
+ "revision": "657537c2cf1845f8d5201ecc4e48f21f21841128",
+ "version": "1.10.0"
+ }
+ },
+ {
+ "package": "vapor",
+ "repositoryURL": "https://github.com/vapor/vapor.git",
+ "state": {
+ "branch": null,
+ "revision": "bc194e3868cbd9cf3cd41392e9b10d6fad089bc4",
+ "version": "4.45.7"
+ }
+ },
+ {
+ "package": "websocket-kit",
+ "repositoryURL": "https://github.com/vapor/websocket-kit.git",
+ "state": {
+ "branch": null,
+ "revision": "a2d26b3de8b3be292f3208d1c74024f76ac503da",
+ "version": "2.1.3"
+ }
+ }
+ ]
+ },
+ "version": 1
+}
diff --git a/samples/client/petstore/swift5/vaporLibrary/Package.swift b/samples/client/petstore/swift5/vaporLibrary/Package.swift
new file mode 100644
index 00000000000..3dec2555d09
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Package.swift
@@ -0,0 +1,31 @@
+// swift-tools-version:5.1
+
+import PackageDescription
+
+let package = Package(
+ name: "PetstoreClient",
+ platforms: [
+ .macOS(.v10_15),
+ ],
+ products: [
+ // Products define the executables and libraries produced by a package, and make them visible to other packages.
+ .library(
+ name: "PetstoreClient",
+ targets: ["PetstoreClient"]
+ ),
+ ],
+ dependencies: [
+ // Dependencies declare other packages that this package depends on.
+ .package(url: "https://github.com/Flight-School/AnyCodable", .exact("0.6.0")),
+ .package(url: "https://github.com/vapor/vapor.git", from: "4.0.0")
+ ],
+ targets: [
+ // Targets are the basic building blocks of a package. A target can define a module or a test suite.
+ // Targets can depend on other targets in this package, and on products in packages which this package depends on.
+ .target(
+ name: "PetstoreClient",
+ dependencies: ["AnyCodable", "Vapor", ],
+ path: "Sources/PetstoreClient"
+ ),
+ ]
+)
diff --git a/samples/client/petstore/swift5/vaporLibrary/README.md b/samples/client/petstore/swift5/vaporLibrary/README.md
new file mode 100644
index 00000000000..ee3cf1af06f
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/README.md
@@ -0,0 +1,149 @@
+# Swift5 API client for PetstoreClient
+
+This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+
+## Overview
+This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://github.com/OAI/OpenAPI-Specification) from a remote server, you can easily generate an API client.
+
+- API version: 1.0.0
+- Package version:
+- Build package: org.openapitools.codegen.languages.Swift5ClientCodegen
+
+## Installation
+
+Add the following entry in your Package.swift:
+
+> .package(path: "./PetstoreClient")
+
+## Documentation for API Endpoints
+
+All URIs are relative to *http://petstore.swagger.io:80/v2*
+
+Class | Method | HTTP request | Description
+------------ | ------------- | ------------- | -------------
+*AnotherFakeAPI* | [**call123testSpecialTags**](docs/AnotherFakeAPI.md#call123testspecialtags) | **PATCH** /another-fake/dummy | To test special tags
+*FakeAPI* | [**createXmlItem**](docs/FakeAPI.md#createxmlitem) | **POST** /fake/create_xml_item | creates an XmlItem
+*FakeAPI* | [**fakeOuterBooleanSerialize**](docs/FakeAPI.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
+*FakeAPI* | [**fakeOuterCompositeSerialize**](docs/FakeAPI.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
+*FakeAPI* | [**fakeOuterNumberSerialize**](docs/FakeAPI.md#fakeouternumberserialize) | **POST** /fake/outer/number |
+*FakeAPI* | [**fakeOuterStringSerialize**](docs/FakeAPI.md#fakeouterstringserialize) | **POST** /fake/outer/string |
+*FakeAPI* | [**testBodyWithFileSchema**](docs/FakeAPI.md#testbodywithfileschema) | **PUT** /fake/body-with-file-schema |
+*FakeAPI* | [**testBodyWithQueryParams**](docs/FakeAPI.md#testbodywithqueryparams) | **PUT** /fake/body-with-query-params |
+*FakeAPI* | [**testClientModel**](docs/FakeAPI.md#testclientmodel) | **PATCH** /fake | To test \"client\" model
+*FakeAPI* | [**testEndpointParameters**](docs/FakeAPI.md#testendpointparameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
+*FakeAPI* | [**testEnumParameters**](docs/FakeAPI.md#testenumparameters) | **GET** /fake | To test enum parameters
+*FakeAPI* | [**testGroupParameters**](docs/FakeAPI.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
+*FakeAPI* | [**testInlineAdditionalProperties**](docs/FakeAPI.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
+*FakeAPI* | [**testJsonFormData**](docs/FakeAPI.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data
+*FakeAPI* | [**testQueryParameterCollectionFormat**](docs/FakeAPI.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters |
+*FakeClassnameTags123API* | [**testClassname**](docs/FakeClassnameTags123API.md#testclassname) | **PATCH** /fake_classname_test | To test class name in snake case
+*PetAPI* | [**addPet**](docs/PetAPI.md#addpet) | **POST** /pet | Add a new pet to the store
+*PetAPI* | [**deletePet**](docs/PetAPI.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet
+*PetAPI* | [**findPetsByStatus**](docs/PetAPI.md#findpetsbystatus) | **GET** /pet/findByStatus | Finds Pets by status
+*PetAPI* | [**findPetsByTags**](docs/PetAPI.md#findpetsbytags) | **GET** /pet/findByTags | Finds Pets by tags
+*PetAPI* | [**getPetById**](docs/PetAPI.md#getpetbyid) | **GET** /pet/{petId} | Find pet by ID
+*PetAPI* | [**updatePet**](docs/PetAPI.md#updatepet) | **PUT** /pet | Update an existing pet
+*PetAPI* | [**updatePetWithForm**](docs/PetAPI.md#updatepetwithform) | **POST** /pet/{petId} | Updates a pet in the store with form data
+*PetAPI* | [**uploadFile**](docs/PetAPI.md#uploadfile) | **POST** /pet/{petId}/uploadImage | uploads an image
+*PetAPI* | [**uploadFileWithRequiredFile**](docs/PetAPI.md#uploadfilewithrequiredfile) | **POST** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required)
+*StoreAPI* | [**deleteOrder**](docs/StoreAPI.md#deleteorder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID
+*StoreAPI* | [**getInventory**](docs/StoreAPI.md#getinventory) | **GET** /store/inventory | Returns pet inventories by status
+*StoreAPI* | [**getOrderById**](docs/StoreAPI.md#getorderbyid) | **GET** /store/order/{order_id} | Find purchase order by ID
+*StoreAPI* | [**placeOrder**](docs/StoreAPI.md#placeorder) | **POST** /store/order | Place an order for a pet
+*UserAPI* | [**createUser**](docs/UserAPI.md#createuser) | **POST** /user | Create user
+*UserAPI* | [**createUsersWithArrayInput**](docs/UserAPI.md#createuserswitharrayinput) | **POST** /user/createWithArray | Creates list of users with given input array
+*UserAPI* | [**createUsersWithListInput**](docs/UserAPI.md#createuserswithlistinput) | **POST** /user/createWithList | Creates list of users with given input array
+*UserAPI* | [**deleteUser**](docs/UserAPI.md#deleteuser) | **DELETE** /user/{username} | Delete user
+*UserAPI* | [**getUserByName**](docs/UserAPI.md#getuserbyname) | **GET** /user/{username} | Get user by user name
+*UserAPI* | [**loginUser**](docs/UserAPI.md#loginuser) | **GET** /user/login | Logs user into the system
+*UserAPI* | [**logoutUser**](docs/UserAPI.md#logoutuser) | **GET** /user/logout | Logs out current logged in user session
+*UserAPI* | [**updateUser**](docs/UserAPI.md#updateuser) | **PUT** /user/{username} | Updated user
+
+
+## Documentation For Models
+
+ - [AdditionalPropertiesAnyType](docs/AdditionalPropertiesAnyType.md)
+ - [AdditionalPropertiesArray](docs/AdditionalPropertiesArray.md)
+ - [AdditionalPropertiesBoolean](docs/AdditionalPropertiesBoolean.md)
+ - [AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
+ - [AdditionalPropertiesInteger](docs/AdditionalPropertiesInteger.md)
+ - [AdditionalPropertiesNumber](docs/AdditionalPropertiesNumber.md)
+ - [AdditionalPropertiesObject](docs/AdditionalPropertiesObject.md)
+ - [AdditionalPropertiesString](docs/AdditionalPropertiesString.md)
+ - [Animal](docs/Animal.md)
+ - [AnimalFarm](docs/AnimalFarm.md)
+ - [ApiResponse](docs/ApiResponse.md)
+ - [ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
+ - [ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
+ - [ArrayTest](docs/ArrayTest.md)
+ - [BigCat](docs/BigCat.md)
+ - [BigCatAllOf](docs/BigCatAllOf.md)
+ - [Capitalization](docs/Capitalization.md)
+ - [Cat](docs/Cat.md)
+ - [CatAllOf](docs/CatAllOf.md)
+ - [Category](docs/Category.md)
+ - [ClassModel](docs/ClassModel.md)
+ - [Client](docs/Client.md)
+ - [Dog](docs/Dog.md)
+ - [DogAllOf](docs/DogAllOf.md)
+ - [EnumArrays](docs/EnumArrays.md)
+ - [EnumClass](docs/EnumClass.md)
+ - [EnumTest](docs/EnumTest.md)
+ - [File](docs/File.md)
+ - [FileSchemaTestClass](docs/FileSchemaTestClass.md)
+ - [FormatTest](docs/FormatTest.md)
+ - [HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
+ - [List](docs/List.md)
+ - [MapTest](docs/MapTest.md)
+ - [MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
+ - [Model200Response](docs/Model200Response.md)
+ - [Name](docs/Name.md)
+ - [NumberOnly](docs/NumberOnly.md)
+ - [Order](docs/Order.md)
+ - [OuterComposite](docs/OuterComposite.md)
+ - [OuterEnum](docs/OuterEnum.md)
+ - [Pet](docs/Pet.md)
+ - [ReadOnlyFirst](docs/ReadOnlyFirst.md)
+ - [Return](docs/Return.md)
+ - [SpecialModelName](docs/SpecialModelName.md)
+ - [StringBooleanMap](docs/StringBooleanMap.md)
+ - [Tag](docs/Tag.md)
+ - [TypeHolderDefault](docs/TypeHolderDefault.md)
+ - [TypeHolderExample](docs/TypeHolderExample.md)
+ - [User](docs/User.md)
+ - [XmlItem](docs/XmlItem.md)
+
+
+## Documentation For Authorization
+
+
+## api_key
+
+- **Type**: API key
+- **API key parameter name**: api_key
+- **Location**: HTTP header
+
+## api_key_query
+
+- **Type**: API key
+- **API key parameter name**: api_key_query
+- **Location**: URL query string
+
+## http_basic_test
+
+- **Type**: HTTP basic authentication
+
+## petstore_auth
+
+- **Type**: OAuth
+- **Flow**: implicit
+- **Authorization URL**: http://petstore.swagger.io/api/oauth/dialog
+- **Scopes**:
+ - **write:pets**: modify pets in your account
+ - **read:pets**: read your pets
+
+
+## Author
+
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/APIs.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/APIs.swift
new file mode 100644
index 00000000000..975fee896fa
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/APIs.swift
@@ -0,0 +1,16 @@
+// APIs.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+import Vapor
+
+@available(*, deprecated, renamed: "PetstoreClient")
+public typealias PetstoreClientAPI = PetstoreClient
+
+open class PetstoreClient {
+ public static var basePath = "http://petstore.swagger.io:80/v2"
+ public static var customHeaders: HTTPHeaders = [:]
+}
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/APIs/AnotherFakeAPI.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/APIs/AnotherFakeAPI.swift
new file mode 100644
index 00000000000..fa2b11dab66
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/APIs/AnotherFakeAPI.swift
@@ -0,0 +1,64 @@
+//
+// AnotherFakeAPI.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+import Vapor
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+
+open class AnotherFakeAPI {
+
+ /**
+ To test special tags
+ PATCH /another-fake/dummy
+ To test special tags and operation ID starting with number
+ - parameter body: (body) client model
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func call123testSpecialTagsRaw(body: Client, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ let path = "/another-fake/dummy"
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.PATCH, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+
+ try request.content.encode(body, using: Configuration.contentConfiguration.requireEncoder(for: Client.defaultContentType))
+
+ try beforeSend(&request)
+ }
+ }
+
+ public enum Call123testSpecialTags {
+ case http200(value: Client, raw: ClientResponse)
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ To test special tags
+ PATCH /another-fake/dummy
+ To test special tags and operation ID starting with number
+ - parameter body: (body) client model
+ - returns: `EventLoopFuture` of `Call123testSpecialTags`
+ */
+ open class func call123testSpecialTags(body: Client, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return call123testSpecialTagsRaw(body: body, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> Call123testSpecialTags in
+ switch response.status.code {
+ case 200:
+ return .http200(value: try response.content.decode(Client.self, using: Configuration.contentConfiguration.requireDecoder(for: Client.defaultContentType)), raw: response)
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+}
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift
new file mode 100644
index 00000000000..f9216c9884e
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift
@@ -0,0 +1,886 @@
+//
+// FakeAPI.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+import Vapor
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+
+open class FakeAPI {
+
+ /**
+ creates an XmlItem
+ POST /fake/create_xml_item
+ this route creates an XmlItem
+ - parameter xmlItem: (body) XmlItem Body
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func createXmlItemRaw(xmlItem: XmlItem, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ let path = "/fake/create_xml_item"
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.POST, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+
+ try request.content.encode(xmlItem, using: Configuration.contentConfiguration.requireEncoder(for: XmlItem.defaultContentType))
+
+ try beforeSend(&request)
+ }
+ }
+
+ public enum CreateXmlItem {
+ case http200(raw: ClientResponse)
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ creates an XmlItem
+ POST /fake/create_xml_item
+ this route creates an XmlItem
+ - parameter xmlItem: (body) XmlItem Body
+ - returns: `EventLoopFuture` of `CreateXmlItem`
+ */
+ open class func createXmlItem(xmlItem: XmlItem, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return createXmlItemRaw(xmlItem: xmlItem, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> CreateXmlItem in
+ switch response.status.code {
+ case 200:
+ return .http200(raw: response)
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+
+ /**
+ POST /fake/outer/boolean
+ Test serialization of outer boolean types
+ - parameter body: (body) Input boolean as post body (optional)
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func fakeOuterBooleanSerializeRaw(body: Bool? = nil, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ let path = "/fake/outer/boolean"
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.POST, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+
+ if let body = body {
+
+ try request.content.encode(body, using: Configuration.contentConfiguration.requireEncoder(for: Bool.defaultContentType))
+ }
+
+ try beforeSend(&request)
+ }
+ }
+
+ public enum FakeOuterBooleanSerialize {
+ case http200(value: Bool, raw: ClientResponse)
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ POST /fake/outer/boolean
+ Test serialization of outer boolean types
+ - parameter body: (body) Input boolean as post body (optional)
+ - returns: `EventLoopFuture` of `FakeOuterBooleanSerialize`
+ */
+ open class func fakeOuterBooleanSerialize(body: Bool? = nil, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return fakeOuterBooleanSerializeRaw(body: body, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> FakeOuterBooleanSerialize in
+ switch response.status.code {
+ case 200:
+ return .http200(value: try response.content.decode(Bool.self, using: Configuration.contentConfiguration.requireDecoder(for: Bool.defaultContentType)), raw: response)
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+
+ /**
+ POST /fake/outer/composite
+ Test serialization of object with outer number type
+ - parameter body: (body) Input composite as post body (optional)
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func fakeOuterCompositeSerializeRaw(body: OuterComposite? = nil, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ let path = "/fake/outer/composite"
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.POST, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+
+ if let body = body {
+
+ try request.content.encode(body, using: Configuration.contentConfiguration.requireEncoder(for: OuterComposite.defaultContentType))
+ }
+
+ try beforeSend(&request)
+ }
+ }
+
+ public enum FakeOuterCompositeSerialize {
+ case http200(value: OuterComposite, raw: ClientResponse)
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ POST /fake/outer/composite
+ Test serialization of object with outer number type
+ - parameter body: (body) Input composite as post body (optional)
+ - returns: `EventLoopFuture` of `FakeOuterCompositeSerialize`
+ */
+ open class func fakeOuterCompositeSerialize(body: OuterComposite? = nil, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return fakeOuterCompositeSerializeRaw(body: body, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> FakeOuterCompositeSerialize in
+ switch response.status.code {
+ case 200:
+ return .http200(value: try response.content.decode(OuterComposite.self, using: Configuration.contentConfiguration.requireDecoder(for: OuterComposite.defaultContentType)), raw: response)
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+
+ /**
+ POST /fake/outer/number
+ Test serialization of outer number types
+ - parameter body: (body) Input number as post body (optional)
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func fakeOuterNumberSerializeRaw(body: Double? = nil, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ let path = "/fake/outer/number"
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.POST, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+
+ if let body = body {
+
+ try request.content.encode(body, using: Configuration.contentConfiguration.requireEncoder(for: Double.defaultContentType))
+ }
+
+ try beforeSend(&request)
+ }
+ }
+
+ public enum FakeOuterNumberSerialize {
+ case http200(value: Double, raw: ClientResponse)
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ POST /fake/outer/number
+ Test serialization of outer number types
+ - parameter body: (body) Input number as post body (optional)
+ - returns: `EventLoopFuture` of `FakeOuterNumberSerialize`
+ */
+ open class func fakeOuterNumberSerialize(body: Double? = nil, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return fakeOuterNumberSerializeRaw(body: body, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> FakeOuterNumberSerialize in
+ switch response.status.code {
+ case 200:
+ return .http200(value: try response.content.decode(Double.self, using: Configuration.contentConfiguration.requireDecoder(for: Double.defaultContentType)), raw: response)
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+
+ /**
+ POST /fake/outer/string
+ Test serialization of outer string types
+ - parameter body: (body) Input string as post body (optional)
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func fakeOuterStringSerializeRaw(body: String? = nil, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ let path = "/fake/outer/string"
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.POST, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+
+ if let body = body {
+
+ try request.content.encode(body, using: Configuration.contentConfiguration.requireEncoder(for: String.defaultContentType))
+ }
+
+ try beforeSend(&request)
+ }
+ }
+
+ public enum FakeOuterStringSerialize {
+ case http200(value: String, raw: ClientResponse)
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ POST /fake/outer/string
+ Test serialization of outer string types
+ - parameter body: (body) Input string as post body (optional)
+ - returns: `EventLoopFuture` of `FakeOuterStringSerialize`
+ */
+ open class func fakeOuterStringSerialize(body: String? = nil, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return fakeOuterStringSerializeRaw(body: body, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> FakeOuterStringSerialize in
+ switch response.status.code {
+ case 200:
+ return .http200(value: try response.content.decode(String.self, using: Configuration.contentConfiguration.requireDecoder(for: String.defaultContentType)), raw: response)
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+
+ /**
+ PUT /fake/body-with-file-schema
+ For this test, the body for this request much reference a schema named `File`.
+ - parameter body: (body)
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func testBodyWithFileSchemaRaw(body: FileSchemaTestClass, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ let path = "/fake/body-with-file-schema"
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.PUT, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+
+ try request.content.encode(body, using: Configuration.contentConfiguration.requireEncoder(for: FileSchemaTestClass.defaultContentType))
+
+ try beforeSend(&request)
+ }
+ }
+
+ public enum TestBodyWithFileSchema {
+ case http200(raw: ClientResponse)
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ PUT /fake/body-with-file-schema
+ For this test, the body for this request much reference a schema named `File`.
+ - parameter body: (body)
+ - returns: `EventLoopFuture` of `TestBodyWithFileSchema`
+ */
+ open class func testBodyWithFileSchema(body: FileSchemaTestClass, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return testBodyWithFileSchemaRaw(body: body, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> TestBodyWithFileSchema in
+ switch response.status.code {
+ case 200:
+ return .http200(raw: response)
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+
+ /**
+ PUT /fake/body-with-query-params
+ - parameter query: (query)
+ - parameter body: (body)
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func testBodyWithQueryParamsRaw(query: String, body: User, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ let path = "/fake/body-with-query-params"
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.PUT, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+ struct QueryParams: Content {
+ var query: String
+ }
+ try request.query.encode(QueryParams(query: query))
+ try request.content.encode(body, using: Configuration.contentConfiguration.requireEncoder(for: User.defaultContentType))
+
+ try beforeSend(&request)
+ }
+ }
+
+ public enum TestBodyWithQueryParams {
+ case http200(raw: ClientResponse)
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ PUT /fake/body-with-query-params
+ - parameter query: (query)
+ - parameter body: (body)
+ - returns: `EventLoopFuture` of `TestBodyWithQueryParams`
+ */
+ open class func testBodyWithQueryParams(query: String, body: User, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return testBodyWithQueryParamsRaw(query: query, body: body, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> TestBodyWithQueryParams in
+ switch response.status.code {
+ case 200:
+ return .http200(raw: response)
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+
+ /**
+ To test \"client\" model
+ PATCH /fake
+ To test \"client\" model
+ - parameter body: (body) client model
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func testClientModelRaw(body: Client, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ let path = "/fake"
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.PATCH, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+
+ try request.content.encode(body, using: Configuration.contentConfiguration.requireEncoder(for: Client.defaultContentType))
+
+ try beforeSend(&request)
+ }
+ }
+
+ public enum TestClientModel {
+ case http200(value: Client, raw: ClientResponse)
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ To test \"client\" model
+ PATCH /fake
+ To test \"client\" model
+ - parameter body: (body) client model
+ - returns: `EventLoopFuture` of `TestClientModel`
+ */
+ open class func testClientModel(body: Client, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return testClientModelRaw(body: body, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> TestClientModel in
+ switch response.status.code {
+ case 200:
+ return .http200(value: try response.content.decode(Client.self, using: Configuration.contentConfiguration.requireDecoder(for: Client.defaultContentType)), raw: response)
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+
+ /**
+ Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
+ POST /fake
+ Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
+ - BASIC:
+ - type: http
+ - name: http_basic_test
+ - parameter number: (form) None
+ - parameter double: (form) None
+ - parameter patternWithoutDelimiter: (form) None
+ - parameter byte: (form) None
+ - parameter integer: (form) None (optional)
+ - parameter int32: (form) None (optional)
+ - parameter int64: (form) None (optional)
+ - parameter float: (form) None (optional)
+ - parameter string: (form) None (optional)
+ - parameter binary: (form) None (optional)
+ - parameter date: (form) None (optional)
+ - parameter dateTime: (form) None (optional)
+ - parameter password: (form) None (optional)
+ - parameter callback: (form) None (optional)
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func testEndpointParametersRaw(number: Double, double: Double, patternWithoutDelimiter: String, byte: Data, integer: Int? = nil, int32: Int? = nil, int64: Int64? = nil, float: Float? = nil, string: String? = nil, binary: Data? = nil, date: Date? = nil, dateTime: Date? = nil, password: String? = nil, callback: String? = nil, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ let path = "/fake"
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.POST, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+
+ struct FormParams: Content {
+ static let defaultContentType = Vapor.HTTPMediaType.formData
+ var integer: Int?
+ var int32: Int?
+ var int64: Int64?
+ var number: Double
+ var float: Float?
+ var double: Double
+ var string: String?
+ var patternWithoutDelimiter: String
+ var byte: Data
+ var binary: Data?
+ var date: Date?
+ var dateTime: Date?
+ var password: String?
+ var callback: String?
+ }
+ try request.content.encode(FormParams(integer: integer, int32: int32, int64: int64, number: number, float: float, double: double, string: string, patternWithoutDelimiter: patternWithoutDelimiter, byte: byte, binary: binary, date: date, dateTime: dateTime, password: password, callback: callback), using: Configuration.contentConfiguration.requireEncoder(for: FormParams.defaultContentType))
+ try beforeSend(&request)
+ }
+ }
+
+ public enum TestEndpointParameters {
+ case http400(raw: ClientResponse)
+ case http404(raw: ClientResponse)
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
+ POST /fake
+ Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
+ - BASIC:
+ - type: http
+ - name: http_basic_test
+ - parameter number: (form) None
+ - parameter double: (form) None
+ - parameter patternWithoutDelimiter: (form) None
+ - parameter byte: (form) None
+ - parameter integer: (form) None (optional)
+ - parameter int32: (form) None (optional)
+ - parameter int64: (form) None (optional)
+ - parameter float: (form) None (optional)
+ - parameter string: (form) None (optional)
+ - parameter binary: (form) None (optional)
+ - parameter date: (form) None (optional)
+ - parameter dateTime: (form) None (optional)
+ - parameter password: (form) None (optional)
+ - parameter callback: (form) None (optional)
+ - returns: `EventLoopFuture` of `TestEndpointParameters`
+ */
+ open class func testEndpointParameters(number: Double, double: Double, patternWithoutDelimiter: String, byte: Data, integer: Int? = nil, int32: Int? = nil, int64: Int64? = nil, float: Float? = nil, string: String? = nil, binary: Data? = nil, date: Date? = nil, dateTime: Date? = nil, password: String? = nil, callback: String? = nil, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return testEndpointParametersRaw(number: number, double: double, patternWithoutDelimiter: patternWithoutDelimiter, byte: byte, integer: integer, int32: int32, int64: int64, float: float, string: string, binary: binary, date: date, dateTime: dateTime, password: password, callback: callback, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> TestEndpointParameters in
+ switch response.status.code {
+ case 400:
+ return .http400(raw: response)
+ case 404:
+ return .http404(raw: response)
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+
+ /**
+ * enum for parameter enumHeaderStringArray
+ */
+ public enum EnumHeaderStringArray_testEnumParameters: String, CaseIterable, Content {
+ case greaterThan = ">"
+ case dollar = "$"
+ }
+
+ /**
+ * enum for parameter enumHeaderString
+ */
+ public enum EnumHeaderString_testEnumParameters: String, CaseIterable, Content {
+ case abc = "_abc"
+ case efg = "-efg"
+ case xyz = "(xyz)"
+ }
+
+ /**
+ * enum for parameter enumQueryStringArray
+ */
+ public enum EnumQueryStringArray_testEnumParameters: String, CaseIterable, Content {
+ case greaterThan = ">"
+ case dollar = "$"
+ }
+
+ /**
+ * enum for parameter enumQueryString
+ */
+ public enum EnumQueryString_testEnumParameters: String, CaseIterable, Content {
+ case abc = "_abc"
+ case efg = "-efg"
+ case xyz = "(xyz)"
+ }
+
+ /**
+ * enum for parameter enumQueryInteger
+ */
+ public enum EnumQueryInteger_testEnumParameters: Int, CaseIterable, Content {
+ case _1 = 1
+ case number2 = -2
+ }
+
+ /**
+ * enum for parameter enumQueryDouble
+ */
+ public enum EnumQueryDouble_testEnumParameters: Double, CaseIterable, Content {
+ case _11 = 1.1
+ case number12 = -1.2
+ }
+
+ /**
+ * enum for parameter enumFormStringArray
+ */
+ public enum EnumFormStringArray_testEnumParameters: String, CaseIterable, Content {
+ case greaterThan = ">"
+ case dollar = "$"
+ }
+
+ /**
+ * enum for parameter enumFormString
+ */
+ public enum EnumFormString_testEnumParameters: String, CaseIterable, Content {
+ case abc = "_abc"
+ case efg = "-efg"
+ case xyz = "(xyz)"
+ }
+
+ /**
+ To test enum parameters
+ GET /fake
+ To test enum parameters
+ - parameter enumHeaderStringArray: (header) Header parameter enum test (string array) (optional)
+ - parameter enumHeaderString: (header) Header parameter enum test (string) (optional, default to .efg)
+ - parameter enumQueryStringArray: (query) Query parameter enum test (string array) (optional)
+ - parameter enumQueryString: (query) Query parameter enum test (string) (optional, default to .efg)
+ - parameter enumQueryInteger: (query) Query parameter enum test (double) (optional)
+ - parameter enumQueryDouble: (query) Query parameter enum test (double) (optional)
+ - parameter enumFormStringArray: (form) Form parameter enum test (string array) (optional, default to .dollar)
+ - parameter enumFormString: (form) Form parameter enum test (string) (optional, default to .efg)
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func testEnumParametersRaw(enumHeaderStringArray: [EnumHeaderStringArray_testEnumParameters]? = nil, enumHeaderString: EnumHeaderString_testEnumParameters? = nil, enumQueryStringArray: [EnumQueryStringArray_testEnumParameters]? = nil, enumQueryString: EnumQueryString_testEnumParameters? = nil, enumQueryInteger: EnumQueryInteger_testEnumParameters? = nil, enumQueryDouble: EnumQueryDouble_testEnumParameters? = nil, enumFormStringArray: [EnumFormStringArray_testEnumParameters]? = nil, enumFormString: EnumFormString_testEnumParameters? = nil, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ let path = "/fake"
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.GET, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+ request.headers.add(name: "enum_header_string_array", value: enumHeaderStringArray?.map { $0.rawValue.description }.description ?? "")
+
+ request.headers.add(name: "enum_header_string", value: enumHeaderString?.rawValue.description ?? "")
+
+ struct QueryParams: Content {
+ var enumQueryStringArray: [EnumQueryStringArray_testEnumParameters]?
+ var enumQueryString: EnumQueryString_testEnumParameters?
+ var enumQueryInteger: EnumQueryInteger_testEnumParameters?
+ var enumQueryDouble: EnumQueryDouble_testEnumParameters?
+ }
+ try request.query.encode(QueryParams(enumQueryStringArray: enumQueryStringArray, enumQueryString: enumQueryString, enumQueryInteger: enumQueryInteger, enumQueryDouble: enumQueryDouble))
+ struct FormParams: Content {
+ static let defaultContentType = Vapor.HTTPMediaType.formData
+ var enumFormStringArray: [EnumFormStringArray_testEnumParameters]?
+ var enumFormString: EnumFormString_testEnumParameters?
+ }
+ try request.content.encode(FormParams(enumFormStringArray: enumFormStringArray, enumFormString: enumFormString), using: Configuration.contentConfiguration.requireEncoder(for: FormParams.defaultContentType))
+ try beforeSend(&request)
+ }
+ }
+
+ public enum TestEnumParameters {
+ case http400(raw: ClientResponse)
+ case http404(raw: ClientResponse)
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ To test enum parameters
+ GET /fake
+ To test enum parameters
+ - parameter enumHeaderStringArray: (header) Header parameter enum test (string array) (optional)
+ - parameter enumHeaderString: (header) Header parameter enum test (string) (optional, default to .efg)
+ - parameter enumQueryStringArray: (query) Query parameter enum test (string array) (optional)
+ - parameter enumQueryString: (query) Query parameter enum test (string) (optional, default to .efg)
+ - parameter enumQueryInteger: (query) Query parameter enum test (double) (optional)
+ - parameter enumQueryDouble: (query) Query parameter enum test (double) (optional)
+ - parameter enumFormStringArray: (form) Form parameter enum test (string array) (optional, default to .dollar)
+ - parameter enumFormString: (form) Form parameter enum test (string) (optional, default to .efg)
+ - returns: `EventLoopFuture` of `TestEnumParameters`
+ */
+ open class func testEnumParameters(enumHeaderStringArray: [EnumHeaderStringArray_testEnumParameters]? = nil, enumHeaderString: EnumHeaderString_testEnumParameters? = nil, enumQueryStringArray: [EnumQueryStringArray_testEnumParameters]? = nil, enumQueryString: EnumQueryString_testEnumParameters? = nil, enumQueryInteger: EnumQueryInteger_testEnumParameters? = nil, enumQueryDouble: EnumQueryDouble_testEnumParameters? = nil, enumFormStringArray: [EnumFormStringArray_testEnumParameters]? = nil, enumFormString: EnumFormString_testEnumParameters? = nil, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return testEnumParametersRaw(enumHeaderStringArray: enumHeaderStringArray, enumHeaderString: enumHeaderString, enumQueryStringArray: enumQueryStringArray, enumQueryString: enumQueryString, enumQueryInteger: enumQueryInteger, enumQueryDouble: enumQueryDouble, enumFormStringArray: enumFormStringArray, enumFormString: enumFormString, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> TestEnumParameters in
+ switch response.status.code {
+ case 400:
+ return .http400(raw: response)
+ case 404:
+ return .http404(raw: response)
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+
+ /**
+ Fake endpoint to test group parameters (optional)
+ DELETE /fake
+ Fake endpoint to test group parameters (optional)
+ - parameter requiredStringGroup: (query) Required String in group parameters
+ - parameter requiredBooleanGroup: (header) Required Boolean in group parameters
+ - parameter requiredInt64Group: (query) Required Integer in group parameters
+ - parameter stringGroup: (query) String in group parameters (optional)
+ - parameter booleanGroup: (header) Boolean in group parameters (optional)
+ - parameter int64Group: (query) Integer in group parameters (optional)
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func testGroupParametersRaw(requiredStringGroup: Int, requiredBooleanGroup: Bool, requiredInt64Group: Int64, stringGroup: Int? = nil, booleanGroup: Bool? = nil, int64Group: Int64? = nil, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ let path = "/fake"
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.DELETE, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+ request.headers.add(name: "required_boolean_group", value: requiredBooleanGroup.description)
+
+ request.headers.add(name: "boolean_group", value: booleanGroup?.description ?? "")
+
+ struct QueryParams: Content {
+ var requiredStringGroup: Int
+ var requiredInt64Group: Int64
+ var stringGroup: Int?
+ var int64Group: Int64?
+ }
+ try request.query.encode(QueryParams(requiredStringGroup: requiredStringGroup, requiredInt64Group: requiredInt64Group, stringGroup: stringGroup, int64Group: int64Group))
+
+ try beforeSend(&request)
+ }
+ }
+
+ public enum TestGroupParameters {
+ case http400(raw: ClientResponse)
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ Fake endpoint to test group parameters (optional)
+ DELETE /fake
+ Fake endpoint to test group parameters (optional)
+ - parameter requiredStringGroup: (query) Required String in group parameters
+ - parameter requiredBooleanGroup: (header) Required Boolean in group parameters
+ - parameter requiredInt64Group: (query) Required Integer in group parameters
+ - parameter stringGroup: (query) String in group parameters (optional)
+ - parameter booleanGroup: (header) Boolean in group parameters (optional)
+ - parameter int64Group: (query) Integer in group parameters (optional)
+ - returns: `EventLoopFuture` of `TestGroupParameters`
+ */
+ open class func testGroupParameters(requiredStringGroup: Int, requiredBooleanGroup: Bool, requiredInt64Group: Int64, stringGroup: Int? = nil, booleanGroup: Bool? = nil, int64Group: Int64? = nil, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return testGroupParametersRaw(requiredStringGroup: requiredStringGroup, requiredBooleanGroup: requiredBooleanGroup, requiredInt64Group: requiredInt64Group, stringGroup: stringGroup, booleanGroup: booleanGroup, int64Group: int64Group, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> TestGroupParameters in
+ switch response.status.code {
+ case 400:
+ return .http400(raw: response)
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+
+ /**
+ test inline additionalProperties
+ POST /fake/inline-additionalProperties
+ - parameter param: (body) request body
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func testInlineAdditionalPropertiesRaw(param: [String: String], headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ let path = "/fake/inline-additionalProperties"
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.POST, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+
+ try request.content.encode(param, using: Configuration.contentConfiguration.requireEncoder(for: [String: String].defaultContentType))
+
+ try beforeSend(&request)
+ }
+ }
+
+ public enum TestInlineAdditionalProperties {
+ case http200(raw: ClientResponse)
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ test inline additionalProperties
+ POST /fake/inline-additionalProperties
+ - parameter param: (body) request body
+ - returns: `EventLoopFuture` of `TestInlineAdditionalProperties`
+ */
+ open class func testInlineAdditionalProperties(param: [String: String], headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return testInlineAdditionalPropertiesRaw(param: param, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> TestInlineAdditionalProperties in
+ switch response.status.code {
+ case 200:
+ return .http200(raw: response)
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+
+ /**
+ test json serialization of form data
+ GET /fake/jsonFormData
+ - parameter param: (form) field1
+ - parameter param2: (form) field2
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func testJsonFormDataRaw(param: String, param2: String, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ let path = "/fake/jsonFormData"
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.GET, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+
+ struct FormParams: Content {
+ static let defaultContentType = Vapor.HTTPMediaType.formData
+ var param: String
+ var param2: String
+ }
+ try request.content.encode(FormParams(param: param, param2: param2), using: Configuration.contentConfiguration.requireEncoder(for: FormParams.defaultContentType))
+ try beforeSend(&request)
+ }
+ }
+
+ public enum TestJsonFormData {
+ case http200(raw: ClientResponse)
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ test json serialization of form data
+ GET /fake/jsonFormData
+ - parameter param: (form) field1
+ - parameter param2: (form) field2
+ - returns: `EventLoopFuture` of `TestJsonFormData`
+ */
+ open class func testJsonFormData(param: String, param2: String, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return testJsonFormDataRaw(param: param, param2: param2, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> TestJsonFormData in
+ switch response.status.code {
+ case 200:
+ return .http200(raw: response)
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+
+ /**
+ PUT /fake/test-query-paramters
+ To test the collection format in query parameters
+ - parameter pipe: (query)
+ - parameter ioutil: (query)
+ - parameter http: (query)
+ - parameter url: (query)
+ - parameter context: (query)
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func testQueryParameterCollectionFormatRaw(pipe: [String], ioutil: [String], http: [String], url: [String], context: [String], headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ let path = "/fake/test-query-paramters"
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.PUT, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+ struct QueryParams: Content {
+ var pipe: [String]
+ var ioutil: [String]
+ var http: [String]
+ var url: [String]
+ var context: [String]
+ }
+ try request.query.encode(QueryParams(pipe: pipe, ioutil: ioutil, http: http, url: url, context: context))
+
+ try beforeSend(&request)
+ }
+ }
+
+ public enum TestQueryParameterCollectionFormat {
+ case http200(raw: ClientResponse)
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ PUT /fake/test-query-paramters
+ To test the collection format in query parameters
+ - parameter pipe: (query)
+ - parameter ioutil: (query)
+ - parameter http: (query)
+ - parameter url: (query)
+ - parameter context: (query)
+ - returns: `EventLoopFuture` of `TestQueryParameterCollectionFormat`
+ */
+ open class func testQueryParameterCollectionFormat(pipe: [String], ioutil: [String], http: [String], url: [String], context: [String], headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return testQueryParameterCollectionFormatRaw(pipe: pipe, ioutil: ioutil, http: http, url: url, context: context, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> TestQueryParameterCollectionFormat in
+ switch response.status.code {
+ case 200:
+ return .http200(raw: response)
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+}
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/APIs/FakeClassnameTags123API.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/APIs/FakeClassnameTags123API.swift
new file mode 100644
index 00000000000..0df1da56467
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/APIs/FakeClassnameTags123API.swift
@@ -0,0 +1,70 @@
+//
+// FakeClassnameTags123API.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+import Vapor
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+
+open class FakeClassnameTags123API {
+
+ /**
+ To test class name in snake case
+ PATCH /fake_classname_test
+ To test class name in snake case
+ - API Key:
+ - type: apiKey api_key_query (QUERY)
+ - name: api_key_query
+ - parameter body: (body) client model
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func testClassnameRaw(body: Client, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ let path = "/fake_classname_test"
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.PATCH, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+
+ try request.content.encode(body, using: Configuration.contentConfiguration.requireEncoder(for: Client.defaultContentType))
+
+ try beforeSend(&request)
+ }
+ }
+
+ public enum TestClassname {
+ case http200(value: Client, raw: ClientResponse)
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ To test class name in snake case
+ PATCH /fake_classname_test
+ To test class name in snake case
+ - API Key:
+ - type: apiKey api_key_query (QUERY)
+ - name: api_key_query
+ - parameter body: (body) client model
+ - returns: `EventLoopFuture` of `TestClassname`
+ */
+ open class func testClassname(body: Client, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return testClassnameRaw(body: body, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> TestClassname in
+ switch response.status.code {
+ case 200:
+ return .http200(value: try response.content.decode(Client.self, using: Configuration.contentConfiguration.requireDecoder(for: Client.defaultContentType)), raw: response)
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+}
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/APIs/PetAPI.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/APIs/PetAPI.swift
new file mode 100644
index 00000000000..c38aad02331
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/APIs/PetAPI.swift
@@ -0,0 +1,581 @@
+//
+// PetAPI.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+import Vapor
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+
+open class PetAPI {
+
+ /**
+ Add a new pet to the store
+ POST /pet
+ - OAuth:
+ - type: oauth2
+ - name: petstore_auth
+ - parameter body: (body) Pet object that needs to be added to the store
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func addPetRaw(body: Pet, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ let path = "/pet"
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.POST, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+
+ try request.content.encode(body, using: Configuration.contentConfiguration.requireEncoder(for: Pet.defaultContentType))
+
+ try beforeSend(&request)
+ }
+ }
+
+ public enum AddPet {
+ case http200(raw: ClientResponse)
+ case http405(raw: ClientResponse)
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ Add a new pet to the store
+ POST /pet
+ - OAuth:
+ - type: oauth2
+ - name: petstore_auth
+ - parameter body: (body) Pet object that needs to be added to the store
+ - returns: `EventLoopFuture` of `AddPet`
+ */
+ open class func addPet(body: Pet, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return addPetRaw(body: body, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> AddPet in
+ switch response.status.code {
+ case 200:
+ return .http200(raw: response)
+ case 405:
+ return .http405(raw: response)
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+
+ /**
+ Deletes a pet
+ DELETE /pet/{petId}
+ - OAuth:
+ - type: oauth2
+ - name: petstore_auth
+ - parameter petId: (path) Pet id to delete
+ - parameter apiKey: (header) (optional)
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func deletePetRaw(petId: Int64, apiKey: String? = nil, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ var path = "/pet/{petId}"
+ let petIdPreEscape = String(describing: petId)
+ let petIdPostEscape = petIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
+ path = path.replacingOccurrences(of: "{petId}", with: petIdPostEscape, options: .literal, range: nil)
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.DELETE, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+ request.headers.add(name: "api_key", value: apiKey?.description ?? "")
+
+
+
+ try beforeSend(&request)
+ }
+ }
+
+ public enum DeletePet {
+ case http200(raw: ClientResponse)
+ case http400(raw: ClientResponse)
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ Deletes a pet
+ DELETE /pet/{petId}
+ - OAuth:
+ - type: oauth2
+ - name: petstore_auth
+ - parameter petId: (path) Pet id to delete
+ - parameter apiKey: (header) (optional)
+ - returns: `EventLoopFuture` of `DeletePet`
+ */
+ open class func deletePet(petId: Int64, apiKey: String? = nil, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return deletePetRaw(petId: petId, apiKey: apiKey, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> DeletePet in
+ switch response.status.code {
+ case 200:
+ return .http200(raw: response)
+ case 400:
+ return .http400(raw: response)
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+
+ /**
+ * enum for parameter status
+ */
+ public enum Status_findPetsByStatus: String, CaseIterable, Content {
+ case available = "available"
+ case pending = "pending"
+ case sold = "sold"
+ }
+
+ /**
+ Finds Pets by status
+ GET /pet/findByStatus
+ Multiple status values can be provided with comma separated strings
+ - OAuth:
+ - type: oauth2
+ - name: petstore_auth
+ - parameter status: (query) Status values that need to be considered for filter
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func findPetsByStatusRaw(status: [Status_findPetsByStatus], headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ let path = "/pet/findByStatus"
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.GET, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+ struct QueryParams: Content {
+ var status: [Status_findPetsByStatus]
+ }
+ try request.query.encode(QueryParams(status: status))
+
+ try beforeSend(&request)
+ }
+ }
+
+ public enum FindPetsByStatus {
+ case http200(value: [Pet], raw: ClientResponse)
+ case http400(raw: ClientResponse)
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ Finds Pets by status
+ GET /pet/findByStatus
+ Multiple status values can be provided with comma separated strings
+ - OAuth:
+ - type: oauth2
+ - name: petstore_auth
+ - parameter status: (query) Status values that need to be considered for filter
+ - returns: `EventLoopFuture` of `FindPetsByStatus`
+ */
+ open class func findPetsByStatus(status: [Status_findPetsByStatus], headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return findPetsByStatusRaw(status: status, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> FindPetsByStatus in
+ switch response.status.code {
+ case 200:
+ return .http200(value: try response.content.decode([Pet].self, using: Configuration.contentConfiguration.requireDecoder(for: [Pet].defaultContentType)), raw: response)
+ case 400:
+ return .http400(raw: response)
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+
+ /**
+ Finds Pets by tags
+ GET /pet/findByTags
+ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
+ - OAuth:
+ - type: oauth2
+ - name: petstore_auth
+ - parameter tags: (query) Tags to filter by
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ @available(*, deprecated, message: "This operation is deprecated.")
+ open class func findPetsByTagsRaw(tags: Set, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ let path = "/pet/findByTags"
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.GET, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+ struct QueryParams: Content {
+ var tags: Set
+ }
+ try request.query.encode(QueryParams(tags: tags))
+
+ try beforeSend(&request)
+ }
+ }
+
+ public enum FindPetsByTags {
+ case http200(value: Set, raw: ClientResponse)
+ case http400(raw: ClientResponse)
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ Finds Pets by tags
+ GET /pet/findByTags
+ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
+ - OAuth:
+ - type: oauth2
+ - name: petstore_auth
+ - parameter tags: (query) Tags to filter by
+ - returns: `EventLoopFuture` of `FindPetsByTags`
+ */
+ @available(*, deprecated, message: "This operation is deprecated.")
+ open class func findPetsByTags(tags: Set, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return findPetsByTagsRaw(tags: tags, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> FindPetsByTags in
+ switch response.status.code {
+ case 200:
+ return .http200(value: try response.content.decode(Set.self, using: Configuration.contentConfiguration.requireDecoder(for: Set.defaultContentType)), raw: response)
+ case 400:
+ return .http400(raw: response)
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+
+ /**
+ Find pet by ID
+ GET /pet/{petId}
+ Returns a single pet
+ - API Key:
+ - type: apiKey api_key
+ - name: api_key
+ - parameter petId: (path) ID of pet to return
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func getPetByIdRaw(petId: Int64, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ var path = "/pet/{petId}"
+ let petIdPreEscape = String(describing: petId)
+ let petIdPostEscape = petIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
+ path = path.replacingOccurrences(of: "{petId}", with: petIdPostEscape, options: .literal, range: nil)
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.GET, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+
+
+ try beforeSend(&request)
+ }
+ }
+
+ public enum GetPetById {
+ case http200(value: Pet, raw: ClientResponse)
+ case http400(raw: ClientResponse)
+ case http404(raw: ClientResponse)
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ Find pet by ID
+ GET /pet/{petId}
+ Returns a single pet
+ - API Key:
+ - type: apiKey api_key
+ - name: api_key
+ - parameter petId: (path) ID of pet to return
+ - returns: `EventLoopFuture` of `GetPetById`
+ */
+ open class func getPetById(petId: Int64, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return getPetByIdRaw(petId: petId, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> GetPetById in
+ switch response.status.code {
+ case 200:
+ return .http200(value: try response.content.decode(Pet.self, using: Configuration.contentConfiguration.requireDecoder(for: Pet.defaultContentType)), raw: response)
+ case 400:
+ return .http400(raw: response)
+ case 404:
+ return .http404(raw: response)
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+
+ /**
+ Update an existing pet
+ PUT /pet
+ - OAuth:
+ - type: oauth2
+ - name: petstore_auth
+ - parameter body: (body) Pet object that needs to be added to the store
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func updatePetRaw(body: Pet, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ let path = "/pet"
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.PUT, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+
+ try request.content.encode(body, using: Configuration.contentConfiguration.requireEncoder(for: Pet.defaultContentType))
+
+ try beforeSend(&request)
+ }
+ }
+
+ public enum UpdatePet {
+ case http200(raw: ClientResponse)
+ case http400(raw: ClientResponse)
+ case http404(raw: ClientResponse)
+ case http405(raw: ClientResponse)
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ Update an existing pet
+ PUT /pet
+ - OAuth:
+ - type: oauth2
+ - name: petstore_auth
+ - parameter body: (body) Pet object that needs to be added to the store
+ - returns: `EventLoopFuture` of `UpdatePet`
+ */
+ open class func updatePet(body: Pet, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return updatePetRaw(body: body, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> UpdatePet in
+ switch response.status.code {
+ case 200:
+ return .http200(raw: response)
+ case 400:
+ return .http400(raw: response)
+ case 404:
+ return .http404(raw: response)
+ case 405:
+ return .http405(raw: response)
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+
+ /**
+ Updates a pet in the store with form data
+ POST /pet/{petId}
+ - OAuth:
+ - type: oauth2
+ - name: petstore_auth
+ - parameter petId: (path) ID of pet that needs to be updated
+ - parameter name: (form) Updated name of the pet (optional)
+ - parameter status: (form) Updated status of the pet (optional)
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func updatePetWithFormRaw(petId: Int64, name: String? = nil, status: String? = nil, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ var path = "/pet/{petId}"
+ let petIdPreEscape = String(describing: petId)
+ let petIdPostEscape = petIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
+ path = path.replacingOccurrences(of: "{petId}", with: petIdPostEscape, options: .literal, range: nil)
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.POST, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+
+ struct FormParams: Content {
+ static let defaultContentType = Vapor.HTTPMediaType.formData
+ var name: String?
+ var status: String?
+ }
+ try request.content.encode(FormParams(name: name, status: status), using: Configuration.contentConfiguration.requireEncoder(for: FormParams.defaultContentType))
+ try beforeSend(&request)
+ }
+ }
+
+ public enum UpdatePetWithForm {
+ case http405(raw: ClientResponse)
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ Updates a pet in the store with form data
+ POST /pet/{petId}
+ - OAuth:
+ - type: oauth2
+ - name: petstore_auth
+ - parameter petId: (path) ID of pet that needs to be updated
+ - parameter name: (form) Updated name of the pet (optional)
+ - parameter status: (form) Updated status of the pet (optional)
+ - returns: `EventLoopFuture` of `UpdatePetWithForm`
+ */
+ open class func updatePetWithForm(petId: Int64, name: String? = nil, status: String? = nil, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return updatePetWithFormRaw(petId: petId, name: name, status: status, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> UpdatePetWithForm in
+ switch response.status.code {
+ case 405:
+ return .http405(raw: response)
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+
+ /**
+ uploads an image
+ POST /pet/{petId}/uploadImage
+ - OAuth:
+ - type: oauth2
+ - name: petstore_auth
+ - parameter petId: (path) ID of pet to update
+ - parameter additionalMetadata: (form) Additional data to pass to server (optional)
+ - parameter file: (form) file to upload (optional)
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func uploadFileRaw(petId: Int64, additionalMetadata: String? = nil, file: Data? = nil, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ var path = "/pet/{petId}/uploadImage"
+ let petIdPreEscape = String(describing: petId)
+ let petIdPostEscape = petIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
+ path = path.replacingOccurrences(of: "{petId}", with: petIdPostEscape, options: .literal, range: nil)
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.POST, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+
+ struct FormParams: Content {
+ static let defaultContentType = Vapor.HTTPMediaType.formData
+ var additionalMetadata: String?
+ var file: Data?
+ }
+ try request.content.encode(FormParams(additionalMetadata: additionalMetadata, file: file), using: Configuration.contentConfiguration.requireEncoder(for: FormParams.defaultContentType))
+ try beforeSend(&request)
+ }
+ }
+
+ public enum UploadFile {
+ case http200(value: ApiResponse, raw: ClientResponse)
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ uploads an image
+ POST /pet/{petId}/uploadImage
+ - OAuth:
+ - type: oauth2
+ - name: petstore_auth
+ - parameter petId: (path) ID of pet to update
+ - parameter additionalMetadata: (form) Additional data to pass to server (optional)
+ - parameter file: (form) file to upload (optional)
+ - returns: `EventLoopFuture` of `UploadFile`
+ */
+ open class func uploadFile(petId: Int64, additionalMetadata: String? = nil, file: Data? = nil, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return uploadFileRaw(petId: petId, additionalMetadata: additionalMetadata, file: file, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> UploadFile in
+ switch response.status.code {
+ case 200:
+ return .http200(value: try response.content.decode(ApiResponse.self, using: Configuration.contentConfiguration.requireDecoder(for: ApiResponse.defaultContentType)), raw: response)
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+
+ /**
+ uploads an image (required)
+ POST /fake/{petId}/uploadImageWithRequiredFile
+ - OAuth:
+ - type: oauth2
+ - name: petstore_auth
+ - parameter petId: (path) ID of pet to update
+ - parameter requiredFile: (form) file to upload
+ - parameter additionalMetadata: (form) Additional data to pass to server (optional)
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func uploadFileWithRequiredFileRaw(petId: Int64, requiredFile: Data, additionalMetadata: String? = nil, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ var path = "/fake/{petId}/uploadImageWithRequiredFile"
+ let petIdPreEscape = String(describing: petId)
+ let petIdPostEscape = petIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
+ path = path.replacingOccurrences(of: "{petId}", with: petIdPostEscape, options: .literal, range: nil)
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.POST, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+
+ struct FormParams: Content {
+ static let defaultContentType = Vapor.HTTPMediaType.formData
+ var additionalMetadata: String?
+ var requiredFile: Data
+ }
+ try request.content.encode(FormParams(additionalMetadata: additionalMetadata, requiredFile: requiredFile), using: Configuration.contentConfiguration.requireEncoder(for: FormParams.defaultContentType))
+ try beforeSend(&request)
+ }
+ }
+
+ public enum UploadFileWithRequiredFile {
+ case http200(value: ApiResponse, raw: ClientResponse)
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ uploads an image (required)
+ POST /fake/{petId}/uploadImageWithRequiredFile
+ - OAuth:
+ - type: oauth2
+ - name: petstore_auth
+ - parameter petId: (path) ID of pet to update
+ - parameter requiredFile: (form) file to upload
+ - parameter additionalMetadata: (form) Additional data to pass to server (optional)
+ - returns: `EventLoopFuture` of `UploadFileWithRequiredFile`
+ */
+ open class func uploadFileWithRequiredFile(petId: Int64, requiredFile: Data, additionalMetadata: String? = nil, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return uploadFileWithRequiredFileRaw(petId: petId, requiredFile: requiredFile, additionalMetadata: additionalMetadata, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> UploadFileWithRequiredFile in
+ switch response.status.code {
+ case 200:
+ return .http200(value: try response.content.decode(ApiResponse.self, using: Configuration.contentConfiguration.requireDecoder(for: ApiResponse.defaultContentType)), raw: response)
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+}
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/APIs/StoreAPI.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/APIs/StoreAPI.swift
new file mode 100644
index 00000000000..e4c2f8020b7
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/APIs/StoreAPI.swift
@@ -0,0 +1,228 @@
+//
+// StoreAPI.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+import Vapor
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+
+open class StoreAPI {
+
+ /**
+ Delete purchase order by ID
+ DELETE /store/order/{order_id}
+ For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
+ - parameter orderId: (path) ID of the order that needs to be deleted
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func deleteOrderRaw(orderId: String, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ var path = "/store/order/{order_id}"
+ let orderIdPreEscape = String(describing: orderId)
+ let orderIdPostEscape = orderIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
+ path = path.replacingOccurrences(of: "{order_id}", with: orderIdPostEscape, options: .literal, range: nil)
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.DELETE, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+
+
+ try beforeSend(&request)
+ }
+ }
+
+ public enum DeleteOrder {
+ case http400(raw: ClientResponse)
+ case http404(raw: ClientResponse)
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ Delete purchase order by ID
+ DELETE /store/order/{order_id}
+ For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
+ - parameter orderId: (path) ID of the order that needs to be deleted
+ - returns: `EventLoopFuture` of `DeleteOrder`
+ */
+ open class func deleteOrder(orderId: String, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return deleteOrderRaw(orderId: orderId, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> DeleteOrder in
+ switch response.status.code {
+ case 400:
+ return .http400(raw: response)
+ case 404:
+ return .http404(raw: response)
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+
+ /**
+ Returns pet inventories by status
+ GET /store/inventory
+ Returns a map of status codes to quantities
+ - API Key:
+ - type: apiKey api_key
+ - name: api_key
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func getInventoryRaw(headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ let path = "/store/inventory"
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.GET, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+
+
+ try beforeSend(&request)
+ }
+ }
+
+ public enum GetInventory {
+ case http200(value: [String: Int], raw: ClientResponse)
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ Returns pet inventories by status
+ GET /store/inventory
+ Returns a map of status codes to quantities
+ - API Key:
+ - type: apiKey api_key
+ - name: api_key
+ - returns: `EventLoopFuture` of `GetInventory`
+ */
+ open class func getInventory(headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return getInventoryRaw(headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> GetInventory in
+ switch response.status.code {
+ case 200:
+ return .http200(value: try response.content.decode([String: Int].self, using: Configuration.contentConfiguration.requireDecoder(for: [String: Int].defaultContentType)), raw: response)
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+
+ /**
+ 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
+ - parameter orderId: (path) ID of pet that needs to be fetched
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func getOrderByIdRaw(orderId: Int64, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ var path = "/store/order/{order_id}"
+ let orderIdPreEscape = String(describing: orderId)
+ let orderIdPostEscape = orderIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
+ path = path.replacingOccurrences(of: "{order_id}", with: orderIdPostEscape, options: .literal, range: nil)
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.GET, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+
+
+ try beforeSend(&request)
+ }
+ }
+
+ public enum GetOrderById {
+ case http200(value: Order, raw: ClientResponse)
+ case http400(raw: ClientResponse)
+ case http404(raw: ClientResponse)
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ 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
+ - parameter orderId: (path) ID of pet that needs to be fetched
+ - returns: `EventLoopFuture` of `GetOrderById`
+ */
+ open class func getOrderById(orderId: Int64, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return getOrderByIdRaw(orderId: orderId, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> GetOrderById in
+ switch response.status.code {
+ case 200:
+ return .http200(value: try response.content.decode(Order.self, using: Configuration.contentConfiguration.requireDecoder(for: Order.defaultContentType)), raw: response)
+ case 400:
+ return .http400(raw: response)
+ case 404:
+ return .http404(raw: response)
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+
+ /**
+ Place an order for a pet
+ POST /store/order
+ - parameter body: (body) order placed for purchasing the pet
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func placeOrderRaw(body: Order, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ let path = "/store/order"
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.POST, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+
+ try request.content.encode(body, using: Configuration.contentConfiguration.requireEncoder(for: Order.defaultContentType))
+
+ try beforeSend(&request)
+ }
+ }
+
+ public enum PlaceOrder {
+ case http200(value: Order, raw: ClientResponse)
+ case http400(raw: ClientResponse)
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ Place an order for a pet
+ POST /store/order
+ - parameter body: (body) order placed for purchasing the pet
+ - returns: `EventLoopFuture` of `PlaceOrder`
+ */
+ open class func placeOrder(body: Order, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return placeOrderRaw(body: body, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> PlaceOrder in
+ switch response.status.code {
+ case 200:
+ return .http200(value: try response.content.decode(Order.self, using: Configuration.contentConfiguration.requireDecoder(for: Order.defaultContentType)), raw: response)
+ case 400:
+ return .http400(raw: response)
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+}
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/APIs/UserAPI.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/APIs/UserAPI.swift
new file mode 100644
index 00000000000..b8eb7f4d576
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/APIs/UserAPI.swift
@@ -0,0 +1,413 @@
+//
+// UserAPI.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+import Vapor
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+
+open class UserAPI {
+
+ /**
+ Create user
+ POST /user
+ This can only be done by the logged in user.
+ - parameter body: (body) Created user object
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func createUserRaw(body: User, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ let path = "/user"
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.POST, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+
+ try request.content.encode(body, using: Configuration.contentConfiguration.requireEncoder(for: User.defaultContentType))
+
+ try beforeSend(&request)
+ }
+ }
+
+ public enum CreateUser {
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ Create user
+ POST /user
+ This can only be done by the logged in user.
+ - parameter body: (body) Created user object
+ - returns: `EventLoopFuture` of `CreateUser`
+ */
+ open class func createUser(body: User, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return createUserRaw(body: body, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> CreateUser in
+ switch response.status.code {
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+
+ /**
+ Creates list of users with given input array
+ POST /user/createWithArray
+ - parameter body: (body) List of user object
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func createUsersWithArrayInputRaw(body: [User], headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ let path = "/user/createWithArray"
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.POST, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+
+ try request.content.encode(body, using: Configuration.contentConfiguration.requireEncoder(for: [User].defaultContentType))
+
+ try beforeSend(&request)
+ }
+ }
+
+ public enum CreateUsersWithArrayInput {
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ Creates list of users with given input array
+ POST /user/createWithArray
+ - parameter body: (body) List of user object
+ - returns: `EventLoopFuture` of `CreateUsersWithArrayInput`
+ */
+ open class func createUsersWithArrayInput(body: [User], headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return createUsersWithArrayInputRaw(body: body, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> CreateUsersWithArrayInput in
+ switch response.status.code {
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+
+ /**
+ Creates list of users with given input array
+ POST /user/createWithList
+ - parameter body: (body) List of user object
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func createUsersWithListInputRaw(body: [User], headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ let path = "/user/createWithList"
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.POST, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+
+ try request.content.encode(body, using: Configuration.contentConfiguration.requireEncoder(for: [User].defaultContentType))
+
+ try beforeSend(&request)
+ }
+ }
+
+ public enum CreateUsersWithListInput {
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ Creates list of users with given input array
+ POST /user/createWithList
+ - parameter body: (body) List of user object
+ - returns: `EventLoopFuture` of `CreateUsersWithListInput`
+ */
+ open class func createUsersWithListInput(body: [User], headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return createUsersWithListInputRaw(body: body, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> CreateUsersWithListInput in
+ switch response.status.code {
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+
+ /**
+ Delete user
+ DELETE /user/{username}
+ This can only be done by the logged in user.
+ - parameter username: (path) The name that needs to be deleted
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func deleteUserRaw(username: String, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ var path = "/user/{username}"
+ let usernamePreEscape = String(describing: username)
+ let usernamePostEscape = usernamePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
+ path = path.replacingOccurrences(of: "{username}", with: usernamePostEscape, options: .literal, range: nil)
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.DELETE, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+
+
+ try beforeSend(&request)
+ }
+ }
+
+ public enum DeleteUser {
+ case http400(raw: ClientResponse)
+ case http404(raw: ClientResponse)
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ Delete user
+ DELETE /user/{username}
+ This can only be done by the logged in user.
+ - parameter username: (path) The name that needs to be deleted
+ - returns: `EventLoopFuture` of `DeleteUser`
+ */
+ open class func deleteUser(username: String, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return deleteUserRaw(username: username, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> DeleteUser in
+ switch response.status.code {
+ case 400:
+ return .http400(raw: response)
+ case 404:
+ return .http404(raw: response)
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+
+ /**
+ Get user by user name
+ GET /user/{username}
+ - parameter username: (path) The name that needs to be fetched. Use user1 for testing.
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func getUserByNameRaw(username: String, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ var path = "/user/{username}"
+ let usernamePreEscape = String(describing: username)
+ let usernamePostEscape = usernamePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
+ path = path.replacingOccurrences(of: "{username}", with: usernamePostEscape, options: .literal, range: nil)
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.GET, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+
+
+ try beforeSend(&request)
+ }
+ }
+
+ public enum GetUserByName {
+ case http200(value: User, raw: ClientResponse)
+ case http400(raw: ClientResponse)
+ case http404(raw: ClientResponse)
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ Get user by user name
+ GET /user/{username}
+ - parameter username: (path) The name that needs to be fetched. Use user1 for testing.
+ - returns: `EventLoopFuture` of `GetUserByName`
+ */
+ open class func getUserByName(username: String, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return getUserByNameRaw(username: username, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> GetUserByName in
+ switch response.status.code {
+ case 200:
+ return .http200(value: try response.content.decode(User.self, using: Configuration.contentConfiguration.requireDecoder(for: User.defaultContentType)), raw: response)
+ case 400:
+ return .http400(raw: response)
+ case 404:
+ return .http404(raw: response)
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+
+ /**
+ Logs user into the system
+ GET /user/login
+ - responseHeaders: [X-Rate-Limit(Int), X-Expires-After(Date)]
+ - parameter username: (query) The user name for login
+ - parameter password: (query) The password for login in clear text
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func loginUserRaw(username: String, password: String, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ let path = "/user/login"
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.GET, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+ struct QueryParams: Content {
+ var username: String
+ var password: String
+ }
+ try request.query.encode(QueryParams(username: username, password: password))
+
+ try beforeSend(&request)
+ }
+ }
+
+ public enum LoginUser {
+ case http200(value: String, raw: ClientResponse)
+ case http400(raw: ClientResponse)
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ Logs user into the system
+ GET /user/login
+ - responseHeaders: [X-Rate-Limit(Int), X-Expires-After(Date)]
+ - parameter username: (query) The user name for login
+ - parameter password: (query) The password for login in clear text
+ - returns: `EventLoopFuture` of `LoginUser`
+ */
+ open class func loginUser(username: String, password: String, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return loginUserRaw(username: username, password: password, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> LoginUser in
+ switch response.status.code {
+ case 200:
+ return .http200(value: try response.content.decode(String.self, using: Configuration.contentConfiguration.requireDecoder(for: String.defaultContentType)), raw: response)
+ case 400:
+ return .http400(raw: response)
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+
+ /**
+ Logs out current logged in user session
+ GET /user/logout
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func logoutUserRaw(headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ let path = "/user/logout"
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.GET, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+
+
+ try beforeSend(&request)
+ }
+ }
+
+ public enum LogoutUser {
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ Logs out current logged in user session
+ GET /user/logout
+ - returns: `EventLoopFuture` of `LogoutUser`
+ */
+ open class func logoutUser(headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return logoutUserRaw(headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> LogoutUser in
+ switch response.status.code {
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+
+ /**
+ Updated user
+ PUT /user/{username}
+ This can only be done by the logged in user.
+ - parameter username: (path) name that need to be deleted
+ - parameter body: (body) Updated user object
+ - returns: `EventLoopFuture` of `ClientResponse`
+ */
+ open class func updateUserRaw(username: String, body: User, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ var path = "/user/{username}"
+ let usernamePreEscape = String(describing: username)
+ let usernamePostEscape = usernamePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
+ path = path.replacingOccurrences(of: "{username}", with: usernamePostEscape, options: .literal, range: nil)
+ let URLString = PetstoreClient.basePath + path
+
+ guard let apiClient = Configuration.apiClient else {
+ fatalError("Configuration.apiClient is not set.")
+ }
+
+ return apiClient.send(.PUT, headers: headers, to: URI(string: URLString)) { request in
+ try Configuration.apiWrapper(&request)
+
+
+ try request.content.encode(body, using: Configuration.contentConfiguration.requireEncoder(for: User.defaultContentType))
+
+ try beforeSend(&request)
+ }
+ }
+
+ public enum UpdateUser {
+ case http400(raw: ClientResponse)
+ case http404(raw: ClientResponse)
+ case http0(raw: ClientResponse)
+ }
+
+ /**
+ Updated user
+ PUT /user/{username}
+ This can only be done by the logged in user.
+ - parameter username: (path) name that need to be deleted
+ - parameter body: (body) Updated user object
+ - returns: `EventLoopFuture` of `UpdateUser`
+ */
+ open class func updateUser(username: String, body: User, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture {
+ return updateUserRaw(username: username, body: body, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> UpdateUser in
+ switch response.status.code {
+ case 400:
+ return .http400(raw: response)
+ case 404:
+ return .http404(raw: response)
+ default:
+ return .http0(raw: response)
+ }
+ }
+ }
+
+}
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Configuration.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Configuration.swift
new file mode 100644
index 00000000000..db8707ad7a7
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Configuration.swift
@@ -0,0 +1,14 @@
+// Configuration.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+import Vapor
+
+open class Configuration {
+ public static var apiClient: Vapor.Client? = nil
+ public static var apiWrapper: (inout Vapor.ClientRequest) throws -> () = { _ in }
+ public static var contentConfiguration = ContentConfiguration.default()
+}
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Extensions.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Extensions.swift
new file mode 100644
index 00000000000..b212303ae1d
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Extensions.swift
@@ -0,0 +1,131 @@
+// Extensions.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+extension String: CodingKey {
+
+ public var stringValue: String {
+ return self
+ }
+
+ public init?(stringValue: String) {
+ self.init(stringLiteral: stringValue)
+ }
+
+ public var intValue: Int? {
+ return nil
+ }
+
+ public init?(intValue: Int) {
+ return nil
+ }
+
+}
+
+extension KeyedEncodingContainerProtocol {
+
+ public mutating func encodeArray(_ values: [T], forKey key: Self.Key) throws where T: Encodable {
+ var arrayContainer = nestedUnkeyedContainer(forKey: key)
+ try arrayContainer.encode(contentsOf: values)
+ }
+
+ public mutating func encodeArrayIfPresent(_ values: [T]?, forKey key: Self.Key) throws where T: Encodable {
+ if let values = values {
+ try encodeArray(values, forKey: key)
+ }
+ }
+
+ public mutating func encodeMap(_ pairs: [Self.Key: T]) throws where T: Encodable {
+ for (key, value) in pairs {
+ try encode(value, forKey: key)
+ }
+ }
+
+ public mutating func encodeMapIfPresent(_ pairs: [Self.Key: T]?) throws where T: Encodable {
+ if let pairs = pairs {
+ try encodeMap(pairs)
+ }
+ }
+
+}
+
+extension KeyedDecodingContainerProtocol {
+
+ public func decodeArray(_ type: T.Type, forKey key: Self.Key) throws -> [T] where T: Decodable {
+ var tmpArray = [T]()
+
+ var nestedContainer = try nestedUnkeyedContainer(forKey: key)
+ while !nestedContainer.isAtEnd {
+ let arrayValue = try nestedContainer.decode(T.self)
+ tmpArray.append(arrayValue)
+ }
+
+ return tmpArray
+ }
+
+ public func decodeArrayIfPresent(_ type: T.Type, forKey key: Self.Key) throws -> [T]? where T: Decodable {
+ var tmpArray: [T]?
+
+ if contains(key) {
+ tmpArray = try decodeArray(T.self, forKey: key)
+ }
+
+ return tmpArray
+ }
+
+ public func decodeMap(_ type: T.Type, excludedKeys: Set) throws -> [Self.Key: T] where T: Decodable {
+ var map: [Self.Key: T] = [:]
+
+ for key in allKeys {
+ if !excludedKeys.contains(key) {
+ let value = try decode(T.self, forKey: key)
+ map[key] = value
+ }
+ }
+
+ return map
+ }
+
+}
+
+extension UUID: Content { }
+
+extension URL: Content { }
+
+extension Bool: Content { }
+
+extension Set: ResponseEncodable where Element: Content {
+ public func encodeResponse(for request: Vapor.Request) -> EventLoopFuture {
+ let response = Vapor.Response()
+ do {
+ try response.content.encode(Array(self))
+ } catch {
+ return request.eventLoop.makeFailedFuture(error)
+ }
+ return request.eventLoop.makeSucceededFuture(response)
+ }
+}
+
+extension Set: RequestDecodable where Element: Content {
+ public static func decodeRequest(_ request: Vapor.Request) -> EventLoopFuture {
+ do {
+ let content = try request.content.decode([Element].self)
+ return request.eventLoop.makeSucceededFuture(Set(content))
+ } catch {
+ return request.eventLoop.makeFailedFuture(error)
+ }
+ }
+}
+
+extension Set: Content where Element: Content { }
+
+extension AnyCodable: Content {}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesAnyType.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesAnyType.swift
new file mode 100644
index 00000000000..2f18010d237
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesAnyType.swift
@@ -0,0 +1,72 @@
+//
+// AdditionalPropertiesAnyType.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class AdditionalPropertiesAnyType: Content, Hashable {
+
+ public var name: String?
+
+ public init(name: String? = nil) {
+ self.name = name
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case name
+ }
+
+ public var additionalProperties: [String: AnyCodable] = [:]
+
+ public subscript(key: String) -> AnyCodable? {
+ get {
+ if let value = additionalProperties[key] {
+ return value
+ }
+ return nil
+ }
+
+ set {
+ additionalProperties[key] = newValue
+ }
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(name, forKey: .name)
+ var additionalPropertiesContainer = encoder.container(keyedBy: String.self)
+ try additionalPropertiesContainer.encodeMap(additionalProperties)
+ }
+
+ // Decodable protocol methods
+
+ public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+ name = try container.decodeIfPresent(String.self, forKey: .name)
+ var nonAdditionalPropertyKeys = Set()
+ nonAdditionalPropertyKeys.insert("name")
+ let additionalPropertiesContainer = try decoder.container(keyedBy: String.self)
+ additionalProperties = try additionalPropertiesContainer.decodeMap(AnyCodable.self, excludedKeys: nonAdditionalPropertyKeys)
+ }
+
+ public static func == (lhs: AdditionalPropertiesAnyType, rhs: AdditionalPropertiesAnyType) -> Bool {
+ lhs.name == rhs.name
+ && lhs.additionalProperties == rhs.additionalProperties
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(name?.hashValue)
+ hasher.combine(additionalProperties.hashValue)
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesArray.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesArray.swift
new file mode 100644
index 00000000000..d590cb3a390
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesArray.swift
@@ -0,0 +1,72 @@
+//
+// AdditionalPropertiesArray.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class AdditionalPropertiesArray: Content, Hashable {
+
+ public var name: String?
+
+ public init(name: String? = nil) {
+ self.name = name
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case name
+ }
+
+ public var additionalProperties: [String: [AnyCodable]] = [:]
+
+ public subscript(key: String) -> [AnyCodable]? {
+ get {
+ if let value = additionalProperties[key] {
+ return value
+ }
+ return nil
+ }
+
+ set {
+ additionalProperties[key] = newValue
+ }
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(name, forKey: .name)
+ var additionalPropertiesContainer = encoder.container(keyedBy: String.self)
+ try additionalPropertiesContainer.encodeMap(additionalProperties)
+ }
+
+ // Decodable protocol methods
+
+ public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+ name = try container.decodeIfPresent(String.self, forKey: .name)
+ var nonAdditionalPropertyKeys = Set()
+ nonAdditionalPropertyKeys.insert("name")
+ let additionalPropertiesContainer = try decoder.container(keyedBy: String.self)
+ additionalProperties = try additionalPropertiesContainer.decodeMap([AnyCodable].self, excludedKeys: nonAdditionalPropertyKeys)
+ }
+
+ public static func == (lhs: AdditionalPropertiesArray, rhs: AdditionalPropertiesArray) -> Bool {
+ lhs.name == rhs.name
+ && lhs.additionalProperties == rhs.additionalProperties
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(name?.hashValue)
+ hasher.combine(additionalProperties.hashValue)
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesBoolean.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesBoolean.swift
new file mode 100644
index 00000000000..8dc293a604e
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesBoolean.swift
@@ -0,0 +1,72 @@
+//
+// AdditionalPropertiesBoolean.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class AdditionalPropertiesBoolean: Content, Hashable {
+
+ public var name: String?
+
+ public init(name: String? = nil) {
+ self.name = name
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case name
+ }
+
+ public var additionalProperties: [String: Bool] = [:]
+
+ public subscript(key: String) -> Bool? {
+ get {
+ if let value = additionalProperties[key] {
+ return value
+ }
+ return nil
+ }
+
+ set {
+ additionalProperties[key] = newValue
+ }
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(name, forKey: .name)
+ var additionalPropertiesContainer = encoder.container(keyedBy: String.self)
+ try additionalPropertiesContainer.encodeMap(additionalProperties)
+ }
+
+ // Decodable protocol methods
+
+ public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+ name = try container.decodeIfPresent(String.self, forKey: .name)
+ var nonAdditionalPropertyKeys = Set()
+ nonAdditionalPropertyKeys.insert("name")
+ let additionalPropertiesContainer = try decoder.container(keyedBy: String.self)
+ additionalProperties = try additionalPropertiesContainer.decodeMap(Bool.self, excludedKeys: nonAdditionalPropertyKeys)
+ }
+
+ public static func == (lhs: AdditionalPropertiesBoolean, rhs: AdditionalPropertiesBoolean) -> Bool {
+ lhs.name == rhs.name
+ && lhs.additionalProperties == rhs.additionalProperties
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(name?.hashValue)
+ hasher.combine(additionalProperties.hashValue)
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesClass.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesClass.swift
new file mode 100644
index 00000000000..de9ef459a05
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesClass.swift
@@ -0,0 +1,103 @@
+//
+// AdditionalPropertiesClass.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class AdditionalPropertiesClass: Content, Hashable {
+
+ public var mapString: [String: String]?
+ public var mapNumber: [String: Double]?
+ public var mapInteger: [String: Int]?
+ public var mapBoolean: [String: Bool]?
+ public var mapArrayInteger: [String: [Int]]?
+ public var mapArrayAnytype: [String: [AnyCodable]]?
+ public var mapMapString: [String: [String: String]]?
+ public var mapMapAnytype: [String: [String: AnyCodable]]?
+ public var anytype1: AnyCodable?
+ public var anytype2: AnyCodable?
+ public var anytype3: AnyCodable?
+
+ public init(mapString: [String: String]? = nil, mapNumber: [String: Double]? = nil, mapInteger: [String: Int]? = nil, mapBoolean: [String: Bool]? = nil, mapArrayInteger: [String: [Int]]? = nil, mapArrayAnytype: [String: [AnyCodable]]? = nil, mapMapString: [String: [String: String]]? = nil, mapMapAnytype: [String: [String: AnyCodable]]? = nil, anytype1: AnyCodable? = nil, anytype2: AnyCodable? = nil, anytype3: AnyCodable? = nil) {
+ self.mapString = mapString
+ self.mapNumber = mapNumber
+ self.mapInteger = mapInteger
+ self.mapBoolean = mapBoolean
+ self.mapArrayInteger = mapArrayInteger
+ self.mapArrayAnytype = mapArrayAnytype
+ self.mapMapString = mapMapString
+ self.mapMapAnytype = mapMapAnytype
+ self.anytype1 = anytype1
+ self.anytype2 = anytype2
+ self.anytype3 = anytype3
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case mapString = "map_string"
+ case mapNumber = "map_number"
+ case mapInteger = "map_integer"
+ case mapBoolean = "map_boolean"
+ case mapArrayInteger = "map_array_integer"
+ case mapArrayAnytype = "map_array_anytype"
+ case mapMapString = "map_map_string"
+ case mapMapAnytype = "map_map_anytype"
+ case anytype1 = "anytype_1"
+ case anytype2 = "anytype_2"
+ case anytype3 = "anytype_3"
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(mapString, forKey: .mapString)
+ try container.encodeIfPresent(mapNumber, forKey: .mapNumber)
+ try container.encodeIfPresent(mapInteger, forKey: .mapInteger)
+ try container.encodeIfPresent(mapBoolean, forKey: .mapBoolean)
+ try container.encodeIfPresent(mapArrayInteger, forKey: .mapArrayInteger)
+ try container.encodeIfPresent(mapArrayAnytype, forKey: .mapArrayAnytype)
+ try container.encodeIfPresent(mapMapString, forKey: .mapMapString)
+ try container.encodeIfPresent(mapMapAnytype, forKey: .mapMapAnytype)
+ try container.encodeIfPresent(anytype1, forKey: .anytype1)
+ try container.encodeIfPresent(anytype2, forKey: .anytype2)
+ try container.encodeIfPresent(anytype3, forKey: .anytype3)
+ }
+
+ public static func == (lhs: AdditionalPropertiesClass, rhs: AdditionalPropertiesClass) -> Bool {
+ lhs.mapString == rhs.mapString &&
+ lhs.mapNumber == rhs.mapNumber &&
+ lhs.mapInteger == rhs.mapInteger &&
+ lhs.mapBoolean == rhs.mapBoolean &&
+ lhs.mapArrayInteger == rhs.mapArrayInteger &&
+ lhs.mapArrayAnytype == rhs.mapArrayAnytype &&
+ lhs.mapMapString == rhs.mapMapString &&
+ lhs.mapMapAnytype == rhs.mapMapAnytype &&
+ lhs.anytype1 == rhs.anytype1 &&
+ lhs.anytype2 == rhs.anytype2 &&
+ lhs.anytype3 == rhs.anytype3
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(mapString?.hashValue)
+ hasher.combine(mapNumber?.hashValue)
+ hasher.combine(mapInteger?.hashValue)
+ hasher.combine(mapBoolean?.hashValue)
+ hasher.combine(mapArrayInteger?.hashValue)
+ hasher.combine(mapArrayAnytype?.hashValue)
+ hasher.combine(mapMapString?.hashValue)
+ hasher.combine(mapMapAnytype?.hashValue)
+ hasher.combine(anytype1?.hashValue)
+ hasher.combine(anytype2?.hashValue)
+ hasher.combine(anytype3?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesInteger.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesInteger.swift
new file mode 100644
index 00000000000..5a7c412958a
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesInteger.swift
@@ -0,0 +1,72 @@
+//
+// AdditionalPropertiesInteger.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class AdditionalPropertiesInteger: Content, Hashable {
+
+ public var name: String?
+
+ public init(name: String? = nil) {
+ self.name = name
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case name
+ }
+
+ public var additionalProperties: [String: Int] = [:]
+
+ public subscript(key: String) -> Int? {
+ get {
+ if let value = additionalProperties[key] {
+ return value
+ }
+ return nil
+ }
+
+ set {
+ additionalProperties[key] = newValue
+ }
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(name, forKey: .name)
+ var additionalPropertiesContainer = encoder.container(keyedBy: String.self)
+ try additionalPropertiesContainer.encodeMap(additionalProperties)
+ }
+
+ // Decodable protocol methods
+
+ public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+ name = try container.decodeIfPresent(String.self, forKey: .name)
+ var nonAdditionalPropertyKeys = Set()
+ nonAdditionalPropertyKeys.insert("name")
+ let additionalPropertiesContainer = try decoder.container(keyedBy: String.self)
+ additionalProperties = try additionalPropertiesContainer.decodeMap(Int.self, excludedKeys: nonAdditionalPropertyKeys)
+ }
+
+ public static func == (lhs: AdditionalPropertiesInteger, rhs: AdditionalPropertiesInteger) -> Bool {
+ lhs.name == rhs.name
+ && lhs.additionalProperties == rhs.additionalProperties
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(name?.hashValue)
+ hasher.combine(additionalProperties.hashValue)
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesNumber.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesNumber.swift
new file mode 100644
index 00000000000..259b29dae57
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesNumber.swift
@@ -0,0 +1,72 @@
+//
+// AdditionalPropertiesNumber.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class AdditionalPropertiesNumber: Content, Hashable {
+
+ public var name: String?
+
+ public init(name: String? = nil) {
+ self.name = name
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case name
+ }
+
+ public var additionalProperties: [String: Double] = [:]
+
+ public subscript(key: String) -> Double? {
+ get {
+ if let value = additionalProperties[key] {
+ return value
+ }
+ return nil
+ }
+
+ set {
+ additionalProperties[key] = newValue
+ }
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(name, forKey: .name)
+ var additionalPropertiesContainer = encoder.container(keyedBy: String.self)
+ try additionalPropertiesContainer.encodeMap(additionalProperties)
+ }
+
+ // Decodable protocol methods
+
+ public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+ name = try container.decodeIfPresent(String.self, forKey: .name)
+ var nonAdditionalPropertyKeys = Set()
+ nonAdditionalPropertyKeys.insert("name")
+ let additionalPropertiesContainer = try decoder.container(keyedBy: String.self)
+ additionalProperties = try additionalPropertiesContainer.decodeMap(Double.self, excludedKeys: nonAdditionalPropertyKeys)
+ }
+
+ public static func == (lhs: AdditionalPropertiesNumber, rhs: AdditionalPropertiesNumber) -> Bool {
+ lhs.name == rhs.name
+ && lhs.additionalProperties == rhs.additionalProperties
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(name?.hashValue)
+ hasher.combine(additionalProperties.hashValue)
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesObject.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesObject.swift
new file mode 100644
index 00000000000..c8c0052c00c
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesObject.swift
@@ -0,0 +1,72 @@
+//
+// AdditionalPropertiesObject.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class AdditionalPropertiesObject: Content, Hashable {
+
+ public var name: String?
+
+ public init(name: String? = nil) {
+ self.name = name
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case name
+ }
+
+ public var additionalProperties: [String: [String: AnyCodable]] = [:]
+
+ public subscript(key: String) -> [String: AnyCodable]? {
+ get {
+ if let value = additionalProperties[key] {
+ return value
+ }
+ return nil
+ }
+
+ set {
+ additionalProperties[key] = newValue
+ }
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(name, forKey: .name)
+ var additionalPropertiesContainer = encoder.container(keyedBy: String.self)
+ try additionalPropertiesContainer.encodeMap(additionalProperties)
+ }
+
+ // Decodable protocol methods
+
+ public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+ name = try container.decodeIfPresent(String.self, forKey: .name)
+ var nonAdditionalPropertyKeys = Set()
+ nonAdditionalPropertyKeys.insert("name")
+ let additionalPropertiesContainer = try decoder.container(keyedBy: String.self)
+ additionalProperties = try additionalPropertiesContainer.decodeMap([String: AnyCodable].self, excludedKeys: nonAdditionalPropertyKeys)
+ }
+
+ public static func == (lhs: AdditionalPropertiesObject, rhs: AdditionalPropertiesObject) -> Bool {
+ lhs.name == rhs.name
+ && lhs.additionalProperties == rhs.additionalProperties
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(name?.hashValue)
+ hasher.combine(additionalProperties.hashValue)
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesString.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesString.swift
new file mode 100644
index 00000000000..13456e89d1b
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/AdditionalPropertiesString.swift
@@ -0,0 +1,72 @@
+//
+// AdditionalPropertiesString.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class AdditionalPropertiesString: Content, Hashable {
+
+ public var name: String?
+
+ public init(name: String? = nil) {
+ self.name = name
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case name
+ }
+
+ public var additionalProperties: [String: String] = [:]
+
+ public subscript(key: String) -> String? {
+ get {
+ if let value = additionalProperties[key] {
+ return value
+ }
+ return nil
+ }
+
+ set {
+ additionalProperties[key] = newValue
+ }
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(name, forKey: .name)
+ var additionalPropertiesContainer = encoder.container(keyedBy: String.self)
+ try additionalPropertiesContainer.encodeMap(additionalProperties)
+ }
+
+ // Decodable protocol methods
+
+ public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+ name = try container.decodeIfPresent(String.self, forKey: .name)
+ var nonAdditionalPropertyKeys = Set()
+ nonAdditionalPropertyKeys.insert("name")
+ let additionalPropertiesContainer = try decoder.container(keyedBy: String.self)
+ additionalProperties = try additionalPropertiesContainer.decodeMap(String.self, excludedKeys: nonAdditionalPropertyKeys)
+ }
+
+ public static func == (lhs: AdditionalPropertiesString, rhs: AdditionalPropertiesString) -> Bool {
+ lhs.name == rhs.name
+ && lhs.additionalProperties == rhs.additionalProperties
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(name?.hashValue)
+ hasher.combine(additionalProperties.hashValue)
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Animal.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Animal.swift
new file mode 100644
index 00000000000..344d5b13b1f
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Animal.swift
@@ -0,0 +1,49 @@
+//
+// Animal.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class Animal: Content, Hashable {
+
+ public var className: String
+ public var color: String? = "red"
+
+ public init(className: String, color: String? = "red") {
+ self.className = className
+ self.color = color
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case className
+ case color
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encode(className, forKey: .className)
+ try container.encodeIfPresent(color, forKey: .color)
+ }
+
+ public static func == (lhs: Animal, rhs: Animal) -> Bool {
+ lhs.className == rhs.className &&
+ lhs.color == rhs.color
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(className.hashValue)
+ hasher.combine(color?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/AnimalFarm.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/AnimalFarm.swift
new file mode 100644
index 00000000000..1b3a286f089
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/AnimalFarm.swift
@@ -0,0 +1,14 @@
+//
+// AnimalFarm.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public typealias AnimalFarm = [Animal]
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/ApiResponse.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/ApiResponse.swift
new file mode 100644
index 00000000000..4323130668e
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/ApiResponse.swift
@@ -0,0 +1,55 @@
+//
+// ApiResponse.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class ApiResponse: Content, Hashable {
+
+ public var code: Int?
+ public var type: String?
+ public var message: String?
+
+ public init(code: Int? = nil, type: String? = nil, message: String? = nil) {
+ self.code = code
+ self.type = type
+ self.message = message
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case code
+ case type
+ case message
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(code, forKey: .code)
+ try container.encodeIfPresent(type, forKey: .type)
+ try container.encodeIfPresent(message, forKey: .message)
+ }
+
+ public static func == (lhs: ApiResponse, rhs: ApiResponse) -> Bool {
+ lhs.code == rhs.code &&
+ lhs.type == rhs.type &&
+ lhs.message == rhs.message
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(code?.hashValue)
+ hasher.combine(type?.hashValue)
+ hasher.combine(message?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/ArrayOfArrayOfNumberOnly.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/ArrayOfArrayOfNumberOnly.swift
new file mode 100644
index 00000000000..cd3669774bf
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/ArrayOfArrayOfNumberOnly.swift
@@ -0,0 +1,43 @@
+//
+// ArrayOfArrayOfNumberOnly.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class ArrayOfArrayOfNumberOnly: Content, Hashable {
+
+ public var arrayArrayNumber: [[Double]]?
+
+ public init(arrayArrayNumber: [[Double]]? = nil) {
+ self.arrayArrayNumber = arrayArrayNumber
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case arrayArrayNumber = "ArrayArrayNumber"
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(arrayArrayNumber, forKey: .arrayArrayNumber)
+ }
+
+ public static func == (lhs: ArrayOfArrayOfNumberOnly, rhs: ArrayOfArrayOfNumberOnly) -> Bool {
+ lhs.arrayArrayNumber == rhs.arrayArrayNumber
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(arrayArrayNumber?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/ArrayOfNumberOnly.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/ArrayOfNumberOnly.swift
new file mode 100644
index 00000000000..e222fdd2adb
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/ArrayOfNumberOnly.swift
@@ -0,0 +1,43 @@
+//
+// ArrayOfNumberOnly.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class ArrayOfNumberOnly: Content, Hashable {
+
+ public var arrayNumber: [Double]?
+
+ public init(arrayNumber: [Double]? = nil) {
+ self.arrayNumber = arrayNumber
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case arrayNumber = "ArrayNumber"
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(arrayNumber, forKey: .arrayNumber)
+ }
+
+ public static func == (lhs: ArrayOfNumberOnly, rhs: ArrayOfNumberOnly) -> Bool {
+ lhs.arrayNumber == rhs.arrayNumber
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(arrayNumber?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/ArrayTest.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/ArrayTest.swift
new file mode 100644
index 00000000000..87d4e0b8239
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/ArrayTest.swift
@@ -0,0 +1,55 @@
+//
+// ArrayTest.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class ArrayTest: Content, Hashable {
+
+ public var arrayOfString: [String]?
+ public var arrayArrayOfInteger: [[Int64]]?
+ public var arrayArrayOfModel: [[ReadOnlyFirst]]?
+
+ public init(arrayOfString: [String]? = nil, arrayArrayOfInteger: [[Int64]]? = nil, arrayArrayOfModel: [[ReadOnlyFirst]]? = nil) {
+ self.arrayOfString = arrayOfString
+ self.arrayArrayOfInteger = arrayArrayOfInteger
+ self.arrayArrayOfModel = arrayArrayOfModel
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case arrayOfString = "array_of_string"
+ case arrayArrayOfInteger = "array_array_of_integer"
+ case arrayArrayOfModel = "array_array_of_model"
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(arrayOfString, forKey: .arrayOfString)
+ try container.encodeIfPresent(arrayArrayOfInteger, forKey: .arrayArrayOfInteger)
+ try container.encodeIfPresent(arrayArrayOfModel, forKey: .arrayArrayOfModel)
+ }
+
+ public static func == (lhs: ArrayTest, rhs: ArrayTest) -> Bool {
+ lhs.arrayOfString == rhs.arrayOfString &&
+ lhs.arrayArrayOfInteger == rhs.arrayArrayOfInteger &&
+ lhs.arrayArrayOfModel == rhs.arrayArrayOfModel
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(arrayOfString?.hashValue)
+ hasher.combine(arrayArrayOfInteger?.hashValue)
+ hasher.combine(arrayArrayOfModel?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/BigCat.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/BigCat.swift
new file mode 100644
index 00000000000..f68dcec1d65
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/BigCat.swift
@@ -0,0 +1,49 @@
+//
+// BigCat.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class BigCat: Content, Hashable {
+
+ public enum Kind: String, Content, Hashable, CaseIterable {
+ case lions = "lions"
+ case tigers = "tigers"
+ case leopards = "leopards"
+ case jaguars = "jaguars"
+ }
+ public var kind: Kind?
+
+ public init(kind: Kind? = nil) {
+ self.kind = kind
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case kind
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(kind, forKey: .kind)
+ }
+
+ public static func == (lhs: BigCat, rhs: BigCat) -> Bool {
+ lhs.kind == rhs.kind
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(kind?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/BigCatAllOf.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/BigCatAllOf.swift
new file mode 100644
index 00000000000..0945e87ed9c
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/BigCatAllOf.swift
@@ -0,0 +1,49 @@
+//
+// BigCatAllOf.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class BigCatAllOf: Content, Hashable {
+
+ public enum Kind: String, Content, Hashable, CaseIterable {
+ case lions = "lions"
+ case tigers = "tigers"
+ case leopards = "leopards"
+ case jaguars = "jaguars"
+ }
+ public var kind: Kind?
+
+ public init(kind: Kind? = nil) {
+ self.kind = kind
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case kind
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(kind, forKey: .kind)
+ }
+
+ public static func == (lhs: BigCatAllOf, rhs: BigCatAllOf) -> Bool {
+ lhs.kind == rhs.kind
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(kind?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Capitalization.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Capitalization.swift
new file mode 100644
index 00000000000..3cc1d9d4cf3
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Capitalization.swift
@@ -0,0 +1,74 @@
+//
+// Capitalization.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class Capitalization: Content, Hashable {
+
+ public var smallCamel: String?
+ public var capitalCamel: String?
+ public var smallSnake: String?
+ public var capitalSnake: String?
+ public var sCAETHFlowPoints: String?
+ /** Name of the pet */
+ public var ATT_NAME: String?
+
+ public init(smallCamel: String? = nil, capitalCamel: String? = nil, smallSnake: String? = nil, capitalSnake: String? = nil, sCAETHFlowPoints: String? = nil, ATT_NAME: String? = nil) {
+ self.smallCamel = smallCamel
+ self.capitalCamel = capitalCamel
+ self.smallSnake = smallSnake
+ self.capitalSnake = capitalSnake
+ self.sCAETHFlowPoints = sCAETHFlowPoints
+ self.ATT_NAME = ATT_NAME
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case smallCamel
+ case capitalCamel = "CapitalCamel"
+ case smallSnake = "small_Snake"
+ case capitalSnake = "Capital_Snake"
+ case sCAETHFlowPoints = "SCA_ETH_Flow_Points"
+ case ATT_NAME
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(smallCamel, forKey: .smallCamel)
+ try container.encodeIfPresent(capitalCamel, forKey: .capitalCamel)
+ try container.encodeIfPresent(smallSnake, forKey: .smallSnake)
+ try container.encodeIfPresent(capitalSnake, forKey: .capitalSnake)
+ try container.encodeIfPresent(sCAETHFlowPoints, forKey: .sCAETHFlowPoints)
+ try container.encodeIfPresent(ATT_NAME, forKey: .ATT_NAME)
+ }
+
+ public static func == (lhs: Capitalization, rhs: Capitalization) -> Bool {
+ lhs.smallCamel == rhs.smallCamel &&
+ lhs.capitalCamel == rhs.capitalCamel &&
+ lhs.smallSnake == rhs.smallSnake &&
+ lhs.capitalSnake == rhs.capitalSnake &&
+ lhs.sCAETHFlowPoints == rhs.sCAETHFlowPoints &&
+ lhs.ATT_NAME == rhs.ATT_NAME
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(smallCamel?.hashValue)
+ hasher.combine(capitalCamel?.hashValue)
+ hasher.combine(smallSnake?.hashValue)
+ hasher.combine(capitalSnake?.hashValue)
+ hasher.combine(sCAETHFlowPoints?.hashValue)
+ hasher.combine(ATT_NAME?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Cat.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Cat.swift
new file mode 100644
index 00000000000..6c0d6f303c5
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Cat.swift
@@ -0,0 +1,55 @@
+//
+// Cat.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class Cat: Content, Hashable {
+
+ public var className: String
+ public var color: String? = "red"
+ public var declawed: Bool?
+
+ public init(className: String, color: String? = "red", declawed: Bool? = nil) {
+ self.className = className
+ self.color = color
+ self.declawed = declawed
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case className
+ case color
+ case declawed
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encode(className, forKey: .className)
+ try container.encodeIfPresent(color, forKey: .color)
+ try container.encodeIfPresent(declawed, forKey: .declawed)
+ }
+
+ public static func == (lhs: Cat, rhs: Cat) -> Bool {
+ lhs.className == rhs.className &&
+ lhs.color == rhs.color &&
+ lhs.declawed == rhs.declawed
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(className.hashValue)
+ hasher.combine(color?.hashValue)
+ hasher.combine(declawed?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/CatAllOf.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/CatAllOf.swift
new file mode 100644
index 00000000000..2cfbd9fd02d
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/CatAllOf.swift
@@ -0,0 +1,43 @@
+//
+// CatAllOf.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class CatAllOf: Content, Hashable {
+
+ public var declawed: Bool?
+
+ public init(declawed: Bool? = nil) {
+ self.declawed = declawed
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case declawed
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(declawed, forKey: .declawed)
+ }
+
+ public static func == (lhs: CatAllOf, rhs: CatAllOf) -> Bool {
+ lhs.declawed == rhs.declawed
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(declawed?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Category.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Category.swift
new file mode 100644
index 00000000000..ca2a487b438
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Category.swift
@@ -0,0 +1,49 @@
+//
+// Category.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class Category: Content, Hashable {
+
+ public var id: Int64?
+ public var name: String = "default-name"
+
+ public init(id: Int64? = nil, name: String = "default-name") {
+ self.id = id
+ self.name = name
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case id
+ case name
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(id, forKey: .id)
+ try container.encode(name, forKey: .name)
+ }
+
+ public static func == (lhs: Category, rhs: Category) -> Bool {
+ lhs.id == rhs.id &&
+ lhs.name == rhs.name
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(id?.hashValue)
+ hasher.combine(name.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/ClassModel.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/ClassModel.swift
new file mode 100644
index 00000000000..a50bdf9ffd1
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/ClassModel.swift
@@ -0,0 +1,44 @@
+//
+// ClassModel.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+/** Model for testing model with \"_class\" property */
+public final class ClassModel: Content, Hashable {
+
+ public var `class`: String?
+
+ public init(`class`: String? = nil) {
+ self.`class` = `class`
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case `class` = "_class"
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(`class`, forKey: .`class`)
+ }
+
+ public static func == (lhs: ClassModel, rhs: ClassModel) -> Bool {
+ lhs.`class` == rhs.`class`
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(`class`?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Client.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Client.swift
new file mode 100644
index 00000000000..1ac630b90e9
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Client.swift
@@ -0,0 +1,43 @@
+//
+// Client.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class Client: Content, Hashable {
+
+ public var client: String?
+
+ public init(client: String? = nil) {
+ self.client = client
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case client
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(client, forKey: .client)
+ }
+
+ public static func == (lhs: Client, rhs: Client) -> Bool {
+ lhs.client == rhs.client
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(client?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Dog.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Dog.swift
new file mode 100644
index 00000000000..71a8002b754
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Dog.swift
@@ -0,0 +1,55 @@
+//
+// Dog.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class Dog: Content, Hashable {
+
+ public var className: String
+ public var color: String? = "red"
+ public var breed: String?
+
+ public init(className: String, color: String? = "red", breed: String? = nil) {
+ self.className = className
+ self.color = color
+ self.breed = breed
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case className
+ case color
+ case breed
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encode(className, forKey: .className)
+ try container.encodeIfPresent(color, forKey: .color)
+ try container.encodeIfPresent(breed, forKey: .breed)
+ }
+
+ public static func == (lhs: Dog, rhs: Dog) -> Bool {
+ lhs.className == rhs.className &&
+ lhs.color == rhs.color &&
+ lhs.breed == rhs.breed
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(className.hashValue)
+ hasher.combine(color?.hashValue)
+ hasher.combine(breed?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/DogAllOf.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/DogAllOf.swift
new file mode 100644
index 00000000000..69352b02b13
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/DogAllOf.swift
@@ -0,0 +1,43 @@
+//
+// DogAllOf.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class DogAllOf: Content, Hashable {
+
+ public var breed: String?
+
+ public init(breed: String? = nil) {
+ self.breed = breed
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case breed
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(breed, forKey: .breed)
+ }
+
+ public static func == (lhs: DogAllOf, rhs: DogAllOf) -> Bool {
+ lhs.breed == rhs.breed
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(breed?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/EnumArrays.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/EnumArrays.swift
new file mode 100644
index 00000000000..0b2b8c32844
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/EnumArrays.swift
@@ -0,0 +1,57 @@
+//
+// EnumArrays.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class EnumArrays: Content, Hashable {
+
+ public enum JustSymbol: String, Content, Hashable, CaseIterable {
+ case greaterThanOrEqualTo = ">="
+ case dollar = "$"
+ }
+ public enum ArrayEnum: String, Content, Hashable, CaseIterable {
+ case fish = "fish"
+ case crab = "crab"
+ }
+ public var justSymbol: JustSymbol?
+ public var arrayEnum: [ArrayEnum]?
+
+ public init(justSymbol: JustSymbol? = nil, arrayEnum: [ArrayEnum]? = nil) {
+ self.justSymbol = justSymbol
+ self.arrayEnum = arrayEnum
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case justSymbol = "just_symbol"
+ case arrayEnum = "array_enum"
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(justSymbol, forKey: .justSymbol)
+ try container.encodeIfPresent(arrayEnum, forKey: .arrayEnum)
+ }
+
+ public static func == (lhs: EnumArrays, rhs: EnumArrays) -> Bool {
+ lhs.justSymbol == rhs.justSymbol &&
+ lhs.arrayEnum == rhs.arrayEnum
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(justSymbol?.hashValue)
+ hasher.combine(arrayEnum?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/EnumClass.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/EnumClass.swift
new file mode 100644
index 00000000000..26c121d1543
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/EnumClass.swift
@@ -0,0 +1,18 @@
+//
+// EnumClass.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public enum EnumClass: String, Content, Hashable, CaseIterable {
+ case abc = "_abc"
+ case efg = "-efg"
+ case xyz = "(xyz)"
+}
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/EnumTest.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/EnumTest.swift
new file mode 100644
index 00000000000..044d121b9f3
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/EnumTest.swift
@@ -0,0 +1,85 @@
+//
+// EnumTest.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class EnumTest: Content, Hashable {
+
+ public enum EnumString: String, Content, Hashable, CaseIterable {
+ case upper = "UPPER"
+ case lower = "lower"
+ case empty = ""
+ }
+ public enum EnumStringRequired: String, Content, Hashable, CaseIterable {
+ case upper = "UPPER"
+ case lower = "lower"
+ case empty = ""
+ }
+ public enum EnumInteger: Int, Content, Hashable, CaseIterable {
+ case _1 = 1
+ case number1 = -1
+ }
+ public enum EnumNumber: Double, Content, Hashable, CaseIterable {
+ case _11 = 1.1
+ case number12 = -1.2
+ }
+ public var enumString: EnumString?
+ public var enumStringRequired: EnumStringRequired
+ public var enumInteger: EnumInteger?
+ public var enumNumber: EnumNumber?
+ public var outerEnum: OuterEnum?
+
+ public init(enumString: EnumString? = nil, enumStringRequired: EnumStringRequired, enumInteger: EnumInteger? = nil, enumNumber: EnumNumber? = nil, outerEnum: OuterEnum? = nil) {
+ self.enumString = enumString
+ self.enumStringRequired = enumStringRequired
+ self.enumInteger = enumInteger
+ self.enumNumber = enumNumber
+ self.outerEnum = outerEnum
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case enumString = "enum_string"
+ case enumStringRequired = "enum_string_required"
+ case enumInteger = "enum_integer"
+ case enumNumber = "enum_number"
+ case outerEnum
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(enumString, forKey: .enumString)
+ try container.encode(enumStringRequired, forKey: .enumStringRequired)
+ try container.encodeIfPresent(enumInteger, forKey: .enumInteger)
+ try container.encodeIfPresent(enumNumber, forKey: .enumNumber)
+ try container.encodeIfPresent(outerEnum, forKey: .outerEnum)
+ }
+
+ public static func == (lhs: EnumTest, rhs: EnumTest) -> Bool {
+ lhs.enumString == rhs.enumString &&
+ lhs.enumStringRequired == rhs.enumStringRequired &&
+ lhs.enumInteger == rhs.enumInteger &&
+ lhs.enumNumber == rhs.enumNumber &&
+ lhs.outerEnum == rhs.outerEnum
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(enumString?.hashValue)
+ hasher.combine(enumStringRequired.hashValue)
+ hasher.combine(enumInteger?.hashValue)
+ hasher.combine(enumNumber?.hashValue)
+ hasher.combine(outerEnum?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/File.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/File.swift
new file mode 100644
index 00000000000..d7505802943
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/File.swift
@@ -0,0 +1,45 @@
+//
+// File.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+/** Must be named `File` for test. */
+public final class File: Content, Hashable {
+
+ /** Test capitalization */
+ public var sourceURI: String?
+
+ public init(sourceURI: String? = nil) {
+ self.sourceURI = sourceURI
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case sourceURI
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(sourceURI, forKey: .sourceURI)
+ }
+
+ public static func == (lhs: File, rhs: File) -> Bool {
+ lhs.sourceURI == rhs.sourceURI
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(sourceURI?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/FileSchemaTestClass.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/FileSchemaTestClass.swift
new file mode 100644
index 00000000000..c2426485fe6
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/FileSchemaTestClass.swift
@@ -0,0 +1,49 @@
+//
+// FileSchemaTestClass.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class FileSchemaTestClass: Content, Hashable {
+
+ public var file: File?
+ public var files: [File]?
+
+ public init(file: File? = nil, files: [File]? = nil) {
+ self.file = file
+ self.files = files
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case file
+ case files
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(file, forKey: .file)
+ try container.encodeIfPresent(files, forKey: .files)
+ }
+
+ public static func == (lhs: FileSchemaTestClass, rhs: FileSchemaTestClass) -> Bool {
+ lhs.file == rhs.file &&
+ lhs.files == rhs.files
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(file?.hashValue)
+ hasher.combine(files?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/FormatTest.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/FormatTest.swift
new file mode 100644
index 00000000000..dfdf6ae588c
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/FormatTest.swift
@@ -0,0 +1,121 @@
+//
+// FormatTest.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class FormatTest: Content, Hashable {
+
+ public var integer: Int?
+ public var int32: Int?
+ public var int64: Int64?
+ public var number: Double
+ public var float: Float?
+ public var double: Double?
+ public var string: String?
+ public var byte: Data
+ public var binary: Data?
+ public var date: Date
+ public var dateTime: Date?
+ public var uuid: UUID?
+ public var password: String
+ public var bigDecimal: Decimal?
+
+ public init(integer: Int? = nil, int32: Int? = nil, int64: Int64? = nil, number: Double, float: Float? = nil, double: Double? = nil, string: String? = nil, byte: Data, binary: Data? = nil, date: Date, dateTime: Date? = nil, uuid: UUID? = nil, password: String, bigDecimal: Decimal? = nil) {
+ self.integer = integer
+ self.int32 = int32
+ self.int64 = int64
+ self.number = number
+ self.float = float
+ self.double = double
+ self.string = string
+ self.byte = byte
+ self.binary = binary
+ self.date = date
+ self.dateTime = dateTime
+ self.uuid = uuid
+ self.password = password
+ self.bigDecimal = bigDecimal
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case integer
+ case int32
+ case int64
+ case number
+ case float
+ case double
+ case string
+ case byte
+ case binary
+ case date
+ case dateTime
+ case uuid
+ case password
+ case bigDecimal = "BigDecimal"
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(integer, forKey: .integer)
+ try container.encodeIfPresent(int32, forKey: .int32)
+ try container.encodeIfPresent(int64, forKey: .int64)
+ try container.encode(number, forKey: .number)
+ try container.encodeIfPresent(float, forKey: .float)
+ try container.encodeIfPresent(double, forKey: .double)
+ try container.encodeIfPresent(string, forKey: .string)
+ try container.encode(byte, forKey: .byte)
+ try container.encodeIfPresent(binary, forKey: .binary)
+ try container.encode(date, forKey: .date)
+ try container.encodeIfPresent(dateTime, forKey: .dateTime)
+ try container.encodeIfPresent(uuid, forKey: .uuid)
+ try container.encode(password, forKey: .password)
+ try container.encodeIfPresent(bigDecimal, forKey: .bigDecimal)
+ }
+
+ public static func == (lhs: FormatTest, rhs: FormatTest) -> Bool {
+ lhs.integer == rhs.integer &&
+ lhs.int32 == rhs.int32 &&
+ lhs.int64 == rhs.int64 &&
+ lhs.number == rhs.number &&
+ lhs.float == rhs.float &&
+ lhs.double == rhs.double &&
+ lhs.string == rhs.string &&
+ lhs.byte == rhs.byte &&
+ lhs.binary == rhs.binary &&
+ lhs.date == rhs.date &&
+ lhs.dateTime == rhs.dateTime &&
+ lhs.uuid == rhs.uuid &&
+ lhs.password == rhs.password &&
+ lhs.bigDecimal == rhs.bigDecimal
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(integer?.hashValue)
+ hasher.combine(int32?.hashValue)
+ hasher.combine(int64?.hashValue)
+ hasher.combine(number.hashValue)
+ hasher.combine(float?.hashValue)
+ hasher.combine(double?.hashValue)
+ hasher.combine(string?.hashValue)
+ hasher.combine(byte.hashValue)
+ hasher.combine(binary?.hashValue)
+ hasher.combine(date.hashValue)
+ hasher.combine(dateTime?.hashValue)
+ hasher.combine(uuid?.hashValue)
+ hasher.combine(password.hashValue)
+ hasher.combine(bigDecimal?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/HasOnlyReadOnly.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/HasOnlyReadOnly.swift
new file mode 100644
index 00000000000..fd0e1532b04
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/HasOnlyReadOnly.swift
@@ -0,0 +1,49 @@
+//
+// HasOnlyReadOnly.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class HasOnlyReadOnly: Content, Hashable {
+
+ public var bar: String?
+ public var foo: String?
+
+ public init(bar: String? = nil, foo: String? = nil) {
+ self.bar = bar
+ self.foo = foo
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case bar
+ case foo
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(bar, forKey: .bar)
+ try container.encodeIfPresent(foo, forKey: .foo)
+ }
+
+ public static func == (lhs: HasOnlyReadOnly, rhs: HasOnlyReadOnly) -> Bool {
+ lhs.bar == rhs.bar &&
+ lhs.foo == rhs.foo
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(bar?.hashValue)
+ hasher.combine(foo?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/List.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/List.swift
new file mode 100644
index 00000000000..fd15761ab8a
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/List.swift
@@ -0,0 +1,43 @@
+//
+// List.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class List: Content, Hashable {
+
+ public var _123list: String?
+
+ public init(_123list: String? = nil) {
+ self._123list = _123list
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case _123list = "123-list"
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(_123list, forKey: ._123list)
+ }
+
+ public static func == (lhs: List, rhs: List) -> Bool {
+ lhs._123list == rhs._123list
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(_123list?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/MapTest.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/MapTest.swift
new file mode 100644
index 00000000000..2726af8cb65
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/MapTest.swift
@@ -0,0 +1,65 @@
+//
+// MapTest.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class MapTest: Content, Hashable {
+
+ public enum MapOfEnumString: String, Content, Hashable, CaseIterable {
+ case upper = "UPPER"
+ case lower = "lower"
+ }
+ public var mapMapOfString: [String: [String: String]]?
+ public var mapOfEnumString: [String: String]?
+ public var directMap: [String: Bool]?
+ public var indirectMap: StringBooleanMap?
+
+ public init(mapMapOfString: [String: [String: String]]? = nil, mapOfEnumString: [String: String]? = nil, directMap: [String: Bool]? = nil, indirectMap: StringBooleanMap? = nil) {
+ self.mapMapOfString = mapMapOfString
+ self.mapOfEnumString = mapOfEnumString
+ self.directMap = directMap
+ self.indirectMap = indirectMap
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case mapMapOfString = "map_map_of_string"
+ case mapOfEnumString = "map_of_enum_string"
+ case directMap = "direct_map"
+ case indirectMap = "indirect_map"
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(mapMapOfString, forKey: .mapMapOfString)
+ try container.encodeIfPresent(mapOfEnumString, forKey: .mapOfEnumString)
+ try container.encodeIfPresent(directMap, forKey: .directMap)
+ try container.encodeIfPresent(indirectMap, forKey: .indirectMap)
+ }
+
+ public static func == (lhs: MapTest, rhs: MapTest) -> Bool {
+ lhs.mapMapOfString == rhs.mapMapOfString &&
+ lhs.mapOfEnumString == rhs.mapOfEnumString &&
+ lhs.directMap == rhs.directMap &&
+ lhs.indirectMap == rhs.indirectMap
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(mapMapOfString?.hashValue)
+ hasher.combine(mapOfEnumString?.hashValue)
+ hasher.combine(directMap?.hashValue)
+ hasher.combine(indirectMap?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/MixedPropertiesAndAdditionalPropertiesClass.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
new file mode 100644
index 00000000000..a98efe737a2
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
@@ -0,0 +1,55 @@
+//
+// MixedPropertiesAndAdditionalPropertiesClass.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class MixedPropertiesAndAdditionalPropertiesClass: Content, Hashable {
+
+ public var uuid: UUID?
+ public var dateTime: Date?
+ public var map: [String: Animal]?
+
+ public init(uuid: UUID? = nil, dateTime: Date? = nil, map: [String: Animal]? = nil) {
+ self.uuid = uuid
+ self.dateTime = dateTime
+ self.map = map
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case uuid
+ case dateTime
+ case map
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(uuid, forKey: .uuid)
+ try container.encodeIfPresent(dateTime, forKey: .dateTime)
+ try container.encodeIfPresent(map, forKey: .map)
+ }
+
+ public static func == (lhs: MixedPropertiesAndAdditionalPropertiesClass, rhs: MixedPropertiesAndAdditionalPropertiesClass) -> Bool {
+ lhs.uuid == rhs.uuid &&
+ lhs.dateTime == rhs.dateTime &&
+ lhs.map == rhs.map
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(uuid?.hashValue)
+ hasher.combine(dateTime?.hashValue)
+ hasher.combine(map?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Model200Response.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Model200Response.swift
new file mode 100644
index 00000000000..1c9c6154700
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Model200Response.swift
@@ -0,0 +1,50 @@
+//
+// Model200Response.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+/** Model for testing model name starting with number */
+public final class Model200Response: Content, Hashable {
+
+ public var name: Int?
+ public var `class`: String?
+
+ public init(name: Int? = nil, `class`: String? = nil) {
+ self.name = name
+ self.`class` = `class`
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case name
+ case `class` = "class"
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(name, forKey: .name)
+ try container.encodeIfPresent(`class`, forKey: .`class`)
+ }
+
+ public static func == (lhs: Model200Response, rhs: Model200Response) -> Bool {
+ lhs.name == rhs.name &&
+ lhs.`class` == rhs.`class`
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(name?.hashValue)
+ hasher.combine(`class`?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Name.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Name.swift
new file mode 100644
index 00000000000..86a8d6bbe83
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Name.swift
@@ -0,0 +1,62 @@
+//
+// Name.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+/** Model for testing model name same as property name */
+public final class Name: Content, Hashable {
+
+ public var name: Int
+ public var snakeCase: Int?
+ public var property: String?
+ public var _123number: Int?
+
+ public init(name: Int, snakeCase: Int? = nil, property: String? = nil, _123number: Int? = nil) {
+ self.name = name
+ self.snakeCase = snakeCase
+ self.property = property
+ self._123number = _123number
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case name
+ case snakeCase = "snake_case"
+ case property
+ case _123number = "123Number"
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encode(name, forKey: .name)
+ try container.encodeIfPresent(snakeCase, forKey: .snakeCase)
+ try container.encodeIfPresent(property, forKey: .property)
+ try container.encodeIfPresent(_123number, forKey: ._123number)
+ }
+
+ public static func == (lhs: Name, rhs: Name) -> Bool {
+ lhs.name == rhs.name &&
+ lhs.snakeCase == rhs.snakeCase &&
+ lhs.property == rhs.property &&
+ lhs._123number == rhs._123number
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(name.hashValue)
+ hasher.combine(snakeCase?.hashValue)
+ hasher.combine(property?.hashValue)
+ hasher.combine(_123number?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/NumberOnly.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/NumberOnly.swift
new file mode 100644
index 00000000000..b88d51e3b12
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/NumberOnly.swift
@@ -0,0 +1,43 @@
+//
+// NumberOnly.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class NumberOnly: Content, Hashable {
+
+ public var justNumber: Double?
+
+ public init(justNumber: Double? = nil) {
+ self.justNumber = justNumber
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case justNumber = "JustNumber"
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(justNumber, forKey: .justNumber)
+ }
+
+ public static func == (lhs: NumberOnly, rhs: NumberOnly) -> Bool {
+ lhs.justNumber == rhs.justNumber
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(justNumber?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Order.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Order.swift
new file mode 100644
index 00000000000..7a7b357cd46
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Order.swift
@@ -0,0 +1,79 @@
+//
+// Order.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class Order: Content, Hashable {
+
+ public enum Status: String, Content, Hashable, CaseIterable {
+ case placed = "placed"
+ case approved = "approved"
+ case delivered = "delivered"
+ }
+ public var id: Int64?
+ public var petId: Int64?
+ public var quantity: Int?
+ public var shipDate: Date?
+ /** Order Status */
+ public var status: Status?
+ public var complete: Bool? = false
+
+ public init(id: Int64? = nil, petId: Int64? = nil, quantity: Int? = nil, shipDate: Date? = nil, status: Status? = nil, complete: Bool? = false) {
+ self.id = id
+ self.petId = petId
+ self.quantity = quantity
+ self.shipDate = shipDate
+ self.status = status
+ self.complete = complete
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case id
+ case petId
+ case quantity
+ case shipDate
+ case status
+ case complete
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(id, forKey: .id)
+ try container.encodeIfPresent(petId, forKey: .petId)
+ try container.encodeIfPresent(quantity, forKey: .quantity)
+ try container.encodeIfPresent(shipDate, forKey: .shipDate)
+ try container.encodeIfPresent(status, forKey: .status)
+ try container.encodeIfPresent(complete, forKey: .complete)
+ }
+
+ public static func == (lhs: Order, rhs: Order) -> Bool {
+ lhs.id == rhs.id &&
+ lhs.petId == rhs.petId &&
+ lhs.quantity == rhs.quantity &&
+ lhs.shipDate == rhs.shipDate &&
+ lhs.status == rhs.status &&
+ lhs.complete == rhs.complete
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(id?.hashValue)
+ hasher.combine(petId?.hashValue)
+ hasher.combine(quantity?.hashValue)
+ hasher.combine(shipDate?.hashValue)
+ hasher.combine(status?.hashValue)
+ hasher.combine(complete?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/OuterComposite.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/OuterComposite.swift
new file mode 100644
index 00000000000..7fd8d9254a6
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/OuterComposite.swift
@@ -0,0 +1,55 @@
+//
+// OuterComposite.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class OuterComposite: Content, Hashable {
+
+ public var myNumber: Double?
+ public var myString: String?
+ public var myBoolean: Bool?
+
+ public init(myNumber: Double? = nil, myString: String? = nil, myBoolean: Bool? = nil) {
+ self.myNumber = myNumber
+ self.myString = myString
+ self.myBoolean = myBoolean
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case myNumber = "my_number"
+ case myString = "my_string"
+ case myBoolean = "my_boolean"
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(myNumber, forKey: .myNumber)
+ try container.encodeIfPresent(myString, forKey: .myString)
+ try container.encodeIfPresent(myBoolean, forKey: .myBoolean)
+ }
+
+ public static func == (lhs: OuterComposite, rhs: OuterComposite) -> Bool {
+ lhs.myNumber == rhs.myNumber &&
+ lhs.myString == rhs.myString &&
+ lhs.myBoolean == rhs.myBoolean
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(myNumber?.hashValue)
+ hasher.combine(myString?.hashValue)
+ hasher.combine(myBoolean?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/OuterEnum.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/OuterEnum.swift
new file mode 100644
index 00000000000..3ea0e73af37
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/OuterEnum.swift
@@ -0,0 +1,18 @@
+//
+// OuterEnum.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public enum OuterEnum: String, Content, Hashable, CaseIterable {
+ case placed = "placed"
+ case approved = "approved"
+ case delivered = "delivered"
+}
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Pet.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Pet.swift
new file mode 100644
index 00000000000..90481c91ece
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Pet.swift
@@ -0,0 +1,79 @@
+//
+// Pet.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class Pet: Content, Hashable {
+
+ public enum Status: String, Content, Hashable, CaseIterable {
+ case available = "available"
+ case pending = "pending"
+ case sold = "sold"
+ }
+ public var id: Int64?
+ public var category: Category?
+ public var name: String
+ public var photoUrls: Set
+ public var tags: [Tag]?
+ /** pet status in the store */
+ public var status: Status?
+
+ public init(id: Int64? = nil, category: Category? = nil, name: String, photoUrls: Set, tags: [Tag]? = nil, status: Status? = nil) {
+ self.id = id
+ self.category = category
+ self.name = name
+ self.photoUrls = photoUrls
+ self.tags = tags
+ self.status = status
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case id
+ case category
+ case name
+ case photoUrls
+ case tags
+ case status
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(id, forKey: .id)
+ try container.encodeIfPresent(category, forKey: .category)
+ try container.encode(name, forKey: .name)
+ try container.encode(photoUrls, forKey: .photoUrls)
+ try container.encodeIfPresent(tags, forKey: .tags)
+ try container.encodeIfPresent(status, forKey: .status)
+ }
+
+ public static func == (lhs: Pet, rhs: Pet) -> Bool {
+ lhs.id == rhs.id &&
+ lhs.category == rhs.category &&
+ lhs.name == rhs.name &&
+ lhs.photoUrls == rhs.photoUrls &&
+ lhs.tags == rhs.tags &&
+ lhs.status == rhs.status
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(id?.hashValue)
+ hasher.combine(category?.hashValue)
+ hasher.combine(name.hashValue)
+ hasher.combine(photoUrls.hashValue)
+ hasher.combine(tags?.hashValue)
+ hasher.combine(status?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/ReadOnlyFirst.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/ReadOnlyFirst.swift
new file mode 100644
index 00000000000..05402ceb4d7
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/ReadOnlyFirst.swift
@@ -0,0 +1,49 @@
+//
+// ReadOnlyFirst.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class ReadOnlyFirst: Content, Hashable {
+
+ public var bar: String?
+ public var baz: String?
+
+ public init(bar: String? = nil, baz: String? = nil) {
+ self.bar = bar
+ self.baz = baz
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case bar
+ case baz
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(bar, forKey: .bar)
+ try container.encodeIfPresent(baz, forKey: .baz)
+ }
+
+ public static func == (lhs: ReadOnlyFirst, rhs: ReadOnlyFirst) -> Bool {
+ lhs.bar == rhs.bar &&
+ lhs.baz == rhs.baz
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(bar?.hashValue)
+ hasher.combine(baz?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Return.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Return.swift
new file mode 100644
index 00000000000..05e4d06219a
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Return.swift
@@ -0,0 +1,44 @@
+//
+// Return.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+/** Model for testing reserved words */
+public final class Return: Content, Hashable {
+
+ public var `return`: Int?
+
+ public init(`return`: Int? = nil) {
+ self.`return` = `return`
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case `return` = "return"
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(`return`, forKey: .`return`)
+ }
+
+ public static func == (lhs: Return, rhs: Return) -> Bool {
+ lhs.`return` == rhs.`return`
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(`return`?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/SpecialModelName.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/SpecialModelName.swift
new file mode 100644
index 00000000000..8ad4aa608ea
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/SpecialModelName.swift
@@ -0,0 +1,43 @@
+//
+// SpecialModelName.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class SpecialModelName: Content, Hashable {
+
+ public var specialPropertyName: Int64?
+
+ public init(specialPropertyName: Int64? = nil) {
+ self.specialPropertyName = specialPropertyName
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case specialPropertyName = "$special[property.name]"
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(specialPropertyName, forKey: .specialPropertyName)
+ }
+
+ public static func == (lhs: SpecialModelName, rhs: SpecialModelName) -> Bool {
+ lhs.specialPropertyName == rhs.specialPropertyName
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(specialPropertyName?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/StringBooleanMap.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/StringBooleanMap.swift
new file mode 100644
index 00000000000..59d76476f8b
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/StringBooleanMap.swift
@@ -0,0 +1,61 @@
+//
+// StringBooleanMap.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class StringBooleanMap: Content, Hashable {
+
+
+ public enum CodingKeys: CodingKey, CaseIterable {
+ }
+
+ public var additionalProperties: [String: Bool] = [:]
+
+ public subscript(key: String) -> Bool? {
+ get {
+ if let value = additionalProperties[key] {
+ return value
+ }
+ return nil
+ }
+
+ set {
+ additionalProperties[key] = newValue
+ }
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ var additionalPropertiesContainer = encoder.container(keyedBy: String.self)
+ try additionalPropertiesContainer.encodeMap(additionalProperties)
+ }
+
+ // Decodable protocol methods
+
+ public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+ var nonAdditionalPropertyKeys = Set()
+ let additionalPropertiesContainer = try decoder.container(keyedBy: String.self)
+ additionalProperties = try additionalPropertiesContainer.decodeMap(Bool.self, excludedKeys: nonAdditionalPropertyKeys)
+ }
+
+ public static func == (lhs: StringBooleanMap, rhs: StringBooleanMap) -> Bool {
+ lhs.additionalProperties == rhs.additionalProperties
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(additionalProperties.hashValue)
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Tag.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Tag.swift
new file mode 100644
index 00000000000..b6ec1244243
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Tag.swift
@@ -0,0 +1,49 @@
+//
+// Tag.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class Tag: Content, Hashable {
+
+ public var id: Int64?
+ public var name: String?
+
+ public init(id: Int64? = nil, name: String? = nil) {
+ self.id = id
+ self.name = name
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case id
+ case name
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(id, forKey: .id)
+ try container.encodeIfPresent(name, forKey: .name)
+ }
+
+ public static func == (lhs: Tag, rhs: Tag) -> Bool {
+ lhs.id == rhs.id &&
+ lhs.name == rhs.name
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(id?.hashValue)
+ hasher.combine(name?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/TypeHolderDefault.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/TypeHolderDefault.swift
new file mode 100644
index 00000000000..f0d5c3ad313
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/TypeHolderDefault.swift
@@ -0,0 +1,67 @@
+//
+// TypeHolderDefault.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class TypeHolderDefault: Content, Hashable {
+
+ public var stringItem: String = "what"
+ public var numberItem: Double
+ public var integerItem: Int
+ public var boolItem: Bool = true
+ public var arrayItem: [Int]
+
+ public init(stringItem: String = "what", numberItem: Double, integerItem: Int, boolItem: Bool = true, arrayItem: [Int]) {
+ self.stringItem = stringItem
+ self.numberItem = numberItem
+ self.integerItem = integerItem
+ self.boolItem = boolItem
+ self.arrayItem = arrayItem
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case stringItem = "string_item"
+ case numberItem = "number_item"
+ case integerItem = "integer_item"
+ case boolItem = "bool_item"
+ case arrayItem = "array_item"
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encode(stringItem, forKey: .stringItem)
+ try container.encode(numberItem, forKey: .numberItem)
+ try container.encode(integerItem, forKey: .integerItem)
+ try container.encode(boolItem, forKey: .boolItem)
+ try container.encode(arrayItem, forKey: .arrayItem)
+ }
+
+ public static func == (lhs: TypeHolderDefault, rhs: TypeHolderDefault) -> Bool {
+ lhs.stringItem == rhs.stringItem &&
+ lhs.numberItem == rhs.numberItem &&
+ lhs.integerItem == rhs.integerItem &&
+ lhs.boolItem == rhs.boolItem &&
+ lhs.arrayItem == rhs.arrayItem
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(stringItem.hashValue)
+ hasher.combine(numberItem.hashValue)
+ hasher.combine(integerItem.hashValue)
+ hasher.combine(boolItem.hashValue)
+ hasher.combine(arrayItem.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/TypeHolderExample.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/TypeHolderExample.swift
new file mode 100644
index 00000000000..cdefaad66d2
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/TypeHolderExample.swift
@@ -0,0 +1,73 @@
+//
+// TypeHolderExample.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class TypeHolderExample: Content, Hashable {
+
+ public var stringItem: String
+ public var numberItem: Double
+ public var floatItem: Float
+ public var integerItem: Int
+ public var boolItem: Bool
+ public var arrayItem: [Int]
+
+ public init(stringItem: String, numberItem: Double, floatItem: Float, integerItem: Int, boolItem: Bool, arrayItem: [Int]) {
+ self.stringItem = stringItem
+ self.numberItem = numberItem
+ self.floatItem = floatItem
+ self.integerItem = integerItem
+ self.boolItem = boolItem
+ self.arrayItem = arrayItem
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case stringItem = "string_item"
+ case numberItem = "number_item"
+ case floatItem = "float_item"
+ case integerItem = "integer_item"
+ case boolItem = "bool_item"
+ case arrayItem = "array_item"
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encode(stringItem, forKey: .stringItem)
+ try container.encode(numberItem, forKey: .numberItem)
+ try container.encode(floatItem, forKey: .floatItem)
+ try container.encode(integerItem, forKey: .integerItem)
+ try container.encode(boolItem, forKey: .boolItem)
+ try container.encode(arrayItem, forKey: .arrayItem)
+ }
+
+ public static func == (lhs: TypeHolderExample, rhs: TypeHolderExample) -> Bool {
+ lhs.stringItem == rhs.stringItem &&
+ lhs.numberItem == rhs.numberItem &&
+ lhs.floatItem == rhs.floatItem &&
+ lhs.integerItem == rhs.integerItem &&
+ lhs.boolItem == rhs.boolItem &&
+ lhs.arrayItem == rhs.arrayItem
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(stringItem.hashValue)
+ hasher.combine(numberItem.hashValue)
+ hasher.combine(floatItem.hashValue)
+ hasher.combine(integerItem.hashValue)
+ hasher.combine(boolItem.hashValue)
+ hasher.combine(arrayItem.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/User.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/User.swift
new file mode 100644
index 00000000000..47e3f6fbcb3
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/User.swift
@@ -0,0 +1,86 @@
+//
+// User.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class User: Content, Hashable {
+
+ public var id: Int64?
+ public var username: String?
+ public var firstName: String?
+ public var lastName: String?
+ public var email: String?
+ public var password: String?
+ public var phone: String?
+ /** User Status */
+ public var userStatus: Int?
+
+ public init(id: Int64? = nil, username: String? = nil, firstName: String? = nil, lastName: String? = nil, email: String? = nil, password: String? = nil, phone: String? = nil, userStatus: Int? = nil) {
+ self.id = id
+ self.username = username
+ self.firstName = firstName
+ self.lastName = lastName
+ self.email = email
+ self.password = password
+ self.phone = phone
+ self.userStatus = userStatus
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case id
+ case username
+ case firstName
+ case lastName
+ case email
+ case password
+ case phone
+ case userStatus
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(id, forKey: .id)
+ try container.encodeIfPresent(username, forKey: .username)
+ try container.encodeIfPresent(firstName, forKey: .firstName)
+ try container.encodeIfPresent(lastName, forKey: .lastName)
+ try container.encodeIfPresent(email, forKey: .email)
+ try container.encodeIfPresent(password, forKey: .password)
+ try container.encodeIfPresent(phone, forKey: .phone)
+ try container.encodeIfPresent(userStatus, forKey: .userStatus)
+ }
+
+ public static func == (lhs: User, rhs: User) -> Bool {
+ lhs.id == rhs.id &&
+ lhs.username == rhs.username &&
+ lhs.firstName == rhs.firstName &&
+ lhs.lastName == rhs.lastName &&
+ lhs.email == rhs.email &&
+ lhs.password == rhs.password &&
+ lhs.phone == rhs.phone &&
+ lhs.userStatus == rhs.userStatus
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(id?.hashValue)
+ hasher.combine(username?.hashValue)
+ hasher.combine(firstName?.hashValue)
+ hasher.combine(lastName?.hashValue)
+ hasher.combine(email?.hashValue)
+ hasher.combine(password?.hashValue)
+ hasher.combine(phone?.hashValue)
+ hasher.combine(userStatus?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/XmlItem.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/XmlItem.swift
new file mode 100644
index 00000000000..85003560b37
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/XmlItem.swift
@@ -0,0 +1,211 @@
+//
+// XmlItem.swift
+//
+// Generated by openapi-generator
+// https://openapi-generator.tech
+//
+
+import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
+import Vapor
+
+public final class XmlItem: Content, Hashable {
+
+ public var attributeString: String?
+ public var attributeNumber: Double?
+ public var attributeInteger: Int?
+ public var attributeBoolean: Bool?
+ public var wrappedArray: [Int]?
+ public var nameString: String?
+ public var nameNumber: Double?
+ public var nameInteger: Int?
+ public var nameBoolean: Bool?
+ public var nameArray: [Int]?
+ public var nameWrappedArray: [Int]?
+ public var prefixString: String?
+ public var prefixNumber: Double?
+ public var prefixInteger: Int?
+ public var prefixBoolean: Bool?
+ public var prefixArray: [Int]?
+ public var prefixWrappedArray: [Int]?
+ public var namespaceString: String?
+ public var namespaceNumber: Double?
+ public var namespaceInteger: Int?
+ public var namespaceBoolean: Bool?
+ public var namespaceArray: [Int]?
+ public var namespaceWrappedArray: [Int]?
+ public var prefixNsString: String?
+ public var prefixNsNumber: Double?
+ public var prefixNsInteger: Int?
+ public var prefixNsBoolean: Bool?
+ public var prefixNsArray: [Int]?
+ public var prefixNsWrappedArray: [Int]?
+
+ public init(attributeString: String? = nil, attributeNumber: Double? = nil, attributeInteger: Int? = nil, attributeBoolean: Bool? = nil, wrappedArray: [Int]? = nil, nameString: String? = nil, nameNumber: Double? = nil, nameInteger: Int? = nil, nameBoolean: Bool? = nil, nameArray: [Int]? = nil, nameWrappedArray: [Int]? = nil, prefixString: String? = nil, prefixNumber: Double? = nil, prefixInteger: Int? = nil, prefixBoolean: Bool? = nil, prefixArray: [Int]? = nil, prefixWrappedArray: [Int]? = nil, namespaceString: String? = nil, namespaceNumber: Double? = nil, namespaceInteger: Int? = nil, namespaceBoolean: Bool? = nil, namespaceArray: [Int]? = nil, namespaceWrappedArray: [Int]? = nil, prefixNsString: String? = nil, prefixNsNumber: Double? = nil, prefixNsInteger: Int? = nil, prefixNsBoolean: Bool? = nil, prefixNsArray: [Int]? = nil, prefixNsWrappedArray: [Int]? = nil) {
+ self.attributeString = attributeString
+ self.attributeNumber = attributeNumber
+ self.attributeInteger = attributeInteger
+ self.attributeBoolean = attributeBoolean
+ self.wrappedArray = wrappedArray
+ self.nameString = nameString
+ self.nameNumber = nameNumber
+ self.nameInteger = nameInteger
+ self.nameBoolean = nameBoolean
+ self.nameArray = nameArray
+ self.nameWrappedArray = nameWrappedArray
+ self.prefixString = prefixString
+ self.prefixNumber = prefixNumber
+ self.prefixInteger = prefixInteger
+ self.prefixBoolean = prefixBoolean
+ self.prefixArray = prefixArray
+ self.prefixWrappedArray = prefixWrappedArray
+ self.namespaceString = namespaceString
+ self.namespaceNumber = namespaceNumber
+ self.namespaceInteger = namespaceInteger
+ self.namespaceBoolean = namespaceBoolean
+ self.namespaceArray = namespaceArray
+ self.namespaceWrappedArray = namespaceWrappedArray
+ self.prefixNsString = prefixNsString
+ self.prefixNsNumber = prefixNsNumber
+ self.prefixNsInteger = prefixNsInteger
+ self.prefixNsBoolean = prefixNsBoolean
+ self.prefixNsArray = prefixNsArray
+ self.prefixNsWrappedArray = prefixNsWrappedArray
+ }
+
+ public enum CodingKeys: String, CodingKey, CaseIterable {
+ case attributeString = "attribute_string"
+ case attributeNumber = "attribute_number"
+ case attributeInteger = "attribute_integer"
+ case attributeBoolean = "attribute_boolean"
+ case wrappedArray = "wrapped_array"
+ case nameString = "name_string"
+ case nameNumber = "name_number"
+ case nameInteger = "name_integer"
+ case nameBoolean = "name_boolean"
+ case nameArray = "name_array"
+ case nameWrappedArray = "name_wrapped_array"
+ case prefixString = "prefix_string"
+ case prefixNumber = "prefix_number"
+ case prefixInteger = "prefix_integer"
+ case prefixBoolean = "prefix_boolean"
+ case prefixArray = "prefix_array"
+ case prefixWrappedArray = "prefix_wrapped_array"
+ case namespaceString = "namespace_string"
+ case namespaceNumber = "namespace_number"
+ case namespaceInteger = "namespace_integer"
+ case namespaceBoolean = "namespace_boolean"
+ case namespaceArray = "namespace_array"
+ case namespaceWrappedArray = "namespace_wrapped_array"
+ case prefixNsString = "prefix_ns_string"
+ case prefixNsNumber = "prefix_ns_number"
+ case prefixNsInteger = "prefix_ns_integer"
+ case prefixNsBoolean = "prefix_ns_boolean"
+ case prefixNsArray = "prefix_ns_array"
+ case prefixNsWrappedArray = "prefix_ns_wrapped_array"
+ }
+
+ // Encodable protocol methods
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+ try container.encodeIfPresent(attributeString, forKey: .attributeString)
+ try container.encodeIfPresent(attributeNumber, forKey: .attributeNumber)
+ try container.encodeIfPresent(attributeInteger, forKey: .attributeInteger)
+ try container.encodeIfPresent(attributeBoolean, forKey: .attributeBoolean)
+ try container.encodeIfPresent(wrappedArray, forKey: .wrappedArray)
+ try container.encodeIfPresent(nameString, forKey: .nameString)
+ try container.encodeIfPresent(nameNumber, forKey: .nameNumber)
+ try container.encodeIfPresent(nameInteger, forKey: .nameInteger)
+ try container.encodeIfPresent(nameBoolean, forKey: .nameBoolean)
+ try container.encodeIfPresent(nameArray, forKey: .nameArray)
+ try container.encodeIfPresent(nameWrappedArray, forKey: .nameWrappedArray)
+ try container.encodeIfPresent(prefixString, forKey: .prefixString)
+ try container.encodeIfPresent(prefixNumber, forKey: .prefixNumber)
+ try container.encodeIfPresent(prefixInteger, forKey: .prefixInteger)
+ try container.encodeIfPresent(prefixBoolean, forKey: .prefixBoolean)
+ try container.encodeIfPresent(prefixArray, forKey: .prefixArray)
+ try container.encodeIfPresent(prefixWrappedArray, forKey: .prefixWrappedArray)
+ try container.encodeIfPresent(namespaceString, forKey: .namespaceString)
+ try container.encodeIfPresent(namespaceNumber, forKey: .namespaceNumber)
+ try container.encodeIfPresent(namespaceInteger, forKey: .namespaceInteger)
+ try container.encodeIfPresent(namespaceBoolean, forKey: .namespaceBoolean)
+ try container.encodeIfPresent(namespaceArray, forKey: .namespaceArray)
+ try container.encodeIfPresent(namespaceWrappedArray, forKey: .namespaceWrappedArray)
+ try container.encodeIfPresent(prefixNsString, forKey: .prefixNsString)
+ try container.encodeIfPresent(prefixNsNumber, forKey: .prefixNsNumber)
+ try container.encodeIfPresent(prefixNsInteger, forKey: .prefixNsInteger)
+ try container.encodeIfPresent(prefixNsBoolean, forKey: .prefixNsBoolean)
+ try container.encodeIfPresent(prefixNsArray, forKey: .prefixNsArray)
+ try container.encodeIfPresent(prefixNsWrappedArray, forKey: .prefixNsWrappedArray)
+ }
+
+ public static func == (lhs: XmlItem, rhs: XmlItem) -> Bool {
+ lhs.attributeString == rhs.attributeString &&
+ lhs.attributeNumber == rhs.attributeNumber &&
+ lhs.attributeInteger == rhs.attributeInteger &&
+ lhs.attributeBoolean == rhs.attributeBoolean &&
+ lhs.wrappedArray == rhs.wrappedArray &&
+ lhs.nameString == rhs.nameString &&
+ lhs.nameNumber == rhs.nameNumber &&
+ lhs.nameInteger == rhs.nameInteger &&
+ lhs.nameBoolean == rhs.nameBoolean &&
+ lhs.nameArray == rhs.nameArray &&
+ lhs.nameWrappedArray == rhs.nameWrappedArray &&
+ lhs.prefixString == rhs.prefixString &&
+ lhs.prefixNumber == rhs.prefixNumber &&
+ lhs.prefixInteger == rhs.prefixInteger &&
+ lhs.prefixBoolean == rhs.prefixBoolean &&
+ lhs.prefixArray == rhs.prefixArray &&
+ lhs.prefixWrappedArray == rhs.prefixWrappedArray &&
+ lhs.namespaceString == rhs.namespaceString &&
+ lhs.namespaceNumber == rhs.namespaceNumber &&
+ lhs.namespaceInteger == rhs.namespaceInteger &&
+ lhs.namespaceBoolean == rhs.namespaceBoolean &&
+ lhs.namespaceArray == rhs.namespaceArray &&
+ lhs.namespaceWrappedArray == rhs.namespaceWrappedArray &&
+ lhs.prefixNsString == rhs.prefixNsString &&
+ lhs.prefixNsNumber == rhs.prefixNsNumber &&
+ lhs.prefixNsInteger == rhs.prefixNsInteger &&
+ lhs.prefixNsBoolean == rhs.prefixNsBoolean &&
+ lhs.prefixNsArray == rhs.prefixNsArray &&
+ lhs.prefixNsWrappedArray == rhs.prefixNsWrappedArray
+
+ }
+
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(attributeString?.hashValue)
+ hasher.combine(attributeNumber?.hashValue)
+ hasher.combine(attributeInteger?.hashValue)
+ hasher.combine(attributeBoolean?.hashValue)
+ hasher.combine(wrappedArray?.hashValue)
+ hasher.combine(nameString?.hashValue)
+ hasher.combine(nameNumber?.hashValue)
+ hasher.combine(nameInteger?.hashValue)
+ hasher.combine(nameBoolean?.hashValue)
+ hasher.combine(nameArray?.hashValue)
+ hasher.combine(nameWrappedArray?.hashValue)
+ hasher.combine(prefixString?.hashValue)
+ hasher.combine(prefixNumber?.hashValue)
+ hasher.combine(prefixInteger?.hashValue)
+ hasher.combine(prefixBoolean?.hashValue)
+ hasher.combine(prefixArray?.hashValue)
+ hasher.combine(prefixWrappedArray?.hashValue)
+ hasher.combine(namespaceString?.hashValue)
+ hasher.combine(namespaceNumber?.hashValue)
+ hasher.combine(namespaceInteger?.hashValue)
+ hasher.combine(namespaceBoolean?.hashValue)
+ hasher.combine(namespaceArray?.hashValue)
+ hasher.combine(namespaceWrappedArray?.hashValue)
+ hasher.combine(prefixNsString?.hashValue)
+ hasher.combine(prefixNsNumber?.hashValue)
+ hasher.combine(prefixNsInteger?.hashValue)
+ hasher.combine(prefixNsBoolean?.hashValue)
+ hasher.combine(prefixNsArray?.hashValue)
+ hasher.combine(prefixNsWrappedArray?.hashValue)
+
+ }
+}
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/AdditionalPropertiesAnyType.md b/samples/client/petstore/swift5/vaporLibrary/docs/AdditionalPropertiesAnyType.md
new file mode 100644
index 00000000000..bae60ab148f
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/AdditionalPropertiesAnyType.md
@@ -0,0 +1,10 @@
+# AdditionalPropertiesAnyType
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **String** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/AdditionalPropertiesArray.md b/samples/client/petstore/swift5/vaporLibrary/docs/AdditionalPropertiesArray.md
new file mode 100644
index 00000000000..a371b5e28f3
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/AdditionalPropertiesArray.md
@@ -0,0 +1,10 @@
+# AdditionalPropertiesArray
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **String** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/AdditionalPropertiesBoolean.md b/samples/client/petstore/swift5/vaporLibrary/docs/AdditionalPropertiesBoolean.md
new file mode 100644
index 00000000000..d5f0d6da11e
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/AdditionalPropertiesBoolean.md
@@ -0,0 +1,10 @@
+# AdditionalPropertiesBoolean
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **String** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/AdditionalPropertiesClass.md b/samples/client/petstore/swift5/vaporLibrary/docs/AdditionalPropertiesClass.md
new file mode 100644
index 00000000000..1cffcdd8484
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/AdditionalPropertiesClass.md
@@ -0,0 +1,20 @@
+# AdditionalPropertiesClass
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**mapString** | **[String: String]** | | [optional]
+**mapNumber** | **[String: Double]** | | [optional]
+**mapInteger** | **[String: Int]** | | [optional]
+**mapBoolean** | **[String: Bool]** | | [optional]
+**mapArrayInteger** | [String: [Int]] | | [optional]
+**mapArrayAnytype** | [String: [AnyCodable]] | | [optional]
+**mapMapString** | [String: [String: String]] | | [optional]
+**mapMapAnytype** | [String: [String: AnyCodable]] | | [optional]
+**anytype1** | [**AnyCodable**](.md) | | [optional]
+**anytype2** | [**AnyCodable**](.md) | | [optional]
+**anytype3** | [**AnyCodable**](.md) | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/AdditionalPropertiesInteger.md b/samples/client/petstore/swift5/vaporLibrary/docs/AdditionalPropertiesInteger.md
new file mode 100644
index 00000000000..629293abdfe
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/AdditionalPropertiesInteger.md
@@ -0,0 +1,10 @@
+# AdditionalPropertiesInteger
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **String** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/AdditionalPropertiesNumber.md b/samples/client/petstore/swift5/vaporLibrary/docs/AdditionalPropertiesNumber.md
new file mode 100644
index 00000000000..65adfe78137
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/AdditionalPropertiesNumber.md
@@ -0,0 +1,10 @@
+# AdditionalPropertiesNumber
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **String** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/AdditionalPropertiesObject.md b/samples/client/petstore/swift5/vaporLibrary/docs/AdditionalPropertiesObject.md
new file mode 100644
index 00000000000..99d69b7aae6
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/AdditionalPropertiesObject.md
@@ -0,0 +1,10 @@
+# AdditionalPropertiesObject
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **String** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/AdditionalPropertiesString.md b/samples/client/petstore/swift5/vaporLibrary/docs/AdditionalPropertiesString.md
new file mode 100644
index 00000000000..5bb8122887c
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/AdditionalPropertiesString.md
@@ -0,0 +1,10 @@
+# AdditionalPropertiesString
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **String** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/Animal.md b/samples/client/petstore/swift5/vaporLibrary/docs/Animal.md
new file mode 100644
index 00000000000..69c601455cd
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/Animal.md
@@ -0,0 +1,11 @@
+# Animal
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**className** | **String** | |
+**color** | **String** | | [optional] [default to "red"]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/AnimalFarm.md b/samples/client/petstore/swift5/vaporLibrary/docs/AnimalFarm.md
new file mode 100644
index 00000000000..df6bab21dae
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/AnimalFarm.md
@@ -0,0 +1,9 @@
+# AnimalFarm
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/AnotherFakeAPI.md b/samples/client/petstore/swift5/vaporLibrary/docs/AnotherFakeAPI.md
new file mode 100644
index 00000000000..1e71f1db871
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/AnotherFakeAPI.md
@@ -0,0 +1,68 @@
+# AnotherFakeAPI
+
+All URIs are relative to *http://petstore.swagger.io:80/v2*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**call123testSpecialTags**](AnotherFakeAPI.md#call123testspecialtags) | **PATCH** /another-fake/dummy | To test special tags
+
+
+# **call123testSpecialTags**
+```swift
+ open class func call123testSpecialTags(body: Client, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+To test special tags
+
+To test special tags and operation ID starting with number
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+let body = Client(client: "client_example") // Client | client model
+
+// To test special tags
+AnotherFakeAPI.call123testSpecialTags(body: body).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http200(let value, let raw):
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**Client**](Client.md) | client model |
+
+### Return type
+
+#### Call123testSpecialTags
+
+```swift
+public enum Call123testSpecialTags {
+ case http200(value: Client?, raw: ClientResponse)
+ case http0(value: Client?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/ApiResponse.md b/samples/client/petstore/swift5/vaporLibrary/docs/ApiResponse.md
new file mode 100644
index 00000000000..c6d9768fe9b
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/ApiResponse.md
@@ -0,0 +1,12 @@
+# ApiResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **Int** | | [optional]
+**type** | **String** | | [optional]
+**message** | **String** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/swift5/vaporLibrary/docs/ArrayOfArrayOfNumberOnly.md
new file mode 100644
index 00000000000..c6fceff5e08
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/ArrayOfArrayOfNumberOnly.md
@@ -0,0 +1,10 @@
+# ArrayOfArrayOfNumberOnly
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**arrayArrayNumber** | [[Double]] | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/ArrayOfNumberOnly.md b/samples/client/petstore/swift5/vaporLibrary/docs/ArrayOfNumberOnly.md
new file mode 100644
index 00000000000..f09f8fa6f70
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/ArrayOfNumberOnly.md
@@ -0,0 +1,10 @@
+# ArrayOfNumberOnly
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**arrayNumber** | **[Double]** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/ArrayTest.md b/samples/client/petstore/swift5/vaporLibrary/docs/ArrayTest.md
new file mode 100644
index 00000000000..bf416b8330c
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/ArrayTest.md
@@ -0,0 +1,12 @@
+# ArrayTest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**arrayOfString** | **[String]** | | [optional]
+**arrayArrayOfInteger** | [[Int64]] | | [optional]
+**arrayArrayOfModel** | [[ReadOnlyFirst]] | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/BigCat.md b/samples/client/petstore/swift5/vaporLibrary/docs/BigCat.md
new file mode 100644
index 00000000000..cd904c7381a
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/BigCat.md
@@ -0,0 +1,10 @@
+# BigCat
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**kind** | **String** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/BigCatAllOf.md b/samples/client/petstore/swift5/vaporLibrary/docs/BigCatAllOf.md
new file mode 100644
index 00000000000..20da4caf5d0
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/BigCatAllOf.md
@@ -0,0 +1,10 @@
+# BigCatAllOf
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**kind** | **String** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/Capitalization.md b/samples/client/petstore/swift5/vaporLibrary/docs/Capitalization.md
new file mode 100644
index 00000000000..95374216c77
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/Capitalization.md
@@ -0,0 +1,15 @@
+# Capitalization
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**smallCamel** | **String** | | [optional]
+**capitalCamel** | **String** | | [optional]
+**smallSnake** | **String** | | [optional]
+**capitalSnake** | **String** | | [optional]
+**sCAETHFlowPoints** | **String** | | [optional]
+**ATT_NAME** | **String** | Name of the pet | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/Cat.md b/samples/client/petstore/swift5/vaporLibrary/docs/Cat.md
new file mode 100644
index 00000000000..fb5949b1576
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/Cat.md
@@ -0,0 +1,10 @@
+# Cat
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**declawed** | **Bool** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/CatAllOf.md b/samples/client/petstore/swift5/vaporLibrary/docs/CatAllOf.md
new file mode 100644
index 00000000000..79789be61c0
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/CatAllOf.md
@@ -0,0 +1,10 @@
+# CatAllOf
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**declawed** | **Bool** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/Category.md b/samples/client/petstore/swift5/vaporLibrary/docs/Category.md
new file mode 100644
index 00000000000..5ca5408c0f9
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/Category.md
@@ -0,0 +1,11 @@
+# Category
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **Int64** | | [optional]
+**name** | **String** | | [default to "default-name"]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/ClassModel.md b/samples/client/petstore/swift5/vaporLibrary/docs/ClassModel.md
new file mode 100644
index 00000000000..60989bb6b64
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/ClassModel.md
@@ -0,0 +1,10 @@
+# ClassModel
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**`class`** | **String** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/Client.md b/samples/client/petstore/swift5/vaporLibrary/docs/Client.md
new file mode 100644
index 00000000000..0de1b238c36
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/Client.md
@@ -0,0 +1,10 @@
+# Client
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**client** | **String** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/Dog.md b/samples/client/petstore/swift5/vaporLibrary/docs/Dog.md
new file mode 100644
index 00000000000..4824786da04
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/Dog.md
@@ -0,0 +1,10 @@
+# Dog
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**breed** | **String** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/DogAllOf.md b/samples/client/petstore/swift5/vaporLibrary/docs/DogAllOf.md
new file mode 100644
index 00000000000..9302ef52e93
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/DogAllOf.md
@@ -0,0 +1,10 @@
+# DogAllOf
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**breed** | **String** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/EnumArrays.md b/samples/client/petstore/swift5/vaporLibrary/docs/EnumArrays.md
new file mode 100644
index 00000000000..b9a9807d3c8
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/EnumArrays.md
@@ -0,0 +1,11 @@
+# EnumArrays
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**justSymbol** | **String** | | [optional]
+**arrayEnum** | **[String]** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/EnumClass.md b/samples/client/petstore/swift5/vaporLibrary/docs/EnumClass.md
new file mode 100644
index 00000000000..67f017becd0
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/EnumClass.md
@@ -0,0 +1,9 @@
+# EnumClass
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/EnumTest.md b/samples/client/petstore/swift5/vaporLibrary/docs/EnumTest.md
new file mode 100644
index 00000000000..bc9b036dd76
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/EnumTest.md
@@ -0,0 +1,14 @@
+# EnumTest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**enumString** | **String** | | [optional]
+**enumStringRequired** | **String** | |
+**enumInteger** | **Int** | | [optional]
+**enumNumber** | **Double** | | [optional]
+**outerEnum** | [**OuterEnum**](OuterEnum.md) | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/FakeAPI.md b/samples/client/petstore/swift5/vaporLibrary/docs/FakeAPI.md
new file mode 100644
index 00000000000..1883af3085c
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/FakeAPI.md
@@ -0,0 +1,901 @@
+# FakeAPI
+
+All URIs are relative to *http://petstore.swagger.io:80/v2*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**createXmlItem**](FakeAPI.md#createxmlitem) | **POST** /fake/create_xml_item | creates an XmlItem
+[**fakeOuterBooleanSerialize**](FakeAPI.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
+[**fakeOuterCompositeSerialize**](FakeAPI.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
+[**fakeOuterNumberSerialize**](FakeAPI.md#fakeouternumberserialize) | **POST** /fake/outer/number |
+[**fakeOuterStringSerialize**](FakeAPI.md#fakeouterstringserialize) | **POST** /fake/outer/string |
+[**testBodyWithFileSchema**](FakeAPI.md#testbodywithfileschema) | **PUT** /fake/body-with-file-schema |
+[**testBodyWithQueryParams**](FakeAPI.md#testbodywithqueryparams) | **PUT** /fake/body-with-query-params |
+[**testClientModel**](FakeAPI.md#testclientmodel) | **PATCH** /fake | To test \"client\" model
+[**testEndpointParameters**](FakeAPI.md#testendpointparameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
+[**testEnumParameters**](FakeAPI.md#testenumparameters) | **GET** /fake | To test enum parameters
+[**testGroupParameters**](FakeAPI.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
+[**testInlineAdditionalProperties**](FakeAPI.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
+[**testJsonFormData**](FakeAPI.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data
+[**testQueryParameterCollectionFormat**](FakeAPI.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters |
+
+
+# **createXmlItem**
+```swift
+ open class func createXmlItem(xmlItem: XmlItem, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+creates an XmlItem
+
+this route creates an XmlItem
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+let xmlItem = XmlItem(attributeString: "attributeString_example", attributeNumber: 123, attributeInteger: 123, attributeBoolean: true, wrappedArray: [123], nameString: "nameString_example", nameNumber: 123, nameInteger: 123, nameBoolean: true, nameArray: [123], nameWrappedArray: [123], prefixString: "prefixString_example", prefixNumber: 123, prefixInteger: 123, prefixBoolean: true, prefixArray: [123], prefixWrappedArray: [123], namespaceString: "namespaceString_example", namespaceNumber: 123, namespaceInteger: 123, namespaceBoolean: true, namespaceArray: [123], namespaceWrappedArray: [123], prefixNsString: "prefixNsString_example", prefixNsNumber: 123, prefixNsInteger: 123, prefixNsBoolean: true, prefixNsArray: [123], prefixNsWrappedArray: [123]) // XmlItem | XmlItem Body
+
+// creates an XmlItem
+FakeAPI.createXmlItem(xmlItem: xmlItem).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http200(let value, let raw):
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **xmlItem** | [**XmlItem**](XmlItem.md) | XmlItem Body |
+
+### Return type
+
+#### CreateXmlItem
+
+```swift
+public enum CreateXmlItem {
+ case http200(value: Void?, raw: ClientResponse)
+ case http0(value: Void?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/xml, application/xml; charset=utf-8, application/xml; charset=utf-16, text/xml, text/xml; charset=utf-8, text/xml; charset=utf-16
+ - **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **fakeOuterBooleanSerialize**
+```swift
+ open class func fakeOuterBooleanSerialize(body: Bool? = nil, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+
+
+Test serialization of outer boolean types
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+let body = true // Bool | Input boolean as post body (optional)
+
+FakeAPI.fakeOuterBooleanSerialize(body: body).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http200(let value, let raw):
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | **Bool** | Input boolean as post body | [optional]
+
+### Return type
+
+#### FakeOuterBooleanSerialize
+
+```swift
+public enum FakeOuterBooleanSerialize {
+ case http200(value: Bool?, raw: ClientResponse)
+ case http0(value: Bool?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: */*
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **fakeOuterCompositeSerialize**
+```swift
+ open class func fakeOuterCompositeSerialize(body: OuterComposite? = nil, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+
+
+Test serialization of object with outer number type
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+let body = OuterComposite(myNumber: 123, myString: "myString_example", myBoolean: false) // OuterComposite | Input composite as post body (optional)
+
+FakeAPI.fakeOuterCompositeSerialize(body: body).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http200(let value, let raw):
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**OuterComposite**](OuterComposite.md) | Input composite as post body | [optional]
+
+### Return type
+
+#### FakeOuterCompositeSerialize
+
+```swift
+public enum FakeOuterCompositeSerialize {
+ case http200(value: OuterComposite?, raw: ClientResponse)
+ case http0(value: OuterComposite?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: */*
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **fakeOuterNumberSerialize**
+```swift
+ open class func fakeOuterNumberSerialize(body: Double? = nil, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+
+
+Test serialization of outer number types
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+let body = 987 // Double | Input number as post body (optional)
+
+FakeAPI.fakeOuterNumberSerialize(body: body).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http200(let value, let raw):
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | **Double** | Input number as post body | [optional]
+
+### Return type
+
+#### FakeOuterNumberSerialize
+
+```swift
+public enum FakeOuterNumberSerialize {
+ case http200(value: Double?, raw: ClientResponse)
+ case http0(value: Double?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: */*
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **fakeOuterStringSerialize**
+```swift
+ open class func fakeOuterStringSerialize(body: String? = nil, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+
+
+Test serialization of outer string types
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+let body = "body_example" // String | Input string as post body (optional)
+
+FakeAPI.fakeOuterStringSerialize(body: body).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http200(let value, let raw):
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | **String** | Input string as post body | [optional]
+
+### Return type
+
+#### FakeOuterStringSerialize
+
+```swift
+public enum FakeOuterStringSerialize {
+ case http200(value: String?, raw: ClientResponse)
+ case http0(value: String?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: */*
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **testBodyWithFileSchema**
+```swift
+ open class func testBodyWithFileSchema(body: FileSchemaTestClass, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+
+
+For this test, the body for this request much reference a schema named `File`.
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+let body = FileSchemaTestClass(file: File(sourceURI: "sourceURI_example"), files: [nil]) // FileSchemaTestClass |
+
+FakeAPI.testBodyWithFileSchema(body: body).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http200(let value, let raw):
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md) | |
+
+### Return type
+
+#### TestBodyWithFileSchema
+
+```swift
+public enum TestBodyWithFileSchema {
+ case http200(value: Void?, raw: ClientResponse)
+ case http0(value: Void?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **testBodyWithQueryParams**
+```swift
+ open class func testBodyWithQueryParams(query: String, body: User, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+let query = "query_example" // String |
+let body = User(id: 123, username: "username_example", firstName: "firstName_example", lastName: "lastName_example", email: "email_example", password: "password_example", phone: "phone_example", userStatus: 123) // User |
+
+FakeAPI.testBodyWithQueryParams(query: query, body: body).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http200(let value, let raw):
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **query** | **String** | |
+ **body** | [**User**](User.md) | |
+
+### Return type
+
+#### TestBodyWithQueryParams
+
+```swift
+public enum TestBodyWithQueryParams {
+ case http200(value: Void?, raw: ClientResponse)
+ case http0(value: Void?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **testClientModel**
+```swift
+ open class func testClientModel(body: Client, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+To test \"client\" model
+
+To test \"client\" model
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+let body = Client(client: "client_example") // Client | client model
+
+// To test \"client\" model
+FakeAPI.testClientModel(body: body).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http200(let value, let raw):
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**Client**](Client.md) | client model |
+
+### Return type
+
+#### TestClientModel
+
+```swift
+public enum TestClientModel {
+ case http200(value: Client?, raw: ClientResponse)
+ case http0(value: Client?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **testEndpointParameters**
+```swift
+ open class func testEndpointParameters(number: Double, double: Double, patternWithoutDelimiter: String, byte: Data, integer: Int? = nil, int32: Int? = nil, int64: Int64? = nil, float: Float? = nil, string: String? = nil, binary: Data? = nil, date: Date? = nil, dateTime: Date? = nil, password: String? = nil, callback: String? = nil, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
+
+Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+let number = 987 // Double | None
+let double = 987 // Double | None
+let patternWithoutDelimiter = "patternWithoutDelimiter_example" // String | None
+let byte = Data([9, 8, 7]) // Data | None
+let integer = 987 // Int | None (optional)
+let int32 = 987 // Int | None (optional)
+let int64 = 987 // Int64 | None (optional)
+let float = 987 // Float | None (optional)
+let string = "string_example" // String | None (optional)
+let binary = Data([9, 8, 7]) // Data | None (optional)
+let date = Date() // Date | None (optional)
+let dateTime = Date() // Date | None (optional)
+let password = "password_example" // String | None (optional)
+let callback = "callback_example" // String | None (optional)
+
+// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
+FakeAPI.testEndpointParameters(number: number, double: double, patternWithoutDelimiter: patternWithoutDelimiter, byte: byte, integer: integer, int32: int32, int64: int64, float: float, string: string, binary: binary, date: date, dateTime: dateTime, password: password, callback: callback).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http400(let value, let raw):
+ case .http404(let value, let raw):
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **number** | **Double** | None |
+ **double** | **Double** | None |
+ **patternWithoutDelimiter** | **String** | None |
+ **byte** | **Data** | None |
+ **integer** | **Int** | None | [optional]
+ **int32** | **Int** | None | [optional]
+ **int64** | **Int64** | None | [optional]
+ **float** | **Float** | None | [optional]
+ **string** | **String** | None | [optional]
+ **binary** | **Data** | None | [optional]
+ **date** | **Date** | None | [optional]
+ **dateTime** | **Date** | None | [optional]
+ **password** | **String** | None | [optional]
+ **callback** | **String** | None | [optional]
+
+### Return type
+
+#### TestEndpointParameters
+
+```swift
+public enum TestEndpointParameters {
+ case http400(value: Void?, raw: ClientResponse)
+ case http404(value: Void?, raw: ClientResponse)
+ case http0(value: Void?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+[http_basic_test](../README.md#http_basic_test)
+
+### HTTP request headers
+
+ - **Content-Type**: application/x-www-form-urlencoded
+ - **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **testEnumParameters**
+```swift
+ open class func testEnumParameters(enumHeaderStringArray: [String]? = nil, enumHeaderString: EnumHeaderString_testEnumParameters? = nil, enumQueryStringArray: [String]? = nil, enumQueryString: EnumQueryString_testEnumParameters? = nil, enumQueryInteger: EnumQueryInteger_testEnumParameters? = nil, enumQueryDouble: EnumQueryDouble_testEnumParameters? = nil, enumFormStringArray: [String]? = nil, enumFormString: EnumFormString_testEnumParameters? = nil, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+To test enum parameters
+
+To test enum parameters
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+let enumHeaderStringArray = ["enumHeaderStringArray_example"] // [String] | Header parameter enum test (string array) (optional)
+let enumHeaderString = "enumHeaderString_example" // String | Header parameter enum test (string) (optional) (default to .efg)
+let enumQueryStringArray = ["enumQueryStringArray_example"] // [String] | Query parameter enum test (string array) (optional)
+let enumQueryString = "enumQueryString_example" // String | Query parameter enum test (string) (optional) (default to .efg)
+let enumQueryInteger = 987 // Int | Query parameter enum test (double) (optional)
+let enumQueryDouble = 987 // Double | Query parameter enum test (double) (optional)
+let enumFormStringArray = ["inner_example"] // [String] | Form parameter enum test (string array) (optional) (default to .dollar)
+let enumFormString = "enumFormString_example" // String | Form parameter enum test (string) (optional) (default to .efg)
+
+// To test enum parameters
+FakeAPI.testEnumParameters(enumHeaderStringArray: enumHeaderStringArray, enumHeaderString: enumHeaderString, enumQueryStringArray: enumQueryStringArray, enumQueryString: enumQueryString, enumQueryInteger: enumQueryInteger, enumQueryDouble: enumQueryDouble, enumFormStringArray: enumFormStringArray, enumFormString: enumFormString).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http400(let value, let raw):
+ case .http404(let value, let raw):
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **enumHeaderStringArray** | [**[String]**](String.md) | Header parameter enum test (string array) | [optional]
+ **enumHeaderString** | **String** | Header parameter enum test (string) | [optional] [default to .efg]
+ **enumQueryStringArray** | [**[String]**](String.md) | Query parameter enum test (string array) | [optional]
+ **enumQueryString** | **String** | Query parameter enum test (string) | [optional] [default to .efg]
+ **enumQueryInteger** | **Int** | Query parameter enum test (double) | [optional]
+ **enumQueryDouble** | **Double** | Query parameter enum test (double) | [optional]
+ **enumFormStringArray** | [**[String]**](String.md) | Form parameter enum test (string array) | [optional] [default to .dollar]
+ **enumFormString** | **String** | Form parameter enum test (string) | [optional] [default to .efg]
+
+### Return type
+
+#### TestEnumParameters
+
+```swift
+public enum TestEnumParameters {
+ case http400(value: Void?, raw: ClientResponse)
+ case http404(value: Void?, raw: ClientResponse)
+ case http0(value: Void?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/x-www-form-urlencoded
+ - **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **testGroupParameters**
+```swift
+ open class func testGroupParameters(requiredStringGroup: Int, requiredBooleanGroup: Bool, requiredInt64Group: Int64, stringGroup: Int? = nil, booleanGroup: Bool? = nil, int64Group: Int64? = nil, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+Fake endpoint to test group parameters (optional)
+
+Fake endpoint to test group parameters (optional)
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+let requiredStringGroup = 987 // Int | Required String in group parameters
+let requiredBooleanGroup = true // Bool | Required Boolean in group parameters
+let requiredInt64Group = 987 // Int64 | Required Integer in group parameters
+let stringGroup = 987 // Int | String in group parameters (optional)
+let booleanGroup = true // Bool | Boolean in group parameters (optional)
+let int64Group = 987 // Int64 | Integer in group parameters (optional)
+
+// Fake endpoint to test group parameters (optional)
+FakeAPI.testGroupParameters(requiredStringGroup: requiredStringGroup, requiredBooleanGroup: requiredBooleanGroup, requiredInt64Group: requiredInt64Group, stringGroup: stringGroup, booleanGroup: booleanGroup, int64Group: int64Group).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http400(let value, let raw):
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **requiredStringGroup** | **Int** | Required String in group parameters |
+ **requiredBooleanGroup** | **Bool** | Required Boolean in group parameters |
+ **requiredInt64Group** | **Int64** | Required Integer in group parameters |
+ **stringGroup** | **Int** | String in group parameters | [optional]
+ **booleanGroup** | **Bool** | Boolean in group parameters | [optional]
+ **int64Group** | **Int64** | Integer in group parameters | [optional]
+
+### Return type
+
+#### TestGroupParameters
+
+```swift
+public enum TestGroupParameters {
+ case http400(value: Void?, raw: ClientResponse)
+ case http0(value: Void?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **testInlineAdditionalProperties**
+```swift
+ open class func testInlineAdditionalProperties(param: [String: String], headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+test inline additionalProperties
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+let param = "TODO" // [String: String] | request body
+
+// test inline additionalProperties
+FakeAPI.testInlineAdditionalProperties(param: param).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http200(let value, let raw):
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **param** | [**[String: String]**](String.md) | request body |
+
+### Return type
+
+#### TestInlineAdditionalProperties
+
+```swift
+public enum TestInlineAdditionalProperties {
+ case http200(value: Void?, raw: ClientResponse)
+ case http0(value: Void?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **testJsonFormData**
+```swift
+ open class func testJsonFormData(param: String, param2: String, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+test json serialization of form data
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+let param = "param_example" // String | field1
+let param2 = "param2_example" // String | field2
+
+// test json serialization of form data
+FakeAPI.testJsonFormData(param: param, param2: param2).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http200(let value, let raw):
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **param** | **String** | field1 |
+ **param2** | **String** | field2 |
+
+### Return type
+
+#### TestJsonFormData
+
+```swift
+public enum TestJsonFormData {
+ case http200(value: Void?, raw: ClientResponse)
+ case http0(value: Void?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/x-www-form-urlencoded
+ - **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **testQueryParameterCollectionFormat**
+```swift
+ open class func testQueryParameterCollectionFormat(pipe: [String], ioutil: [String], http: [String], url: [String], context: [String], headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+
+
+To test the collection format in query parameters
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+let pipe = ["inner_example"] // [String] |
+let ioutil = ["inner_example"] // [String] |
+let http = ["inner_example"] // [String] |
+let url = ["inner_example"] // [String] |
+let context = ["inner_example"] // [String] |
+
+FakeAPI.testQueryParameterCollectionFormat(pipe: pipe, ioutil: ioutil, http: http, url: url, context: context).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http200(let value, let raw):
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **pipe** | [**[String]**](String.md) | |
+ **ioutil** | [**[String]**](String.md) | |
+ **http** | [**[String]**](String.md) | |
+ **url** | [**[String]**](String.md) | |
+ **context** | [**[String]**](String.md) | |
+
+### Return type
+
+#### TestQueryParameterCollectionFormat
+
+```swift
+public enum TestQueryParameterCollectionFormat {
+ case http200(value: Void?, raw: ClientResponse)
+ case http0(value: Void?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/FakeClassnameTags123API.md b/samples/client/petstore/swift5/vaporLibrary/docs/FakeClassnameTags123API.md
new file mode 100644
index 00000000000..1aebe78f145
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/FakeClassnameTags123API.md
@@ -0,0 +1,68 @@
+# FakeClassnameTags123API
+
+All URIs are relative to *http://petstore.swagger.io:80/v2*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**testClassname**](FakeClassnameTags123API.md#testclassname) | **PATCH** /fake_classname_test | To test class name in snake case
+
+
+# **testClassname**
+```swift
+ open class func testClassname(body: Client, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+To test class name in snake case
+
+To test class name in snake case
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+let body = Client(client: "client_example") // Client | client model
+
+// To test class name in snake case
+FakeClassnameTags123API.testClassname(body: body).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http200(let value, let raw):
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**Client**](Client.md) | client model |
+
+### Return type
+
+#### TestClassname
+
+```swift
+public enum TestClassname {
+ case http200(value: Client?, raw: ClientResponse)
+ case http0(value: Client?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+[api_key_query](../README.md#api_key_query)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/File.md b/samples/client/petstore/swift5/vaporLibrary/docs/File.md
new file mode 100644
index 00000000000..3edfef17b79
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/File.md
@@ -0,0 +1,10 @@
+# File
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**sourceURI** | **String** | Test capitalization | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/FileSchemaTestClass.md b/samples/client/petstore/swift5/vaporLibrary/docs/FileSchemaTestClass.md
new file mode 100644
index 00000000000..afdacc60b2c
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/FileSchemaTestClass.md
@@ -0,0 +1,11 @@
+# FileSchemaTestClass
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**file** | [**File**](File.md) | | [optional]
+**files** | [File] | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/FormatTest.md b/samples/client/petstore/swift5/vaporLibrary/docs/FormatTest.md
new file mode 100644
index 00000000000..6e6c67b2a4f
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/FormatTest.md
@@ -0,0 +1,23 @@
+# FormatTest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**integer** | **Int** | | [optional]
+**int32** | **Int** | | [optional]
+**int64** | **Int64** | | [optional]
+**number** | **Double** | |
+**float** | **Float** | | [optional]
+**double** | **Double** | | [optional]
+**string** | **String** | | [optional]
+**byte** | **Data** | |
+**binary** | **Data** | | [optional]
+**date** | **Date** | |
+**dateTime** | **Date** | | [optional]
+**uuid** | **UUID** | | [optional]
+**password** | **String** | |
+**bigDecimal** | **Decimal** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/HasOnlyReadOnly.md b/samples/client/petstore/swift5/vaporLibrary/docs/HasOnlyReadOnly.md
new file mode 100644
index 00000000000..57b6e3a17e6
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/HasOnlyReadOnly.md
@@ -0,0 +1,11 @@
+# HasOnlyReadOnly
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**bar** | **String** | | [optional] [readonly]
+**foo** | **String** | | [optional] [readonly]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/List.md b/samples/client/petstore/swift5/vaporLibrary/docs/List.md
new file mode 100644
index 00000000000..b77718302ed
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/List.md
@@ -0,0 +1,10 @@
+# List
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**_123list** | **String** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/MapTest.md b/samples/client/petstore/swift5/vaporLibrary/docs/MapTest.md
new file mode 100644
index 00000000000..73f9e0d50ac
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/MapTest.md
@@ -0,0 +1,13 @@
+# MapTest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**mapMapOfString** | [String: [String: String]] | | [optional]
+**mapOfEnumString** | **[String: String]** | | [optional]
+**directMap** | **[String: Bool]** | | [optional]
+**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/swift5/vaporLibrary/docs/MixedPropertiesAndAdditionalPropertiesClass.md
new file mode 100644
index 00000000000..3fdfd03f0e3
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/MixedPropertiesAndAdditionalPropertiesClass.md
@@ -0,0 +1,12 @@
+# MixedPropertiesAndAdditionalPropertiesClass
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**uuid** | **UUID** | | [optional]
+**dateTime** | **Date** | | [optional]
+**map** | [String: Animal] | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/Model200Response.md b/samples/client/petstore/swift5/vaporLibrary/docs/Model200Response.md
new file mode 100644
index 00000000000..e064d9d0111
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/Model200Response.md
@@ -0,0 +1,11 @@
+# Model200Response
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **Int** | | [optional]
+**`class`** | **String** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/Name.md b/samples/client/petstore/swift5/vaporLibrary/docs/Name.md
new file mode 100644
index 00000000000..f7b180292cd
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/Name.md
@@ -0,0 +1,13 @@
+# Name
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **Int** | |
+**snakeCase** | **Int** | | [optional] [readonly]
+**property** | **String** | | [optional]
+**_123number** | **Int** | | [optional] [readonly]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/NumberOnly.md b/samples/client/petstore/swift5/vaporLibrary/docs/NumberOnly.md
new file mode 100644
index 00000000000..72bd361168b
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/NumberOnly.md
@@ -0,0 +1,10 @@
+# NumberOnly
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**justNumber** | **Double** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/Order.md b/samples/client/petstore/swift5/vaporLibrary/docs/Order.md
new file mode 100644
index 00000000000..15487f01175
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/Order.md
@@ -0,0 +1,15 @@
+# Order
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **Int64** | | [optional]
+**petId** | **Int64** | | [optional]
+**quantity** | **Int** | | [optional]
+**shipDate** | **Date** | | [optional]
+**status** | **String** | Order Status | [optional]
+**complete** | **Bool** | | [optional] [default to false]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/OuterComposite.md b/samples/client/petstore/swift5/vaporLibrary/docs/OuterComposite.md
new file mode 100644
index 00000000000..d6b3583bc3f
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/OuterComposite.md
@@ -0,0 +1,12 @@
+# OuterComposite
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**myNumber** | **Double** | | [optional]
+**myString** | **String** | | [optional]
+**myBoolean** | **Bool** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/OuterEnum.md b/samples/client/petstore/swift5/vaporLibrary/docs/OuterEnum.md
new file mode 100644
index 00000000000..06d413b0168
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/OuterEnum.md
@@ -0,0 +1,9 @@
+# OuterEnum
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/Pet.md b/samples/client/petstore/swift5/vaporLibrary/docs/Pet.md
new file mode 100644
index 00000000000..36e8e488439
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/Pet.md
@@ -0,0 +1,15 @@
+# Pet
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **Int64** | | [optional]
+**category** | [**Category**](Category.md) | | [optional]
+**name** | **String** | |
+**photoUrls** | **Set** | |
+**tags** | [Tag] | | [optional]
+**status** | **String** | pet status in the store | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/PetAPI.md b/samples/client/petstore/swift5/vaporLibrary/docs/PetAPI.md
new file mode 100644
index 00000000000..88f6a377038
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/PetAPI.md
@@ -0,0 +1,568 @@
+# PetAPI
+
+All URIs are relative to *http://petstore.swagger.io:80/v2*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**addPet**](PetAPI.md#addpet) | **POST** /pet | Add a new pet to the store
+[**deletePet**](PetAPI.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet
+[**findPetsByStatus**](PetAPI.md#findpetsbystatus) | **GET** /pet/findByStatus | Finds Pets by status
+[**findPetsByTags**](PetAPI.md#findpetsbytags) | **GET** /pet/findByTags | Finds Pets by tags
+[**getPetById**](PetAPI.md#getpetbyid) | **GET** /pet/{petId} | Find pet by ID
+[**updatePet**](PetAPI.md#updatepet) | **PUT** /pet | Update an existing pet
+[**updatePetWithForm**](PetAPI.md#updatepetwithform) | **POST** /pet/{petId} | Updates a pet in the store with form data
+[**uploadFile**](PetAPI.md#uploadfile) | **POST** /pet/{petId}/uploadImage | uploads an image
+[**uploadFileWithRequiredFile**](PetAPI.md#uploadfilewithrequiredfile) | **POST** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required)
+
+
+# **addPet**
+```swift
+ open class func addPet(body: Pet, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+Add a new pet to the store
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+let body = Pet(id: 123, category: Category(id: 123, name: "name_example"), name: "name_example", photoUrls: ["photoUrls_example"], tags: [Tag(id: 123, name: "name_example")], status: "status_example") // Pet | Pet object that needs to be added to the store
+
+// Add a new pet to the store
+PetAPI.addPet(body: body).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http200(let value, let raw):
+ case .http405(let value, let raw):
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**Pet**](Pet.md) | Pet object that needs to be added to the store |
+
+### Return type
+
+#### AddPet
+
+```swift
+public enum AddPet {
+ case http200(value: Void?, raw: ClientResponse)
+ case http405(value: Void?, raw: ClientResponse)
+ case http0(value: Void?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+[petstore_auth](../README.md#petstore_auth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json, application/xml
+ - **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **deletePet**
+```swift
+ open class func deletePet(petId: Int64, apiKey: String? = nil, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+Deletes a pet
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+let petId = 987 // Int64 | Pet id to delete
+let apiKey = "apiKey_example" // String | (optional)
+
+// Deletes a pet
+PetAPI.deletePet(petId: petId, apiKey: apiKey).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http200(let value, let raw):
+ case .http400(let value, let raw):
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **petId** | **Int64** | Pet id to delete |
+ **apiKey** | **String** | | [optional]
+
+### Return type
+
+#### DeletePet
+
+```swift
+public enum DeletePet {
+ case http200(value: Void?, raw: ClientResponse)
+ case http400(value: Void?, raw: ClientResponse)
+ case http0(value: Void?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+[petstore_auth](../README.md#petstore_auth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **findPetsByStatus**
+```swift
+ open class func findPetsByStatus(status: [String], headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+Finds Pets by status
+
+Multiple status values can be provided with comma separated strings
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+let status = ["status_example"] // [String] | Status values that need to be considered for filter
+
+// Finds Pets by status
+PetAPI.findPetsByStatus(status: status).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http200(let value, let raw):
+ case .http400(let value, let raw):
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **status** | [**[String]**](String.md) | Status values that need to be considered for filter |
+
+### Return type
+
+#### FindPetsByStatus
+
+```swift
+public enum FindPetsByStatus {
+ case http200(value: [Pet]?, raw: ClientResponse)
+ case http400(value: Void?, raw: ClientResponse)
+ case http0(value: [Pet]?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+[petstore_auth](../README.md#petstore_auth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/xml, application/json
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **findPetsByTags**
+```swift
+ open class func findPetsByTags(tags: Set, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+Finds Pets by tags
+
+Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+let tags = ["inner_example"] // Set | Tags to filter by
+
+// Finds Pets by tags
+PetAPI.findPetsByTags(tags: tags).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http200(let value, let raw):
+ case .http400(let value, let raw):
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **tags** | [**Set<String>**](String.md) | Tags to filter by |
+
+### Return type
+
+#### FindPetsByTags
+
+```swift
+public enum FindPetsByTags {
+ case http200(value: Set<Pet>?, raw: ClientResponse)
+ case http400(value: Void?, raw: ClientResponse)
+ case http0(value: Set<Pet>?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+[petstore_auth](../README.md#petstore_auth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/xml, application/json
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **getPetById**
+```swift
+ open class func getPetById(petId: Int64, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+Find pet by ID
+
+Returns a single pet
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+let petId = 987 // Int64 | ID of pet to return
+
+// Find pet by ID
+PetAPI.getPetById(petId: petId).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http200(let value, let raw):
+ case .http400(let value, let raw):
+ case .http404(let value, let raw):
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **petId** | **Int64** | ID of pet to return |
+
+### Return type
+
+#### GetPetById
+
+```swift
+public enum GetPetById {
+ case http200(value: Pet?, raw: ClientResponse)
+ case http400(value: Void?, raw: ClientResponse)
+ case http404(value: Void?, raw: ClientResponse)
+ case http0(value: Pet?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+[api_key](../README.md#api_key)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/xml, application/json
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **updatePet**
+```swift
+ open class func updatePet(body: Pet, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+Update an existing pet
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+let body = Pet(id: 123, category: Category(id: 123, name: "name_example"), name: "name_example", photoUrls: ["photoUrls_example"], tags: [Tag(id: 123, name: "name_example")], status: "status_example") // Pet | Pet object that needs to be added to the store
+
+// Update an existing pet
+PetAPI.updatePet(body: body).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http200(let value, let raw):
+ case .http400(let value, let raw):
+ case .http404(let value, let raw):
+ case .http405(let value, let raw):
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**Pet**](Pet.md) | Pet object that needs to be added to the store |
+
+### Return type
+
+#### UpdatePet
+
+```swift
+public enum UpdatePet {
+ case http200(value: Void?, raw: ClientResponse)
+ case http400(value: Void?, raw: ClientResponse)
+ case http404(value: Void?, raw: ClientResponse)
+ case http405(value: Void?, raw: ClientResponse)
+ case http0(value: Void?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+[petstore_auth](../README.md#petstore_auth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json, application/xml
+ - **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **updatePetWithForm**
+```swift
+ open class func updatePetWithForm(petId: Int64, name: String? = nil, status: String? = nil, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+Updates a pet in the store with form data
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+let petId = 987 // Int64 | ID of pet that needs to be updated
+let name = "name_example" // String | Updated name of the pet (optional)
+let status = "status_example" // String | Updated status of the pet (optional)
+
+// Updates a pet in the store with form data
+PetAPI.updatePetWithForm(petId: petId, name: name, status: status).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http405(let value, let raw):
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **petId** | **Int64** | ID of pet that needs to be updated |
+ **name** | **String** | Updated name of the pet | [optional]
+ **status** | **String** | Updated status of the pet | [optional]
+
+### Return type
+
+#### UpdatePetWithForm
+
+```swift
+public enum UpdatePetWithForm {
+ case http405(value: Void?, raw: ClientResponse)
+ case http0(value: Void?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+[petstore_auth](../README.md#petstore_auth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/x-www-form-urlencoded
+ - **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **uploadFile**
+```swift
+ open class func uploadFile(petId: Int64, additionalMetadata: String? = nil, file: Data? = nil, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+uploads an image
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+let petId = 987 // Int64 | ID of pet to update
+let additionalMetadata = "additionalMetadata_example" // String | Additional data to pass to server (optional)
+let file = Data([9, 8, 7]) // Data | file to upload (optional)
+
+// uploads an image
+PetAPI.uploadFile(petId: petId, additionalMetadata: additionalMetadata, file: file).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http200(let value, let raw):
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **petId** | **Int64** | ID of pet to update |
+ **additionalMetadata** | **String** | Additional data to pass to server | [optional]
+ **file** | **Data** | file to upload | [optional]
+
+### Return type
+
+#### UploadFile
+
+```swift
+public enum UploadFile {
+ case http200(value: ApiResponse?, raw: ClientResponse)
+ case http0(value: ApiResponse?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+[petstore_auth](../README.md#petstore_auth)
+
+### HTTP request headers
+
+ - **Content-Type**: multipart/form-data
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **uploadFileWithRequiredFile**
+```swift
+ open class func uploadFileWithRequiredFile(petId: Int64, requiredFile: Data, additionalMetadata: String? = nil, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+uploads an image (required)
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+let petId = 987 // Int64 | ID of pet to update
+let requiredFile = Data([9, 8, 7]) // Data | file to upload
+let additionalMetadata = "additionalMetadata_example" // String | Additional data to pass to server (optional)
+
+// uploads an image (required)
+PetAPI.uploadFileWithRequiredFile(petId: petId, requiredFile: requiredFile, additionalMetadata: additionalMetadata).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http200(let value, let raw):
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **petId** | **Int64** | ID of pet to update |
+ **requiredFile** | **Data** | file to upload |
+ **additionalMetadata** | **String** | Additional data to pass to server | [optional]
+
+### Return type
+
+#### UploadFileWithRequiredFile
+
+```swift
+public enum UploadFileWithRequiredFile {
+ case http200(value: ApiResponse?, raw: ClientResponse)
+ case http0(value: ApiResponse?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+[petstore_auth](../README.md#petstore_auth)
+
+### HTTP request headers
+
+ - **Content-Type**: multipart/form-data
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/ReadOnlyFirst.md b/samples/client/petstore/swift5/vaporLibrary/docs/ReadOnlyFirst.md
new file mode 100644
index 00000000000..ed537b87598
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/ReadOnlyFirst.md
@@ -0,0 +1,11 @@
+# ReadOnlyFirst
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**bar** | **String** | | [optional] [readonly]
+**baz** | **String** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/Return.md b/samples/client/petstore/swift5/vaporLibrary/docs/Return.md
new file mode 100644
index 00000000000..e310b15bb5b
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/Return.md
@@ -0,0 +1,10 @@
+# Return
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**`return`** | **Int** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/SpecialModelName.md b/samples/client/petstore/swift5/vaporLibrary/docs/SpecialModelName.md
new file mode 100644
index 00000000000..3ec27a38c2a
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/SpecialModelName.md
@@ -0,0 +1,10 @@
+# SpecialModelName
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**specialPropertyName** | **Int64** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/StoreAPI.md b/samples/client/petstore/swift5/vaporLibrary/docs/StoreAPI.md
new file mode 100644
index 00000000000..d5d5e28833f
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/StoreAPI.md
@@ -0,0 +1,250 @@
+# StoreAPI
+
+All URIs are relative to *http://petstore.swagger.io:80/v2*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**deleteOrder**](StoreAPI.md#deleteorder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID
+[**getInventory**](StoreAPI.md#getinventory) | **GET** /store/inventory | Returns pet inventories by status
+[**getOrderById**](StoreAPI.md#getorderbyid) | **GET** /store/order/{order_id} | Find purchase order by ID
+[**placeOrder**](StoreAPI.md#placeorder) | **POST** /store/order | Place an order for a pet
+
+
+# **deleteOrder**
+```swift
+ open class func deleteOrder(orderId: String, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+Delete purchase order by ID
+
+For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+let orderId = "orderId_example" // String | ID of the order that needs to be deleted
+
+// Delete purchase order by ID
+StoreAPI.deleteOrder(orderId: orderId).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http400(let value, let raw):
+ case .http404(let value, let raw):
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **orderId** | **String** | ID of the order that needs to be deleted |
+
+### Return type
+
+#### DeleteOrder
+
+```swift
+public enum DeleteOrder {
+ case http400(value: Void?, raw: ClientResponse)
+ case http404(value: Void?, raw: ClientResponse)
+ case http0(value: Void?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **getInventory**
+```swift
+ open class func getInventory(headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+Returns pet inventories by status
+
+Returns a map of status codes to quantities
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+
+// Returns pet inventories by status
+StoreAPI.getInventory().whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http200(let value, let raw):
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+#### GetInventory
+
+```swift
+public enum GetInventory {
+ case http200(value: [String: Int]?, raw: ClientResponse)
+ case http0(value: [String: Int]?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+[api_key](../README.md#api_key)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **getOrderById**
+```swift
+ open class func getOrderById(orderId: Int64, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+Find purchase order by ID
+
+For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+let orderId = 987 // Int64 | ID of pet that needs to be fetched
+
+// Find purchase order by ID
+StoreAPI.getOrderById(orderId: orderId).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http200(let value, let raw):
+ case .http400(let value, let raw):
+ case .http404(let value, let raw):
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **orderId** | **Int64** | ID of pet that needs to be fetched |
+
+### Return type
+
+#### GetOrderById
+
+```swift
+public enum GetOrderById {
+ case http200(value: Order?, raw: ClientResponse)
+ case http400(value: Void?, raw: ClientResponse)
+ case http404(value: Void?, raw: ClientResponse)
+ case http0(value: Order?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/xml, application/json
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **placeOrder**
+```swift
+ open class func placeOrder(body: Order, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+Place an order for a pet
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+let body = Order(id: 123, petId: 123, quantity: 123, shipDate: Date(), status: "status_example", complete: false) // Order | order placed for purchasing the pet
+
+// Place an order for a pet
+StoreAPI.placeOrder(body: body).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http200(let value, let raw):
+ case .http400(let value, let raw):
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**Order**](Order.md) | order placed for purchasing the pet |
+
+### Return type
+
+#### PlaceOrder
+
+```swift
+public enum PlaceOrder {
+ case http200(value: Order?, raw: ClientResponse)
+ case http400(value: Void?, raw: ClientResponse)
+ case http0(value: Order?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/xml, application/json
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/StringBooleanMap.md b/samples/client/petstore/swift5/vaporLibrary/docs/StringBooleanMap.md
new file mode 100644
index 00000000000..7abf11ec68b
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/StringBooleanMap.md
@@ -0,0 +1,9 @@
+# StringBooleanMap
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/Tag.md b/samples/client/petstore/swift5/vaporLibrary/docs/Tag.md
new file mode 100644
index 00000000000..ff4ac8aa451
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/Tag.md
@@ -0,0 +1,11 @@
+# Tag
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **Int64** | | [optional]
+**name** | **String** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/TypeHolderDefault.md b/samples/client/petstore/swift5/vaporLibrary/docs/TypeHolderDefault.md
new file mode 100644
index 00000000000..5161394bdc3
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/TypeHolderDefault.md
@@ -0,0 +1,14 @@
+# TypeHolderDefault
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | | [default to "what"]
+**numberItem** | **Double** | |
+**integerItem** | **Int** | |
+**boolItem** | **Bool** | | [default to true]
+**arrayItem** | **[Int]** | |
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/TypeHolderExample.md b/samples/client/petstore/swift5/vaporLibrary/docs/TypeHolderExample.md
new file mode 100644
index 00000000000..c0530dc0e5b
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/TypeHolderExample.md
@@ -0,0 +1,15 @@
+# TypeHolderExample
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | **Double** | |
+**floatItem** | **Float** | |
+**integerItem** | **Int** | |
+**boolItem** | **Bool** | |
+**arrayItem** | **[Int]** | |
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/User.md b/samples/client/petstore/swift5/vaporLibrary/docs/User.md
new file mode 100644
index 00000000000..5a439de0ff9
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/User.md
@@ -0,0 +1,17 @@
+# User
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **Int64** | | [optional]
+**username** | **String** | | [optional]
+**firstName** | **String** | | [optional]
+**lastName** | **String** | | [optional]
+**email** | **String** | | [optional]
+**password** | **String** | | [optional]
+**phone** | **String** | | [optional]
+**userStatus** | **Int** | User Status | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/UserAPI.md b/samples/client/petstore/swift5/vaporLibrary/docs/UserAPI.md
new file mode 100644
index 00000000000..1d6e94e0431
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/UserAPI.md
@@ -0,0 +1,480 @@
+# UserAPI
+
+All URIs are relative to *http://petstore.swagger.io:80/v2*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**createUser**](UserAPI.md#createuser) | **POST** /user | Create user
+[**createUsersWithArrayInput**](UserAPI.md#createuserswitharrayinput) | **POST** /user/createWithArray | Creates list of users with given input array
+[**createUsersWithListInput**](UserAPI.md#createuserswithlistinput) | **POST** /user/createWithList | Creates list of users with given input array
+[**deleteUser**](UserAPI.md#deleteuser) | **DELETE** /user/{username} | Delete user
+[**getUserByName**](UserAPI.md#getuserbyname) | **GET** /user/{username} | Get user by user name
+[**loginUser**](UserAPI.md#loginuser) | **GET** /user/login | Logs user into the system
+[**logoutUser**](UserAPI.md#logoutuser) | **GET** /user/logout | Logs out current logged in user session
+[**updateUser**](UserAPI.md#updateuser) | **PUT** /user/{username} | Updated user
+
+
+# **createUser**
+```swift
+ open class func createUser(body: User, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+Create user
+
+This can only be done by the logged in user.
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+let body = User(id: 123, username: "username_example", firstName: "firstName_example", lastName: "lastName_example", email: "email_example", password: "password_example", phone: "phone_example", userStatus: 123) // User | Created user object
+
+// Create user
+UserAPI.createUser(body: body).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**User**](User.md) | Created user object |
+
+### Return type
+
+#### CreateUser
+
+```swift
+public enum CreateUser {
+ case http0(value: Void?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **createUsersWithArrayInput**
+```swift
+ open class func createUsersWithArrayInput(body: [User], headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+Creates list of users with given input array
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+let body = [User(id: 123, username: "username_example", firstName: "firstName_example", lastName: "lastName_example", email: "email_example", password: "password_example", phone: "phone_example", userStatus: 123)] // [User] | List of user object
+
+// Creates list of users with given input array
+UserAPI.createUsersWithArrayInput(body: body).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**[User]**](User.md) | List of user object |
+
+### Return type
+
+#### CreateUsersWithArrayInput
+
+```swift
+public enum CreateUsersWithArrayInput {
+ case http0(value: Void?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **createUsersWithListInput**
+```swift
+ open class func createUsersWithListInput(body: [User], headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+Creates list of users with given input array
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+let body = [User(id: 123, username: "username_example", firstName: "firstName_example", lastName: "lastName_example", email: "email_example", password: "password_example", phone: "phone_example", userStatus: 123)] // [User] | List of user object
+
+// Creates list of users with given input array
+UserAPI.createUsersWithListInput(body: body).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**[User]**](User.md) | List of user object |
+
+### Return type
+
+#### CreateUsersWithListInput
+
+```swift
+public enum CreateUsersWithListInput {
+ case http0(value: Void?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **deleteUser**
+```swift
+ open class func deleteUser(username: String, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+Delete user
+
+This can only be done by the logged in user.
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+let username = "username_example" // String | The name that needs to be deleted
+
+// Delete user
+UserAPI.deleteUser(username: username).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http400(let value, let raw):
+ case .http404(let value, let raw):
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **username** | **String** | The name that needs to be deleted |
+
+### Return type
+
+#### DeleteUser
+
+```swift
+public enum DeleteUser {
+ case http400(value: Void?, raw: ClientResponse)
+ case http404(value: Void?, raw: ClientResponse)
+ case http0(value: Void?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **getUserByName**
+```swift
+ open class func getUserByName(username: String, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+Get user by user name
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+let username = "username_example" // String | The name that needs to be fetched. Use user1 for testing.
+
+// Get user by user name
+UserAPI.getUserByName(username: username).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http200(let value, let raw):
+ case .http400(let value, let raw):
+ case .http404(let value, let raw):
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **username** | **String** | The name that needs to be fetched. Use user1 for testing. |
+
+### Return type
+
+#### GetUserByName
+
+```swift
+public enum GetUserByName {
+ case http200(value: User?, raw: ClientResponse)
+ case http400(value: Void?, raw: ClientResponse)
+ case http404(value: Void?, raw: ClientResponse)
+ case http0(value: User?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/xml, application/json
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **loginUser**
+```swift
+ open class func loginUser(username: String, password: String, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+Logs user into the system
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+let username = "username_example" // String | The user name for login
+let password = "password_example" // String | The password for login in clear text
+
+// Logs user into the system
+UserAPI.loginUser(username: username, password: password).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http200(let value, let raw):
+ case .http400(let value, let raw):
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **username** | **String** | The user name for login |
+ **password** | **String** | The password for login in clear text |
+
+### Return type
+
+#### LoginUser
+
+```swift
+public enum LoginUser {
+ case http200(value: String?, raw: ClientResponse)
+ case http400(value: Void?, raw: ClientResponse)
+ case http0(value: String?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/xml, application/json
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **logoutUser**
+```swift
+ open class func logoutUser(headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+Logs out current logged in user session
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+
+// Logs out current logged in user session
+UserAPI.logoutUser().whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+#### LogoutUser
+
+```swift
+public enum LogoutUser {
+ case http0(value: Void?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **updateUser**
+```swift
+ open class func updateUser(username: String, body: User, headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture
+```
+
+Updated user
+
+This can only be done by the logged in user.
+
+### Example
+```swift
+// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
+import PetstoreClient
+
+let username = "username_example" // String | name that need to be deleted
+let body = User(id: 123, username: "username_example", firstName: "firstName_example", lastName: "lastName_example", email: "email_example", password: "password_example", phone: "phone_example", userStatus: 123) // User | Updated user object
+
+// Updated user
+UserAPI.updateUser(username: username, body: body).whenComplete { result in
+ switch result {
+ case .failure(let error):
+ // process error
+ case .success(let response):
+ switch response {
+ // process decoded response value or raw ClientResponse
+ case .http400(let value, let raw):
+ case .http404(let value, let raw):
+ case .http0(let value, let raw):
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **username** | **String** | name that need to be deleted |
+ **body** | [**User**](User.md) | Updated user object |
+
+### Return type
+
+#### UpdateUser
+
+```swift
+public enum UpdateUser {
+ case http400(value: Void?, raw: ClientResponse)
+ case http404(value: Void?, raw: ClientResponse)
+ case http0(value: Void?, raw: ClientResponse)
+}
+```
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/XmlItem.md b/samples/client/petstore/swift5/vaporLibrary/docs/XmlItem.md
new file mode 100644
index 00000000000..1a4eb4e9c83
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/docs/XmlItem.md
@@ -0,0 +1,38 @@
+# XmlItem
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**attributeString** | **String** | | [optional]
+**attributeNumber** | **Double** | | [optional]
+**attributeInteger** | **Int** | | [optional]
+**attributeBoolean** | **Bool** | | [optional]
+**wrappedArray** | **[Int]** | | [optional]
+**nameString** | **String** | | [optional]
+**nameNumber** | **Double** | | [optional]
+**nameInteger** | **Int** | | [optional]
+**nameBoolean** | **Bool** | | [optional]
+**nameArray** | **[Int]** | | [optional]
+**nameWrappedArray** | **[Int]** | | [optional]
+**prefixString** | **String** | | [optional]
+**prefixNumber** | **Double** | | [optional]
+**prefixInteger** | **Int** | | [optional]
+**prefixBoolean** | **Bool** | | [optional]
+**prefixArray** | **[Int]** | | [optional]
+**prefixWrappedArray** | **[Int]** | | [optional]
+**namespaceString** | **String** | | [optional]
+**namespaceNumber** | **Double** | | [optional]
+**namespaceInteger** | **Int** | | [optional]
+**namespaceBoolean** | **Bool** | | [optional]
+**namespaceArray** | **[Int]** | | [optional]
+**namespaceWrappedArray** | **[Int]** | | [optional]
+**prefixNsString** | **String** | | [optional]
+**prefixNsNumber** | **Double** | | [optional]
+**prefixNsInteger** | **Int** | | [optional]
+**prefixNsBoolean** | **Bool** | | [optional]
+**prefixNsArray** | **[Int]** | | [optional]
+**prefixNsWrappedArray** | **[Int]** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/pom.xml b/samples/client/petstore/swift5/vaporLibrary/pom.xml
new file mode 100644
index 00000000000..c1b201eb3b4
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/pom.xml
@@ -0,0 +1,43 @@
+
+ 4.0.0
+ io.swagger
+ Swift5PetstoreClientTests
+ pom
+ 1.0-SNAPSHOT
+ Swift5 Swagger Petstore Client
+
+
+
+ maven-dependency-plugin
+
+
+ package
+
+ copy-dependencies
+
+
+ ${project.build.directory}
+
+
+
+
+
+ org.codehaus.mojo
+ exec-maven-plugin
+ 1.2.1
+
+
+ xcodebuild-test
+ integration-test
+
+ exec
+
+
+ ./run_spmbuild.sh
+
+
+
+
+
+
+
diff --git a/samples/client/petstore/swift5/vaporLibrary/run_spmbuild.sh b/samples/client/petstore/swift5/vaporLibrary/run_spmbuild.sh
new file mode 100755
index 00000000000..1a9f585ad05
--- /dev/null
+++ b/samples/client/petstore/swift5/vaporLibrary/run_spmbuild.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+swift build && exit ${PIPESTATUS[0]}
diff --git a/samples/client/petstore/swift5/x-swift-hashable/Package.resolved b/samples/client/petstore/swift5/x-swift-hashable/Package.resolved
index 85bb93ced12..d384b276b4b 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/Package.resolved
+++ b/samples/client/petstore/swift5/x-swift-hashable/Package.resolved
@@ -6,8 +6,8 @@
"repositoryURL": "https://github.com/Flight-School/AnyCodable",
"state": {
"branch": null,
- "revision": "38b05fc9f86501ef8018aa90cf3d83bd97f74067",
- "version": "0.4.0"
+ "revision": "876d162385e9862ae8b3c8d65dc301312b040005",
+ "version": "0.6.0"
}
}
]
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/APIs.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/APIs.swift
index 01bc6ff0d8d..941c61b713a 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/APIs.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/APIs.swift
@@ -11,8 +11,8 @@ public typealias PetstoreClientAPI = PetstoreClient
open class PetstoreClient {
public static var basePath = "http://petstore.swagger.io:80/v2"
- public static var credential: URLCredential?
public static var customHeaders: [String: String] = [:]
+ public static var credential: URLCredential?
public static var requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory()
public static var apiResponseQueue: DispatchQueue = .main
}
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift
index 542fb6f69ba..7d09ab30c12 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/APIs/AnotherFakeAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class AnotherFakeAPI {
+
/**
To test special tags
@@ -50,5 +54,4 @@ open class AnotherFakeAPI {
return requestBuilder.init(method: "PATCH", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift
index 9b75edc92ee..5480213e38d 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class FakeAPI {
+
/**
- parameter body: (body) Input boolean as post body (optional)
@@ -680,5 +684,4 @@ open class FakeAPI {
return requestBuilder.init(method: "GET", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift
index fd7d845d340..9683e0ce5b1 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/APIs/FakeClassnameTags123API.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class FakeClassnameTags123API {
+
/**
To test class name in snake case
@@ -53,5 +57,4 @@ open class FakeClassnameTags123API {
return requestBuilder.init(method: "PATCH", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift
index d7d5bdfa2ea..8cbd15364b6 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/APIs/PetAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class PetAPI {
+
/**
Add a new pet to the store
@@ -479,5 +483,4 @@ open class PetAPI {
return requestBuilder.init(method: "POST", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift
index c80d4286b53..a83e954ae6a 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/APIs/StoreAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class StoreAPI {
+
/**
Delete purchase order by ID
@@ -185,5 +189,4 @@ open class StoreAPI {
return requestBuilder.init(method: "POST", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift
index 542dc212bd1..dbff6ade41c 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/APIs/UserAPI.swift
@@ -6,8 +6,12 @@
//
import Foundation
+#if canImport(AnyCodable)
+import AnyCodable
+#endif
open class UserAPI {
+
/**
Create user
@@ -362,5 +366,4 @@ open class UserAPI {
return requestBuilder.init(method: "PUT", URLString: (urlComponents?.string ?? URLString), parameters: parameters, headers: headerParameters)
}
-
}
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Configuration.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Configuration.swift
index 18edabbed78..8fb05331889 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Configuration.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Configuration.swift
@@ -7,6 +7,7 @@
import Foundation
open class Configuration {
+
// This value is used to configure the date formatter that is used to serialize dates into JSON format.
// You must set it prior to encoding any dates, and it will only be read once.
@available(*, unavailable, message: "To set a different date format, use CodableHelper.dateFormatter instead.")
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift
index 9080af3e960..e760b200563 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/AdditionalPropertiesClass.swift
@@ -33,3 +33,4 @@ public struct AdditionalPropertiesClass: Codable {
try container.encodeIfPresent(mapMapString, forKey: .mapMapString)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift
index c26cc3b6a8d..fb1a2df615d 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Animal.swift
@@ -33,3 +33,4 @@ public struct Animal: Codable {
try container.encodeIfPresent(color, forKey: .color)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift
index 7d81a45adbe..4ee097de054 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/ApiResponse.swift
@@ -37,3 +37,4 @@ public struct ApiResponse: Codable {
try container.encodeIfPresent(message, forKey: .message)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift
index d25598464fb..6f3ceb17753 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfArrayOfNumberOnly.swift
@@ -29,3 +29,4 @@ public struct ArrayOfArrayOfNumberOnly: Codable {
try container.encodeIfPresent(arrayArrayNumber, forKey: .arrayArrayNumber)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift
index 1d28ec680cc..eb9892beb2b 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/ArrayOfNumberOnly.swift
@@ -29,3 +29,4 @@ public struct ArrayOfNumberOnly: Codable {
try container.encodeIfPresent(arrayNumber, forKey: .arrayNumber)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift
index 6f1028d1507..76aad66ec82 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/ArrayTest.swift
@@ -37,3 +37,4 @@ public struct ArrayTest: Codable {
try container.encodeIfPresent(arrayArrayOfModel, forKey: .arrayArrayOfModel)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift
index 74ec197ecda..d06bb38d2d1 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Capitalization.swift
@@ -50,3 +50,4 @@ public struct Capitalization: Codable {
try container.encodeIfPresent(ATT_NAME, forKey: .ATT_NAME)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift
index 8645c52b44f..7a394aca88d 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Cat.swift
@@ -37,3 +37,4 @@ public struct Cat: Codable {
try container.encodeIfPresent(declawed, forKey: .declawed)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift
index ed986d32cc6..679eda93b89 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/CatAllOf.swift
@@ -29,3 +29,4 @@ public struct CatAllOf: Codable {
try container.encodeIfPresent(declawed, forKey: .declawed)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Category.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Category.swift
index 398da60aa73..89016ca353d 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Category.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Category.swift
@@ -33,3 +33,4 @@ public struct Category: Codable, Hashable {
try container.encode(name, forKey: .name)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift
index c38e0db828f..bc4e56c01ae 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/ClassModel.swift
@@ -30,3 +30,4 @@ public struct ClassModel: Codable {
try container.encodeIfPresent(_class, forKey: ._class)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Client.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Client.swift
index 170939891b6..f1c50e5b8b9 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Client.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Client.swift
@@ -29,3 +29,4 @@ public struct Client: Codable {
try container.encodeIfPresent(client, forKey: .client)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift
index 57ed7a20a3c..55c387c28ae 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Dog.swift
@@ -37,3 +37,4 @@ public struct Dog: Codable {
try container.encodeIfPresent(breed, forKey: .breed)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift
index 5be7f8b08ca..b86ba8ccf8f 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/DogAllOf.swift
@@ -29,3 +29,4 @@ public struct DogAllOf: Codable {
try container.encodeIfPresent(breed, forKey: .breed)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift
index 67c2e914a2e..edd583c8a29 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift
@@ -41,3 +41,4 @@ public struct EnumArrays: Codable {
try container.encodeIfPresent(arrayEnum, forKey: .arrayEnum)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift
index a70a595f214..4ae75032cfc 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift
@@ -63,3 +63,4 @@ public struct EnumTest: Codable {
try container.encodeIfPresent(outerEnum, forKey: .outerEnum)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/File.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/File.swift
index 69e3da33b3f..d6513e0df74 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/File.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/File.swift
@@ -31,3 +31,4 @@ public struct File: Codable {
try container.encodeIfPresent(sourceURI, forKey: .sourceURI)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift
index 68387be7c4c..d707e2ff2e2 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/FileSchemaTestClass.swift
@@ -33,3 +33,4 @@ public struct FileSchemaTestClass: Codable {
try container.encodeIfPresent(files, forKey: .files)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift
index fcbb5c3f7be..cbf0050081e 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/FormatTest.swift
@@ -77,3 +77,4 @@ public struct FormatTest: Codable {
try container.encode(password, forKey: .password)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift
index 42fe810e04a..9185cd673a8 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/HasOnlyReadOnly.swift
@@ -33,3 +33,4 @@ public struct HasOnlyReadOnly: Codable {
try container.encodeIfPresent(foo, forKey: .foo)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/List.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/List.swift
index e5c7ec7f3d6..6568fe28f34 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/List.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/List.swift
@@ -29,3 +29,4 @@ public struct List: Codable {
try container.encodeIfPresent(_123list, forKey: ._123list)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift
index c1d8412cda0..eb9634803b3 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift
@@ -45,3 +45,4 @@ public struct MapTest: Codable {
try container.encodeIfPresent(indirectMap, forKey: .indirectMap)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
index e2b08455158..4d171a58c80 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/MixedPropertiesAndAdditionalPropertiesClass.swift
@@ -37,3 +37,4 @@ public struct MixedPropertiesAndAdditionalPropertiesClass: Codable {
try container.encodeIfPresent(map, forKey: .map)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift
index 3e02e71a66f..24a07e862b8 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Model200Response.swift
@@ -34,3 +34,4 @@ public struct Model200Response: Codable {
try container.encodeIfPresent(_class, forKey: ._class)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Name.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Name.swift
index 9cef79be16c..15308075d9a 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Name.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Name.swift
@@ -42,3 +42,4 @@ public struct Name: Codable {
try container.encodeIfPresent(_123number, forKey: ._123number)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift
index 9da0be0af2b..555b1beda1d 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/NumberOnly.swift
@@ -29,3 +29,4 @@ public struct NumberOnly: Codable {
try container.encodeIfPresent(justNumber, forKey: .justNumber)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Order.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Order.swift
index adde2ac7624..be133bc42ad 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Order.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Order.swift
@@ -55,3 +55,4 @@ public struct Order: Codable {
try container.encodeIfPresent(complete, forKey: .complete)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift
index 0a520ef9ae7..6e555ae9e1e 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/OuterComposite.swift
@@ -37,3 +37,4 @@ public struct OuterComposite: Codable {
try container.encodeIfPresent(myBoolean, forKey: .myBoolean)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift
index a87ab825ea0..ddd1186b891 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift
@@ -55,3 +55,4 @@ public struct Pet: Codable, Hashable {
try container.encodeIfPresent(status, forKey: .status)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift
index eeaf9625e38..b4cd35ad296 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/ReadOnlyFirst.swift
@@ -33,3 +33,4 @@ public struct ReadOnlyFirst: Codable {
try container.encodeIfPresent(baz, forKey: .baz)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Return.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Return.swift
index b1abd5c6485..f12d1c17fdc 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Return.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Return.swift
@@ -30,3 +30,4 @@ public struct Return: Codable {
try container.encodeIfPresent(_return, forKey: ._return)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift
index 65d9147f3e6..f797e406453 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/SpecialModelName.swift
@@ -29,3 +29,4 @@ public struct SpecialModelName: Codable {
try container.encodeIfPresent(specialPropertyName, forKey: .specialPropertyName)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift
index 9494292aaef..1ef2bd41c79 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/StringBooleanMap.swift
@@ -49,3 +49,4 @@ public struct StringBooleanMap: Codable {
additionalProperties = try additionalPropertiesContainer.decodeMap(Bool.self, excludedKeys: nonAdditionalPropertyKeys)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift
index cd5acc827db..07b826264f3 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/Tag.swift
@@ -33,3 +33,4 @@ public struct Tag: Codable, Hashable {
try container.encodeIfPresent(name, forKey: .name)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift
index ac7d4626df7..dcf87b413ab 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderDefault.swift
@@ -45,3 +45,4 @@ public struct TypeHolderDefault: Codable {
try container.encode(arrayItem, forKey: .arrayItem)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift
index 2de070c4927..634f2d55168 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/TypeHolderExample.swift
@@ -45,3 +45,4 @@ public struct TypeHolderExample: Codable {
try container.encode(arrayItem, forKey: .arrayItem)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/User.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/User.swift
index c25aec1dc04..bad75dea179 100644
--- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/User.swift
+++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/Models/User.swift
@@ -58,3 +58,4 @@ public struct User: Codable {
try container.encodeIfPresent(userStatus, forKey: .userStatus)
}
}
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/pom.xml b/samples/client/petstore/swift5/x-swift-hashable/pom.xml
new file mode 100644
index 00000000000..c1b201eb3b4
--- /dev/null
+++ b/samples/client/petstore/swift5/x-swift-hashable/pom.xml
@@ -0,0 +1,43 @@
+
+ 4.0.0
+ io.swagger
+ Swift5PetstoreClientTests
+ pom
+ 1.0-SNAPSHOT
+ Swift5 Swagger Petstore Client
+
+
+
+ maven-dependency-plugin
+
+
+ package
+
+ copy-dependencies
+
+
+ ${project.build.directory}
+
+
+
+
+
+ org.codehaus.mojo
+ exec-maven-plugin
+ 1.2.1
+
+
+ xcodebuild-test
+ integration-test
+
+ exec
+
+
+ ./run_spmbuild.sh
+
+
+
+
+
+
+
diff --git a/samples/client/petstore/swift5/x-swift-hashable/run_spmbuild.sh b/samples/client/petstore/swift5/x-swift-hashable/run_spmbuild.sh
new file mode 100755
index 00000000000..1a9f585ad05
--- /dev/null
+++ b/samples/client/petstore/swift5/x-swift-hashable/run_spmbuild.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+swift build && exit ${PIPESTATUS[0]}