forked from loafle/openapi-generator-original
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:
@@ -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"
|
||||
),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user