Skip to content

Commit

Permalink
Added missing value “SERVICES” to BundleIDPlatform
Browse files Browse the repository at this point in the history
  • Loading branch information
Workshed committed Aug 3, 2024
1 parent 4c1264e commit 34dca0d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ update: download generate
# see https://github.com/AvdLee/appstoreconnect-swift-sdk/pull/197
.PHONY: download
download:
curl -fsSL -o - https://developer.apple.com/sample-code/app-store-connect/app-store-connect-openapi-specification.zip | bsdtar -xOf - | jq '.components.schemas.BundleIdPlatform.enum |= [ "IOS", "MAC_OS", "UNIVERSAL" ] | .paths."/v1/certificates".get.parameters = (.paths."/v1/certificates".get.parameters | map(if .name == "filter[certificateType]" then .schema.items.enum += ["DEVELOPER_ID_APPLICATION_G2"] else . end)) | .components.schemas.CertificateType.enum += ["DEVELOPER_ID_APPLICATION_G2"] | del(.["x-important"]) | del(.. |."enum"? | select(. != null and length == 0))' > Sources/OpenAPI/app_store_connect_api.json
curl -fsSL -o - https://developer.apple.com/sample-code/app-store-connect/app-store-connect-openapi-specification.zip | bsdtar -xOf - | jq '.components.schemas.BundleIdPlatform.enum |= [ "IOS", "MAC_OS", "UNIVERSAL", "SERVICES" ] | .paths."/v1/certificates".get.parameters = (.paths."/v1/certificates".get.parameters | map(if .name == "filter[certificateType]" then .schema.items.enum += ["DEVELOPER_ID_APPLICATION_G2"] else . end)) | .components.schemas.CertificateType.enum += ["DEVELOPER_ID_APPLICATION_G2"] | del(.["x-important"]) | del(.. |."enum"? | select(. != null and length == 0))' > Sources/OpenAPI/app_store_connect_api.json

# Runs the CreateAPI generator to update generated source code
.PHONY: generate
Expand Down
1 change: 1 addition & 0 deletions Sources/OpenAPI/Generated/Entities/BundleIDPlatform.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ public enum BundleIDPlatform: String, Codable, CaseIterable {
case ios = "IOS"
case macOs = "MAC_OS"
case universal = "UNIVERSAL"
case services = "SERVICES"
}
3 changes: 2 additions & 1 deletion Sources/OpenAPI/app_store_connect_api.json
Original file line number Diff line number Diff line change
Expand Up @@ -144528,7 +144528,8 @@
"enum": [
"IOS",
"MAC_OS",
"UNIVERSAL"
"UNIVERSAL",
"SERVICES"
]
},
"CapabilityOption": {
Expand Down

0 comments on commit 34dca0d

Please sign in to comment.