From c856b8d0eccd471444ab8a4df204b60a83568770 Mon Sep 17 00:00:00 2001 From: Kabir Oberai Date: Tue, 24 Dec 2024 03:05:12 +0530 Subject: [PATCH] Overlay tweaks --- Package.swift | 2 +- Sources/DeveloperAPI/openapi-overlay.yaml | 39 ++++++++++------------- 2 files changed, 17 insertions(+), 24 deletions(-) diff --git a/Package.swift b/Package.swift index 9ee2f8b..310d730 100644 --- a/Package.swift +++ b/Package.swift @@ -66,7 +66,7 @@ let package = Package( dependencies: [ .product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"), ], - exclude: ["openapi-generator-config.yaml"] + exclude: ["openapi-generator-config.yaml", "openapi-overlay.yaml"] ), .target( name: "Supersign", diff --git a/Sources/DeveloperAPI/openapi-overlay.yaml b/Sources/DeveloperAPI/openapi-overlay.yaml index 5200693..3de74c2 100644 --- a/Sources/DeveloperAPI/openapi-overlay.yaml +++ b/Sources/DeveloperAPI/openapi-overlay.yaml @@ -3,27 +3,20 @@ info: title: Overlay for App Store Connect API version: 1.0.0 actions: - - target: '$' + - target: '$.components.schemas.BundleIdCapabilityCreateRequest.properties.data.properties.relationships' update: - components: - schemas: - BundleIdCapabilityCreateRequest: - properties: - data: - properties: - relationships: - properties: - capability: - type: object - properties: - data: - type: object - properties: - type: - type: string - enum: [capabilities] - id: - "$ref": "#/components/schemas/CapabilityType" - required: [id, type] - required: [data] - required: [capability] + properties: + capability: + type: object + properties: + data: + type: object + properties: + type: + type: string + enum: [capabilities] + id: + "$ref": "#/components/schemas/CapabilityType" + required: [id, type] + required: [data] + required: [capability]