diff --git a/Package.resolved b/Package.resolved index 74147e136..8881378f0 100644 --- a/Package.resolved +++ b/Package.resolved @@ -6,8 +6,8 @@ "repositoryURL": "https://github.com/yonaskolb/JSONUtilities.git", "state": { "branch": null, - "revision": "6403a5455f30add5413095d1b5a70e8a5eb83ba0", - "version": "3.3.8" + "revision": "128d2ffc22467f69569ef8ff971683e2393191a0", + "version": "4.2.0" } }, { @@ -15,8 +15,8 @@ "repositoryURL": "https://github.com/kylef/PathKit.git", "state": { "branch": null, - "revision": "891a3fec2699fc43aed18b7649950677c0152a22", - "version": "0.8.0" + "revision": "e2f5be30e4c8f531c9c1e8765aa7b71c0a45d7a0", + "version": "0.9.2" } }, { @@ -24,8 +24,8 @@ "repositoryURL": "https://github.com/onevcat/Rainbow.git", "state": { "branch": null, - "revision": "797a68d0a642609424b08f11eb56974a54d5f6e2", - "version": "3.1.4" + "revision": "9c52c1952e9b2305d4507cf473392ac2d7c9b155", + "version": "3.1.5" } }, { @@ -33,17 +33,17 @@ "repositoryURL": "https://github.com/kylef/Spectre.git", "state": { "branch": null, - "revision": "e46b75cf03ad5e563b4b0a5068d3d6f04d77d80b", - "version": "0.7.2" + "revision": "f14ff47f45642aa5703900980b014c2e9394b6e5", + "version": "0.9.0" } }, { "package": "Stencil", - "repositoryURL": "https://github.com/yonaskolb/Stencil.git", + "repositoryURL": "https://github.com/stencilproject/Stencil.git", "state": { "branch": null, - "revision": "daf4e41549a534904376794e899ca6aecaf4ff83", - "version": "0.9.3" + "revision": "0e9a78d6584e3812cd9c09494d5c7b483e8f533c", + "version": "0.13.1" } }, { @@ -51,8 +51,8 @@ "repositoryURL": "https://github.com/jakeheis/SwiftCLI", "state": { "branch": null, - "revision": "37f4a7f863f6fe76ce44fc0023f331eea0089beb", - "version": "5.2.0" + "revision": "5318c37d3cacc8780f50b87a8840a6774320ebdf", + "version": "5.2.2" } }, { @@ -60,8 +60,8 @@ "repositoryURL": "https://github.com/jpsim/Yams.git", "state": { "branch": null, - "revision": "26ab35f50ea891e8edefcc9d975db2f6b67e1d68", - "version": "1.0.1" + "revision": "b08dba4bcea978bf1ad37703a384097d3efce5af", + "version": "1.0.2" } } ] diff --git a/Package.swift b/Package.swift index 6debe78f1..252dab680 100644 --- a/Package.swift +++ b/Package.swift @@ -10,10 +10,10 @@ let package = Package( ], dependencies: [ .package(url: "https://github.com/kylef/PathKit.git", from: "0.8.0"), - .package(url: "https://github.com/jakeheis/SwiftCLI", from: "5.0.0"), - .package(url: "https://github.com/yonaskolb/Stencil.git", from: "0.9.0"), + .package(url: "https://github.com/jakeheis/SwiftCLI", .upToNextMinor(from: "5.2.2")), + .package(url: "https://github.com/stencilproject/Stencil.git", from: "0.13.0"), .package(url: "https://github.com/jpsim/Yams.git", from: "1.0.0"), - .package(url: "https://github.com/yonaskolb/JSONUtilities.git", from: "3.3.0"), + .package(url: "https://github.com/yonaskolb/JSONUtilities.git", from: "4.1.0"), .package(url: "https://github.com/kylef/Spectre.git", from: "0.7.0"), .package(url: "https://github.com/onevcat/Rainbow.git", from: "3.1.0"), ], diff --git a/README.md b/README.md index 7c0c1f4aa..95814f607 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ It is an alternative the official [swagger-codegen](https://github.com/swagger-a The default Swift templates it generates include support for model inheritance, shared enums, mutable parameter structs, convenience initialisers, inline schemas, Codable and Equatable models, configurable model options, generic networking stack, decoding options, and many other niceties. ## Installing -Make sure Xcode 9.3 is installed first. +Make sure Xcode 10.3 is installed first. ### [Mint](https://github.com/yonaskolb/mint) ```sh diff --git a/Sources/SwagGen/GenerateCommand.swift b/Sources/SwagGen/GenerateCommand.swift index 12cb793ed..f019b53ea 100644 --- a/Sources/SwagGen/GenerateCommand.swift +++ b/Sources/SwagGen/GenerateCommand.swift @@ -1,4 +1,7 @@ import Foundation +#if canImport(FoundationNetworking) +import FoundationNetworking +#endif import PathKit import Rainbow import SwagGenKit