Skip to content

Commit 787a5bd

Browse files
committed
Commit via running ake Sources/classroom
1 parent fb463c8 commit 787a5bd

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

Sources/classroom/Types.swift

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,15 @@ extension APIProtocol {
155155

156156
/// Server URLs defined in the OpenAPI document.
157157
public enum Servers {
158+
public enum Server1 {
159+
public static func url() throws -> Foundation.URL {
160+
try Foundation.URL(
161+
validatingOpenAPIServerURL: "https://api.github.com",
162+
variables: []
163+
)
164+
}
165+
}
166+
@available(*, deprecated, renamed: "Servers.Server1.url")
158167
public static func server1() throws -> Foundation.URL {
159168
try Foundation.URL(
160169
validatingOpenAPIServerURL: "https://api.github.com",
@@ -384,7 +393,7 @@ public enum Components {
384393
/// Whether it's a group assignment or individual assignment.
385394
///
386395
/// - Remark: Generated from `#/components/schemas/classroom-assignment/type`.
387-
@frozen public enum _typePayload: String, Codable, Hashable, Sendable {
396+
@frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {
388397
case individual = "individual"
389398
case group = "group"
390399
}
@@ -634,7 +643,7 @@ public enum Components {
634643
/// Whether it's a Group Assignment or Individual Assignment.
635644
///
636645
/// - Remark: Generated from `#/components/schemas/simple-classroom-assignment/type`.
637-
@frozen public enum _typePayload: String, Codable, Hashable, Sendable {
646+
@frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {
638647
case individual = "individual"
639648
case group = "group"
640649
}

0 commit comments

Comments
 (0)