From dc4fb77a660086be1ab0abd47e674e356839349e Mon Sep 17 00:00:00 2001 From: Brendan Szymanski Date: Sun, 14 Jun 2026 20:08:22 -0400 Subject: [PATCH] Extract generated OpenAPI code into LuminateAPI target --- Package.swift | 12 ++++++++++-- Sources/LuminateAPI/LuminateAPI.swift | 1 + .../openapi-generator-config.yaml | 0 Sources/{LuminateCore => LuminateAPI}/openapi.yaml | 0 Sources/LuminateCore/LuminateCore.swift | 1 + 5 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 Sources/LuminateAPI/LuminateAPI.swift rename Sources/{LuminateCore => LuminateAPI}/openapi-generator-config.yaml (100%) rename Sources/{LuminateCore => LuminateAPI}/openapi.yaml (100%) diff --git a/Package.swift b/Package.swift index 0103bce..6f35a0b 100644 --- a/Package.swift +++ b/Package.swift @@ -14,16 +14,24 @@ let package = Package( ], targets: [ .target( - name: "LuminateCore", + name: "LuminateAPI", dependencies: [ .product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"), .product(name: "OpenAPIURLSession", package: "swift-openapi-urlsession"), - .product(name: "SQLite", package: "SQLite.swift"), ], plugins: [ .plugin(name: "OpenAPIGenerator", package: "swift-openapi-generator") ] ), + .target( + name: "LuminateCore", + dependencies: [ + "LuminateAPI", + .product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"), + .product(name: "OpenAPIURLSession", package: "swift-openapi-urlsession"), + .product(name: "SQLite", package: "SQLite.swift"), + ] + ), .target( name: "LuminateDI", dependencies: [ diff --git a/Sources/LuminateAPI/LuminateAPI.swift b/Sources/LuminateAPI/LuminateAPI.swift new file mode 100644 index 0000000..1cffe9e --- /dev/null +++ b/Sources/LuminateAPI/LuminateAPI.swift @@ -0,0 +1 @@ +public enum LuminateAPI {} diff --git a/Sources/LuminateCore/openapi-generator-config.yaml b/Sources/LuminateAPI/openapi-generator-config.yaml similarity index 100% rename from Sources/LuminateCore/openapi-generator-config.yaml rename to Sources/LuminateAPI/openapi-generator-config.yaml diff --git a/Sources/LuminateCore/openapi.yaml b/Sources/LuminateAPI/openapi.yaml similarity index 100% rename from Sources/LuminateCore/openapi.yaml rename to Sources/LuminateAPI/openapi.yaml diff --git a/Sources/LuminateCore/LuminateCore.swift b/Sources/LuminateCore/LuminateCore.swift index e4556bd..2d20a95 100644 --- a/Sources/LuminateCore/LuminateCore.swift +++ b/Sources/LuminateCore/LuminateCore.swift @@ -1,3 +1,4 @@ +@_exported import LuminateAPI @_exported import OpenAPIRuntime @_exported import OpenAPIURLSession