Skip to content

Commit

Permalink
Merge pull request #65 from amzn/removeOpenAPITargets
Browse files Browse the repository at this point in the history
Remove OpenAPI and Swagger targets
  • Loading branch information
luiabrah authored Oct 3, 2022
2 parents a1adc01 + 70b6494 commit 7e1f1af
Show file tree
Hide file tree
Showing 15 changed files with 13 additions and 1,944 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ build
.swiftpm/
*.xcodeproj
*~
.vscode/
34 changes: 0 additions & 34 deletions Package.resolved

This file was deleted.

48 changes: 11 additions & 37 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,55 +30,29 @@ let package = Package(
.library(
name: "ServiceModelGenerate",
targets: ["ServiceModelGenerate"]),
.library(
name: "SwaggerServiceModel",
targets: ["SwaggerServiceModel"]),
.library(
name: "OpenAPIServiceModel",
targets: ["OpenAPIServiceModel"]),
],
dependencies: [
.package(url: "https://github.com/tachyonics/SwaggerParser.git", from: "0.6.4"),
.package(url: "https://github.com/jpsim/Yams.git", from: "4.0.0"),
.package(url: "https://github.com/mattpolzin/OpenAPIKit.git", from: "3.0.0-alpha.4"),
],
dependencies: [],
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: "ServiceModelCodeGeneration", dependencies: [
.target(name: "ServiceModelEntities"),
]
),
.target(
name: "ServiceModelEntities", dependencies: [
]
),
.target(
name: "SwaggerServiceModel", dependencies: [
.target(name: "ServiceModelCodeGeneration"),
.product(name: "Yams", package: "Yams"),
.product(name: "SwaggerParser", package: "SwaggerParser"),
.product(name: "OpenAPIKit30" , package: "OpenAPIKit"),
.target(name: "ServiceModelEntities")
]
),
.target(
name: "OpenAPIServiceModel", dependencies: [
.target(name: "ServiceModelCodeGeneration"),
.product(name: "Yams", package: "Yams"),
.product(name: "SwaggerParser", package: "SwaggerParser"),
.product(name: "OpenAPIKit" , package: "OpenAPIKit"),
]
name: "ServiceModelEntities",
dependencies: []
),
.target(
name: "ServiceModelGenerate", dependencies: [
.target(name: "SwaggerServiceModel"),
.target(name: "ServiceModelEntities")
name: "ServiceModelGenerate",
dependencies: [
.target(name: "ServiceModelEntities"),
.target(name: "ServiceModelCodeGeneration")
]
),
.testTarget(
name: "ServiceModelEntitiesTests", dependencies: [
.target(name: "ServiceModelEntities"),
name: "ServiceModelEntitiesTests",
dependencies: [
.target(name: "ServiceModelEntities")
]
),
],
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,7 @@ public struct MyCodeGeneration {
## The ServiceModel Protocol

The `ServiceModel` protocol represents the parsed service model and provides access to descriptions of
the operations, fields and errors. This library provides `SwaggerServiceModel` that conforms to this protocol
and will parse a Swagger 2.0 specification file.
the operations, fields and errors.

## The ModelClientDelegate protocol

Expand Down
Loading

0 comments on commit 7e1f1af

Please sign in to comment.