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,13 +19,14 @@ 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")),
],
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: [],
dependencies: ["AnyCodable", ],
path: "PetstoreClient/Classes"
),
]