Skip to content

Commit 6119dfa

Browse files
authored
Merge pull request #1161 from czechboy0/hd-openapi-updates-6.2
OpenAPI doc updates for Swift 6.2
2 parents 9c7513a + 107d270 commit 6119dfa

File tree

2 files changed

+27
-3
lines changed

2 files changed

+27
-3
lines changed

openapi/TestSwiftOrgClient/swiftorgClient/Tool.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,20 @@ struct Tool {
5252
work: { _ = try await client.listReleases().ok.body.json }
5353
),
5454
]
55+
struct DevToolchainBranchPlatform: Hashable {
56+
var branch: Components.Schemas.KnownSourceBranch
57+
var platform: Components.Schemas.KnownPlatformIdentifier
58+
}
59+
let excluded: Set<DevToolchainBranchPlatform> = [
60+
.init(branch: ._6_0, platform: .debian12),
61+
.init(branch: ._6_0, platform: .fedora39),
62+
.init(branch: ._6_0, platform: .ubuntu2404),
63+
]
5564
for branch in Components.Schemas.KnownSourceBranch.allCases {
5665
for platform in Components.Schemas.KnownPlatformIdentifier.allCases {
66+
guard !excluded.contains(.init(branch: branch, platform: platform)) else {
67+
continue
68+
}
5769
tests.append(
5870
.init(
5971
name: "listDevToolchains(\(branch.rawValue), \(platform.rawValue))",

openapi/swiftorg.yaml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,12 @@ components:
134134
type: string
135135
pattern: \d+\.\d+(\.\d+)?
136136
description: Version number of the Swift release.
137-
example: '6.0.2'
137+
example: '6.2.0'
138138
date:
139139
type: string
140140
pattern: \d{4}-\d{2}-\d{2}
141141
description: Release date of the Swift version.
142-
example: '2024-10-28'
142+
example: '2025-09-15'
143143
platforms:
144144
type: array
145145
description: List of supported platforms for this release.
@@ -172,10 +172,13 @@ components:
172172
enum:
173173
- amazonlinux2
174174
- centos7
175+
- debian12
176+
- fedora39
175177
- macos
176178
- ubi9
177179
- ubuntu2004
178180
- ubuntu2204
181+
- ubuntu2404
179182
- windows10
180183
PlatformIdentifier:
181184
anyOf:
@@ -191,6 +194,8 @@ components:
191194
type: string
192195
enum:
193196
- Swift Development Snapshot
197+
- Swift Static SDK Development Snapshot
198+
- Swift Wasm SDK Development Snapshot
194199
DevToolchainKind:
195200
anyOf:
196201
- $ref: '#/components/schemas/KnownDevToolchainKind'
@@ -273,6 +278,8 @@ components:
273278
- Linux
274279
- Windows
275280
- static-sdk
281+
- wasm
282+
example: Linux
276283
PlatformType:
277284
anyOf:
278285
- $ref: '#/components/schemas/KnownPlatformType'
@@ -311,7 +318,12 @@ components:
311318
description: List of supported architectures.
312319
checksum:
313320
type: string
314-
description: SHA-256 Checksum of the static SDK, if this platform is the static SDK.
321+
description: SHA-256 checksum of the Swift SDK.
322+
example: 'd2225840e592389ca517bbf71652f7003dbf45ac35d1e57d98b9250368769378'
323+
docker:
324+
type: string
325+
description: The tag of the container image.
326+
example: '6.2-noble'
315327
required:
316328
- name
317329
- platform

0 commit comments

Comments
 (0)