Swift5 use json type for any (#9206)

* [swift5] Fix additionalProps inner type

* [swift5] Add and use AnyCodable type instead of any

* [swift5] Use the original petstore w/fake models for testing default

* [swift5] Update swift-tools-version to 5.1

* [swift5] Update samples and docs
This commit is contained in:
Ayman Bagabas
2021-04-25 21:57:42 -04:00
committed by GitHub
parent b9a1c8f016
commit f7c3773903
606 changed files with 3029 additions and 926 deletions

View File

@@ -1,4 +1,4 @@
// swift-tools-version:5.0
// swift-tools-version:5.1
import PackageDescription
@@ -19,6 +19,7 @@ let package = Package(
],
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(url: "https://github.com/Flight-School/AnyCodable", .exact("0.4.0")),
.package(url: "https://github.com/mxcl/PromiseKit.git", from: "6.12.0"),
],
targets: [
@@ -26,7 +27,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: "PetstoreClient",
dependencies: ["PromiseKit", ],
dependencies: ["AnyCodable", "PromiseKit", ],
path: "PetstoreClient/Classes"
),
]