Add Jellyfin OpenAPI spec and configure generator
This commit is contained in:
parent
274596b58f
commit
8f7d5870bd
4 changed files with 68660 additions and 1 deletions
|
|
@ -17,6 +17,9 @@ let package = Package(
|
||||||
dependencies: [
|
dependencies: [
|
||||||
.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"),
|
.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"),
|
||||||
.product(name: "OpenAPIURLSession", package: "swift-openapi-urlsession"),
|
.product(name: "OpenAPIURLSession", package: "swift-openapi-urlsession"),
|
||||||
|
],
|
||||||
|
plugins: [
|
||||||
|
.plugin(name: "OpenAPIGenerator", package: "swift-openapi-generator")
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
.target(
|
.target(
|
||||||
|
|
|
||||||
|
|
@ -1 +1,5 @@
|
||||||
public struct LuminateCore {}
|
import OpenAPIURLSession
|
||||||
|
|
||||||
|
public struct LuminateCore {
|
||||||
|
public static let version = "0.1.0"
|
||||||
|
}
|
||||||
|
|
|
||||||
3
Sources/LuminateCore/openapi-generator-config.yaml
Normal file
3
Sources/LuminateCore/openapi-generator-config.yaml
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
generate:
|
||||||
|
- types
|
||||||
|
- client
|
||||||
68649
Sources/LuminateCore/openapi.yaml
Normal file
68649
Sources/LuminateCore/openapi.yaml
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue