@@ -2766,6 +2766,16 @@ public enum Components {
27662766 case rocket
27672767 }
27682768 }
2769+ /// An object without any properties.
2770+ ///
2771+ /// - Remark: Generated from `#/components/schemas/empty-object`.
2772+ public struct empty_hyphen_object: Codable, Hashable, Sendable {
2773+ /// Creates a new `empty_hyphen_object`.
2774+ public init() {}
2775+ public init(from decoder: any Decoder) throws {
2776+ try decoder.ensureNoAdditionalProperties(knownKeys: [])
2777+ }
2778+ }
27692779 /// Groups of organization members that gives permissions on specified repositories.
27702780 ///
27712781 /// - Remark: Generated from `#/components/schemas/team-simple`.
@@ -3121,9 +3131,79 @@ public enum Components {
31213131 /// - Remark: Generated from `#/components/schemas/commit/commit`.
31223132 public var commit: Components.Schemas.commit.commitPayload
31233133 /// - Remark: Generated from `#/components/schemas/commit/author`.
3124- public var author: Components.Schemas.nullable_hyphen_simple_hyphen_user?
3134+ @frozen public enum authorPayload: Codable, Hashable, Sendable {
3135+ /// - Remark: Generated from `#/components/schemas/commit/author/case1`.
3136+ case simple_hyphen_user(Components.Schemas.simple_hyphen_user)
3137+ /// - Remark: Generated from `#/components/schemas/commit/author/case2`.
3138+ case empty_hyphen_object(Components.Schemas.empty_hyphen_object)
3139+ public init(from decoder: any Decoder) throws {
3140+ var errors: [any Error] = []
3141+ do {
3142+ self = .simple_hyphen_user(try .init(from: decoder))
3143+ return
3144+ } catch {
3145+ errors.append(error)
3146+ }
3147+ do {
3148+ self = .empty_hyphen_object(try .init(from: decoder))
3149+ return
3150+ } catch {
3151+ errors.append(error)
3152+ }
3153+ throw Swift.DecodingError.failedToDecodeOneOfSchema(
3154+ type: Self.self,
3155+ codingPath: decoder.codingPath,
3156+ errors: errors
3157+ )
3158+ }
3159+ public func encode(to encoder: any Encoder) throws {
3160+ switch self {
3161+ case let .simple_hyphen_user(value):
3162+ try value.encode(to: encoder)
3163+ case let .empty_hyphen_object(value):
3164+ try value.encode(to: encoder)
3165+ }
3166+ }
3167+ }
3168+ /// - Remark: Generated from `#/components/schemas/commit/author`.
3169+ public var author: Components.Schemas.commit.authorPayload?
3170+ /// - Remark: Generated from `#/components/schemas/commit/committer`.
3171+ @frozen public enum committerPayload: Codable, Hashable, Sendable {
3172+ /// - Remark: Generated from `#/components/schemas/commit/committer/case1`.
3173+ case simple_hyphen_user(Components.Schemas.simple_hyphen_user)
3174+ /// - Remark: Generated from `#/components/schemas/commit/committer/case2`.
3175+ case empty_hyphen_object(Components.Schemas.empty_hyphen_object)
3176+ public init(from decoder: any Decoder) throws {
3177+ var errors: [any Error] = []
3178+ do {
3179+ self = .simple_hyphen_user(try .init(from: decoder))
3180+ return
3181+ } catch {
3182+ errors.append(error)
3183+ }
3184+ do {
3185+ self = .empty_hyphen_object(try .init(from: decoder))
3186+ return
3187+ } catch {
3188+ errors.append(error)
3189+ }
3190+ throw Swift.DecodingError.failedToDecodeOneOfSchema(
3191+ type: Self.self,
3192+ codingPath: decoder.codingPath,
3193+ errors: errors
3194+ )
3195+ }
3196+ public func encode(to encoder: any Encoder) throws {
3197+ switch self {
3198+ case let .simple_hyphen_user(value):
3199+ try value.encode(to: encoder)
3200+ case let .empty_hyphen_object(value):
3201+ try value.encode(to: encoder)
3202+ }
3203+ }
3204+ }
31253205 /// - Remark: Generated from `#/components/schemas/commit/committer`.
3126- public var committer: Components.Schemas.nullable_hyphen_simple_hyphen_user ?
3206+ public var committer: Components.Schemas.commit.committerPayload ?
31273207 /// - Remark: Generated from `#/components/schemas/commit/parentsPayload`.
31283208 public struct parentsPayloadPayload: Codable, Hashable, Sendable {
31293209 /// - Remark: Generated from `#/components/schemas/commit/parentsPayload/sha`.
@@ -3211,8 +3291,8 @@ public enum Components {
32113291 html_url: Swift.String,
32123292 comments_url: Swift.String,
32133293 commit: Components.Schemas.commit.commitPayload,
3214- author: Components.Schemas.nullable_hyphen_simple_hyphen_user ? = nil,
3215- committer: Components.Schemas.nullable_hyphen_simple_hyphen_user ? = nil,
3294+ author: Components.Schemas.commit.authorPayload ? = nil,
3295+ committer: Components.Schemas.commit.committerPayload ? = nil,
32163296 parents: Components.Schemas.commit.parentsPayload,
32173297 stats: Components.Schemas.commit.statsPayload? = nil,
32183298 files: [Components.Schemas.diff_hyphen_entry]? = nil
0 commit comments