forked from loafle/openapi-generator-original
feat(swift5): allow to swift build in linux (#15060)
* feat(swift5): allow to swift build in linux * chore(ci): add .github/workflows/samples-swift.yaml * feat(swif5): bump Alamofire to 5.7.0 * chore(ci): run in macos all swift sample clients
This commit is contained in:
parent
057bc8e626
commit
604239abba
50
.github/workflows/samples-swift.yaml
vendored
Normal file
50
.github/workflows/samples-swift.yaml
vendored
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
name: Samples Swift
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/swift5/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/swift5/**
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
os: [macos-latest]
|
||||||
|
sample:
|
||||||
|
- samples/client/petstore/swift5/alamofireLibrary
|
||||||
|
- samples/client/petstore/swift5/anycodableLibrary
|
||||||
|
- samples/client/petstore/swift5/asyncAwaitLibrary
|
||||||
|
- samples/client/petstore/swift5/combineLibrary
|
||||||
|
- samples/client/petstore/swift5/default
|
||||||
|
- samples/client/petstore/swift5/deprecated
|
||||||
|
- samples/client/petstore/swift5/frozenEnums
|
||||||
|
- samples/client/petstore/swift5/nonPublicApi
|
||||||
|
- samples/client/petstore/swift5/objcCompatible
|
||||||
|
- samples/client/petstore/swift5/oneOf
|
||||||
|
- samples/client/petstore/swift5/promisekitLibrary
|
||||||
|
- samples/client/petstore/swift5/readonlyProperties
|
||||||
|
- samples/client/petstore/swift5/resultLibrary
|
||||||
|
- samples/client/petstore/swift5/rxswiftLibrary
|
||||||
|
- samples/client/petstore/swift5/urlsessionLibrary
|
||||||
|
- samples/client/petstore/swift5/validation
|
||||||
|
# NOTE: disabled as vaporLibrary doesnt build when adding this CI config
|
||||||
|
#- samples/client/petstore/swift5/vaporLibrary
|
||||||
|
- samples/client/petstore/swift5/x-swift-hashable
|
||||||
|
include:
|
||||||
|
- os: ubuntu-latest
|
||||||
|
sample: samples/client/petstore/swift5/alamofireLibrary
|
||||||
|
name: Build Swift samples
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: swift-actions/setup-swift@v1
|
||||||
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||||
|
with:
|
||||||
|
swift-version: '5'
|
||||||
|
- name: Build
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: swift build
|
@ -4,7 +4,10 @@
|
|||||||
// https://openapi-generator.tech
|
// https://openapi-generator.tech
|
||||||
//
|
//
|
||||||
|
|
||||||
import Foundation{{#useVapor}}
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif{{#useVapor}}
|
||||||
import Vapor
|
import Vapor
|
||||||
{{/useVapor}}
|
{{/useVapor}}
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
github "Flight-School/AnyCodable" ~> 0.6{{#useAlamofire}}
|
github "Flight-School/AnyCodable" ~> 0.6{{#useAlamofire}}
|
||||||
github "Alamofire/Alamofire" ~> 5.4{{/useAlamofire}}{{#usePromiseKit}}
|
github "Alamofire/Alamofire" ~> 5.7{{/useAlamofire}}{{#usePromiseKit}}
|
||||||
github "mxcl/PromiseKit" ~> 6.15{{/usePromiseKit}}{{#useRxSwift}}
|
github "mxcl/PromiseKit" ~> 6.15{{/usePromiseKit}}{{#useRxSwift}}
|
||||||
github "ReactiveX/RxSwift" ~> 6.2{{/useRxSwift}}
|
github "ReactiveX/RxSwift" ~> 6.2{{/useRxSwift}}
|
||||||
|
@ -4,7 +4,10 @@
|
|||||||
// https://openapi-generator.tech
|
// https://openapi-generator.tech
|
||||||
//
|
//
|
||||||
|
|
||||||
import Foundation{{#useVapor}}
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif{{#useVapor}}
|
||||||
import Vapor{{/useVapor}}{{#useAlamofire}}
|
import Vapor{{/useVapor}}{{#useAlamofire}}
|
||||||
import Alamofire{{/useAlamofire}}
|
import Alamofire{{/useAlamofire}}
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
#if canImport(AnyCodable)
|
#if canImport(AnyCodable)
|
||||||
import AnyCodable
|
import AnyCodable
|
||||||
#endif{{#usePromiseKit}}
|
#endif{{#usePromiseKit}}
|
||||||
|
@ -6,6 +6,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} struct JSONDataEncoding {
|
{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} struct JSONDataEncoding {
|
||||||
|
|
||||||
|
@ -4,7 +4,10 @@
|
|||||||
// https://openapi-generator.tech
|
// https://openapi-generator.tech
|
||||||
//
|
//
|
||||||
|
|
||||||
import Foundation{{#useAlamofire}}
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif{{#useAlamofire}}
|
||||||
import Alamofire{{/useAlamofire}}
|
import Alamofire{{/useAlamofire}}
|
||||||
|
|
||||||
protocol JSONEncodable {
|
protocol JSONEncodable {
|
||||||
|
@ -26,7 +26,7 @@ let package = Package(
|
|||||||
// Dependencies declare other packages that this package depends on.
|
// Dependencies declare other packages that this package depends on.
|
||||||
.package(url: "https://github.com/Flight-School/AnyCodable", .upToNextMajor(from: "0.6.1")),
|
.package(url: "https://github.com/Flight-School/AnyCodable", .upToNextMajor(from: "0.6.1")),
|
||||||
{{#useAlamofire}}
|
{{#useAlamofire}}
|
||||||
.package(url: "https://github.com/Alamofire/Alamofire", .upToNextMajor(from: "5.4.3")),
|
.package(url: "https://github.com/Alamofire/Alamofire", .upToNextMajor(from: "5.7.0")),
|
||||||
{{/useAlamofire}}
|
{{/useAlamofire}}
|
||||||
{{#usePromiseKit}}
|
{{#usePromiseKit}}
|
||||||
.package(url: "https://github.com/mxcl/PromiseKit", .upToNextMajor(from: "6.15.3")),
|
.package(url: "https://github.com/mxcl/PromiseKit", .upToNextMajor(from: "6.15.3")),
|
||||||
|
@ -28,7 +28,7 @@ Pod::Spec.new do |s|
|
|||||||
s.source_files = '{{swiftPackagePath}}{{^swiftPackagePath}}{{#useSPMFileStructure}}Sources/{{projectName}}{{/useSPMFileStructure}}{{^useSPMFileStructure}}{{projectName}}/Classes{{/useSPMFileStructure}}{{/swiftPackagePath}}/**/*.swift'
|
s.source_files = '{{swiftPackagePath}}{{^swiftPackagePath}}{{#useSPMFileStructure}}Sources/{{projectName}}{{/useSPMFileStructure}}{{^useSPMFileStructure}}{{projectName}}/Classes{{/useSPMFileStructure}}{{/swiftPackagePath}}/**/*.swift'
|
||||||
s.dependency 'AnyCodable-FlightSchool', '~> 0.6'
|
s.dependency 'AnyCodable-FlightSchool', '~> 0.6'
|
||||||
{{#useAlamofire}}
|
{{#useAlamofire}}
|
||||||
s.dependency 'Alamofire', '~> 5.4'
|
s.dependency 'Alamofire', '~> 5.7'
|
||||||
{{/useAlamofire}}
|
{{/useAlamofire}}
|
||||||
{{#usePromiseKit}}
|
{{#usePromiseKit}}
|
||||||
s.dependency 'PromiseKit/CorePromise', '~> 6.15'
|
s.dependency 'PromiseKit/CorePromise', '~> 6.15'
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
github "Flight-School/AnyCodable" ~> 0.6
|
github "Flight-School/AnyCodable" ~> 0.6
|
||||||
github "Alamofire/Alamofire" ~> 5.4
|
github "Alamofire/Alamofire" ~> 5.7
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
"repositoryURL": "https://github.com/Alamofire/Alamofire",
|
"repositoryURL": "https://github.com/Alamofire/Alamofire",
|
||||||
"state": {
|
"state": {
|
||||||
"branch": null,
|
"branch": null,
|
||||||
"revision": "8dd85aee02e39dd280c75eef88ffdb86eed4b07b",
|
"revision": "bc268c28fb170f494de9e9927c371b8342979ece",
|
||||||
"version": "5.6.2"
|
"version": "5.7.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -15,8 +15,8 @@
|
|||||||
"repositoryURL": "https://github.com/Flight-School/AnyCodable",
|
"repositoryURL": "https://github.com/Flight-School/AnyCodable",
|
||||||
"state": {
|
"state": {
|
||||||
"branch": null,
|
"branch": null,
|
||||||
"revision": "56901f2af3625b38924d488b612e95fe8846ee9b",
|
"revision": "862808b2070cd908cb04f9aafe7de83d35f81b05",
|
||||||
"version": "0.6.6"
|
"version": "0.6.7"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -20,7 +20,7 @@ let package = Package(
|
|||||||
dependencies: [
|
dependencies: [
|
||||||
// Dependencies declare other packages that this package depends on.
|
// Dependencies declare other packages that this package depends on.
|
||||||
.package(url: "https://github.com/Flight-School/AnyCodable", .upToNextMajor(from: "0.6.1")),
|
.package(url: "https://github.com/Flight-School/AnyCodable", .upToNextMajor(from: "0.6.1")),
|
||||||
.package(url: "https://github.com/Alamofire/Alamofire", .upToNextMajor(from: "5.4.3")),
|
.package(url: "https://github.com/Alamofire/Alamofire", .upToNextMajor(from: "5.7.0")),
|
||||||
],
|
],
|
||||||
targets: [
|
targets: [
|
||||||
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
|
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
|
||||||
|
@ -12,5 +12,5 @@ Pod::Spec.new do |s|
|
|||||||
s.summary = 'PetstoreClient'
|
s.summary = 'PetstoreClient'
|
||||||
s.source_files = 'PetstoreClient/Classes/**/*.swift'
|
s.source_files = 'PetstoreClient/Classes/**/*.swift'
|
||||||
s.dependency 'AnyCodable-FlightSchool', '~> 0.6'
|
s.dependency 'AnyCodable-FlightSchool', '~> 0.6'
|
||||||
s.dependency 'Alamofire', '~> 5.4'
|
s.dependency 'Alamofire', '~> 5.7'
|
||||||
end
|
end
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
open class PetstoreClientAPI {
|
open class PetstoreClientAPI {
|
||||||
public static var basePath = "http://petstore.swagger.io:80/v2"
|
public static var basePath = "http://petstore.swagger.io:80/v2"
|
||||||
public static var customHeaders: [String: String] = [:]
|
public static var customHeaders: [String: String] = [:]
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
import Alamofire
|
import Alamofire
|
||||||
|
|
||||||
open class Configuration {
|
open class Configuration {
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
#if canImport(AnyCodable)
|
#if canImport(AnyCodable)
|
||||||
import AnyCodable
|
import AnyCodable
|
||||||
#endif
|
#endif
|
||||||
|
@ -6,6 +6,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
public struct JSONDataEncoding {
|
public struct JSONDataEncoding {
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
import Alamofire
|
import Alamofire
|
||||||
|
|
||||||
protocol JSONEncodable {
|
protocol JSONEncodable {
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
open class PetstoreClientAPI {
|
open class PetstoreClientAPI {
|
||||||
public static var basePath = "http://localhost"
|
public static var basePath = "http://localhost"
|
||||||
public static var customHeaders: [String: String] = [:]
|
public static var customHeaders: [String: String] = [:]
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
open class Configuration {
|
open class Configuration {
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
#if canImport(AnyCodable)
|
#if canImport(AnyCodable)
|
||||||
import AnyCodable
|
import AnyCodable
|
||||||
#endif
|
#endif
|
||||||
|
@ -6,6 +6,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
public struct JSONDataEncoding {
|
public struct JSONDataEncoding {
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
protocol JSONEncodable {
|
protocol JSONEncodable {
|
||||||
func encodeToJSON() -> Any
|
func encodeToJSON() -> Any
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
open class PetstoreClientAPI {
|
open class PetstoreClientAPI {
|
||||||
public static var basePath = "http://petstore.swagger.io:80/v2"
|
public static var basePath = "http://petstore.swagger.io:80/v2"
|
||||||
public static var customHeaders: [String: String] = [:]
|
public static var customHeaders: [String: String] = [:]
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
open class Configuration {
|
open class Configuration {
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
#if canImport(AnyCodable)
|
#if canImport(AnyCodable)
|
||||||
import AnyCodable
|
import AnyCodable
|
||||||
#endif
|
#endif
|
||||||
|
@ -6,6 +6,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
public struct JSONDataEncoding {
|
public struct JSONDataEncoding {
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
protocol JSONEncodable {
|
protocol JSONEncodable {
|
||||||
func encodeToJSON() -> Any
|
func encodeToJSON() -> Any
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
open class PetstoreClientAPI {
|
open class PetstoreClientAPI {
|
||||||
public static var basePath = "http://petstore.swagger.io:80/v2"
|
public static var basePath = "http://petstore.swagger.io:80/v2"
|
||||||
public static var customHeaders: [String: String] = [:]
|
public static var customHeaders: [String: String] = [:]
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
open class Configuration {
|
open class Configuration {
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
#if canImport(AnyCodable)
|
#if canImport(AnyCodable)
|
||||||
import AnyCodable
|
import AnyCodable
|
||||||
#endif
|
#endif
|
||||||
|
@ -6,6 +6,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
public struct JSONDataEncoding {
|
public struct JSONDataEncoding {
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
protocol JSONEncodable {
|
protocol JSONEncodable {
|
||||||
func encodeToJSON() -> Any
|
func encodeToJSON() -> Any
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
open class PetstoreClientAPI {
|
open class PetstoreClientAPI {
|
||||||
public static var basePath = "http://petstore.swagger.io:80/v2"
|
public static var basePath = "http://petstore.swagger.io:80/v2"
|
||||||
public static var customHeaders: [String: String] = [:]
|
public static var customHeaders: [String: String] = [:]
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
open class Configuration {
|
open class Configuration {
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
#if canImport(AnyCodable)
|
#if canImport(AnyCodable)
|
||||||
import AnyCodable
|
import AnyCodable
|
||||||
#endif
|
#endif
|
||||||
|
@ -6,6 +6,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
public struct JSONDataEncoding {
|
public struct JSONDataEncoding {
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
protocol JSONEncodable {
|
protocol JSONEncodable {
|
||||||
func encodeToJSON() -> Any
|
func encodeToJSON() -> Any
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
open class PetstoreClientAPI {
|
open class PetstoreClientAPI {
|
||||||
public static var basePath = "http://petstore.swagger.io/v2"
|
public static var basePath = "http://petstore.swagger.io/v2"
|
||||||
public static var customHeaders: [String: String] = [:]
|
public static var customHeaders: [String: String] = [:]
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
open class Configuration {
|
open class Configuration {
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
#if canImport(AnyCodable)
|
#if canImport(AnyCodable)
|
||||||
import AnyCodable
|
import AnyCodable
|
||||||
#endif
|
#endif
|
||||||
|
@ -6,6 +6,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
public struct JSONDataEncoding {
|
public struct JSONDataEncoding {
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
protocol JSONEncodable {
|
protocol JSONEncodable {
|
||||||
func encodeToJSON() -> Any
|
func encodeToJSON() -> Any
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
open class PetstoreClientAPI {
|
open class PetstoreClientAPI {
|
||||||
public static var basePath = "http://petstore.swagger.io:80/v2"
|
public static var basePath = "http://petstore.swagger.io:80/v2"
|
||||||
public static var customHeaders: [String: String] = [:]
|
public static var customHeaders: [String: String] = [:]
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
open class Configuration {
|
open class Configuration {
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
#if canImport(AnyCodable)
|
#if canImport(AnyCodable)
|
||||||
import AnyCodable
|
import AnyCodable
|
||||||
#endif
|
#endif
|
||||||
|
@ -6,6 +6,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
public struct JSONDataEncoding {
|
public struct JSONDataEncoding {
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
protocol JSONEncodable {
|
protocol JSONEncodable {
|
||||||
func encodeToJSON() -> Any
|
func encodeToJSON() -> Any
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
internal class PetstoreClientAPI {
|
internal class PetstoreClientAPI {
|
||||||
internal static var basePath = "http://petstore.swagger.io:80/v2"
|
internal static var basePath = "http://petstore.swagger.io:80/v2"
|
||||||
internal static var customHeaders: [String: String] = [:]
|
internal static var customHeaders: [String: String] = [:]
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
internal class Configuration {
|
internal class Configuration {
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
#if canImport(AnyCodable)
|
#if canImport(AnyCodable)
|
||||||
import AnyCodable
|
import AnyCodable
|
||||||
#endif
|
#endif
|
||||||
|
@ -6,6 +6,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
internal struct JSONDataEncoding {
|
internal struct JSONDataEncoding {
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
protocol JSONEncodable {
|
protocol JSONEncodable {
|
||||||
func encodeToJSON() -> Any
|
func encodeToJSON() -> Any
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
open class PetstoreClientAPI {
|
open class PetstoreClientAPI {
|
||||||
public static var basePath = "http://petstore.swagger.io:80/v2"
|
public static var basePath = "http://petstore.swagger.io:80/v2"
|
||||||
public static var customHeaders: [String: String] = [:]
|
public static var customHeaders: [String: String] = [:]
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
open class Configuration {
|
open class Configuration {
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
#if canImport(AnyCodable)
|
#if canImport(AnyCodable)
|
||||||
import AnyCodable
|
import AnyCodable
|
||||||
#endif
|
#endif
|
||||||
|
@ -6,6 +6,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
public struct JSONDataEncoding {
|
public struct JSONDataEncoding {
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
protocol JSONEncodable {
|
protocol JSONEncodable {
|
||||||
func encodeToJSON() -> Any
|
func encodeToJSON() -> Any
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
open class PetstoreClientAPI {
|
open class PetstoreClientAPI {
|
||||||
public static var basePath = "http://localhost"
|
public static var basePath = "http://localhost"
|
||||||
public static var customHeaders: [String: String] = [:]
|
public static var customHeaders: [String: String] = [:]
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
open class Configuration {
|
open class Configuration {
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
#if canImport(AnyCodable)
|
#if canImport(AnyCodable)
|
||||||
import AnyCodable
|
import AnyCodable
|
||||||
#endif
|
#endif
|
||||||
|
@ -6,6 +6,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
public struct JSONDataEncoding {
|
public struct JSONDataEncoding {
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
protocol JSONEncodable {
|
protocol JSONEncodable {
|
||||||
func encodeToJSON() -> Any
|
func encodeToJSON() -> Any
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
open class PetstoreClientAPI {
|
open class PetstoreClientAPI {
|
||||||
public static var basePath = "http://petstore.swagger.io:80/v2"
|
public static var basePath = "http://petstore.swagger.io:80/v2"
|
||||||
public static var customHeaders: [String: String] = [:]
|
public static var customHeaders: [String: String] = [:]
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
open class Configuration {
|
open class Configuration {
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
#if canImport(AnyCodable)
|
#if canImport(AnyCodable)
|
||||||
import AnyCodable
|
import AnyCodable
|
||||||
#endif
|
#endif
|
||||||
|
@ -6,6 +6,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
public struct JSONDataEncoding {
|
public struct JSONDataEncoding {
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
protocol JSONEncodable {
|
protocol JSONEncodable {
|
||||||
func encodeToJSON() -> Any
|
func encodeToJSON() -> Any
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
open class PetstoreClientAPI {
|
open class PetstoreClientAPI {
|
||||||
public static var basePath = "http://petstore.swagger.io:80/v2"
|
public static var basePath = "http://petstore.swagger.io:80/v2"
|
||||||
public static var customHeaders: [String: String] = [:]
|
public static var customHeaders: [String: String] = [:]
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
open class Configuration {
|
open class Configuration {
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
#if canImport(AnyCodable)
|
#if canImport(AnyCodable)
|
||||||
import AnyCodable
|
import AnyCodable
|
||||||
#endif
|
#endif
|
||||||
|
@ -6,6 +6,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
public struct JSONDataEncoding {
|
public struct JSONDataEncoding {
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
protocol JSONEncodable {
|
protocol JSONEncodable {
|
||||||
func encodeToJSON() -> Any
|
func encodeToJSON() -> Any
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
open class PetstoreClientAPI {
|
open class PetstoreClientAPI {
|
||||||
public static var basePath = "http://petstore.swagger.io:80/v2"
|
public static var basePath = "http://petstore.swagger.io:80/v2"
|
||||||
public static var customHeaders: [String: String] = [:]
|
public static var customHeaders: [String: String] = [:]
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
open class Configuration {
|
open class Configuration {
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
#if canImport(AnyCodable)
|
#if canImport(AnyCodable)
|
||||||
import AnyCodable
|
import AnyCodable
|
||||||
#endif
|
#endif
|
||||||
|
@ -6,6 +6,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
public struct JSONDataEncoding {
|
public struct JSONDataEncoding {
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
protocol JSONEncodable {
|
protocol JSONEncodable {
|
||||||
func encodeToJSON() -> Any
|
func encodeToJSON() -> Any
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
open class PetstoreClientAPI {
|
open class PetstoreClientAPI {
|
||||||
public static var basePath = "http://petstore.swagger.io:80/v2"
|
public static var basePath = "http://petstore.swagger.io:80/v2"
|
||||||
public static var customHeaders: [String: String] = [:]
|
public static var customHeaders: [String: String] = [:]
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
open class Configuration {
|
open class Configuration {
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
#if canImport(AnyCodable)
|
#if canImport(AnyCodable)
|
||||||
import AnyCodable
|
import AnyCodable
|
||||||
#endif
|
#endif
|
||||||
|
@ -6,6 +6,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
public struct JSONDataEncoding {
|
public struct JSONDataEncoding {
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
protocol JSONEncodable {
|
protocol JSONEncodable {
|
||||||
func encodeToJSON() -> Any
|
func encodeToJSON() -> Any
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
open class PetstoreClientAPI {
|
open class PetstoreClientAPI {
|
||||||
public static var basePath = "http://petstore.swagger.io:80/v2"
|
public static var basePath = "http://petstore.swagger.io:80/v2"
|
||||||
public static var customHeaders: [String: String] = [:]
|
public static var customHeaders: [String: String] = [:]
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
@available(*, deprecated, renamed: "PetstoreClientAPI.Configuration")
|
@available(*, deprecated, renamed: "PetstoreClientAPI.Configuration")
|
||||||
public typealias Configuration = PetstoreClientAPI.Configuration
|
public typealias Configuration = PetstoreClientAPI.Configuration
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
#if canImport(AnyCodable)
|
#if canImport(AnyCodable)
|
||||||
import AnyCodable
|
import AnyCodable
|
||||||
#endif
|
#endif
|
||||||
|
@ -6,6 +6,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
public struct JSONDataEncoding {
|
public struct JSONDataEncoding {
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
protocol JSONEncodable {
|
protocol JSONEncodable {
|
||||||
func encodeToJSON() -> Any
|
func encodeToJSON() -> Any
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
open class PetstoreClientAPI {
|
open class PetstoreClientAPI {
|
||||||
public static var basePath = "http://localhost"
|
public static var basePath = "http://localhost"
|
||||||
public static var customHeaders: [String: String] = [:]
|
public static var customHeaders: [String: String] = [:]
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
open class Configuration {
|
open class Configuration {
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
#if canImport(AnyCodable)
|
#if canImport(AnyCodable)
|
||||||
import AnyCodable
|
import AnyCodable
|
||||||
#endif
|
#endif
|
||||||
|
@ -6,6 +6,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
public struct JSONDataEncoding {
|
public struct JSONDataEncoding {
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
protocol JSONEncodable {
|
protocol JSONEncodable {
|
||||||
func encodeToJSON() -> Any
|
func encodeToJSON() -> Any
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
import Vapor
|
import Vapor
|
||||||
|
|
||||||
open class PetstoreClientAPI {
|
open class PetstoreClientAPI {
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
import Vapor
|
import Vapor
|
||||||
|
|
||||||
open class Configuration {
|
open class Configuration {
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
#if canImport(AnyCodable)
|
#if canImport(AnyCodable)
|
||||||
import AnyCodable
|
import AnyCodable
|
||||||
#endif
|
#endif
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
open class PetstoreClientAPI {
|
open class PetstoreClientAPI {
|
||||||
public static var basePath = "http://petstore.swagger.io:80/v2"
|
public static var basePath = "http://petstore.swagger.io:80/v2"
|
||||||
public static var customHeaders: [String: String] = [:]
|
public static var customHeaders: [String: String] = [:]
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
open class Configuration {
|
open class Configuration {
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
#if canImport(AnyCodable)
|
#if canImport(AnyCodable)
|
||||||
import AnyCodable
|
import AnyCodable
|
||||||
#endif
|
#endif
|
||||||
|
@ -6,6 +6,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
#if canImport(FoundationNetworking)
|
||||||
|
import FoundationNetworking
|
||||||
|
#endif
|
||||||
|
|
||||||
public struct JSONDataEncoding {
|
public struct JSONDataEncoding {
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user