From 7065222772b0abc68abac3bdfbeaa513daf2e517 Mon Sep 17 00:00:00 2001 From: Kabir Oberai Date: Thu, 22 May 2025 22:31:24 +0530 Subject: [PATCH] Fix deprecation warning --- Sources/DeveloperAPI/Generated/Types.swift | 2 -- Sources/DeveloperAPI/openapi-overlay.yaml | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Sources/DeveloperAPI/Generated/Types.swift b/Sources/DeveloperAPI/Generated/Types.swift index b3979033..ace7e465 100644 --- a/Sources/DeveloperAPI/Generated/Types.swift +++ b/Sources/DeveloperAPI/Generated/Types.swift @@ -1299,7 +1299,6 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/App/relationships/appAvailabilityV2`. public var appAvailabilityV2: Components.Schemas.App.RelationshipsPayload.AppAvailabilityV2Payload? /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchases`. - @available(*, deprecated) public struct InAppPurchasesPayload: Codable, Hashable, Sendable { /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchases/links`. public var links: Components.Schemas.RelationshipLinks? @@ -1358,7 +1357,6 @@ public enum Components { } } /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchases`. - @available(*, deprecated) public var inAppPurchases: Components.Schemas.App.RelationshipsPayload.InAppPurchasesPayload? /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGroups`. public struct SubscriptionGroupsPayload: Codable, Hashable, Sendable { diff --git a/Sources/DeveloperAPI/openapi-overlay.yaml b/Sources/DeveloperAPI/openapi-overlay.yaml index 79ce0608..7188713f 100644 --- a/Sources/DeveloperAPI/openapi-overlay.yaml +++ b/Sources/DeveloperAPI/openapi-overlay.yaml @@ -21,6 +21,11 @@ actions: required: [id, type] required: [data] required: [capability] + # we don't use this but it triggers a deprecation warning. see: + # https://github.com/apple/swift-openapi-generator/issues/715 + - target: '$.components.schemas.App.properties.relationships.properties.inAppPurchases' + update: + deprecated: false # openapi-generator expects response enums to be exhaustive. Apple's ASC OpenAPI spec # misses some cases that they do, actually, return. - target: '$.components.schemas.Device.properties.attributes.properties.deviceClass'