@@ -949,6 +949,131 @@ public enum Components {
949949 case status
950950 }
951951 }
952+ /// Validation Error
953+ ///
954+ /// - Remark: Generated from `#/components/schemas/validation-error`.
955+ public struct validation_hyphen_error : Codable , Hashable , Sendable {
956+ /// - Remark: Generated from `#/components/schemas/validation-error/message`.
957+ public var message : Swift . String
958+ /// - Remark: Generated from `#/components/schemas/validation-error/documentation_url`.
959+ public var documentation_url : Swift . String
960+ /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload`.
961+ public struct errorsPayloadPayload : Codable , Hashable , Sendable {
962+ /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/resource`.
963+ public var resource : Swift . String ?
964+ /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/field`.
965+ public var field : Swift . String ?
966+ /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/message`.
967+ public var message : Swift . String ?
968+ /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/code`.
969+ public var code : Swift . String
970+ /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/index`.
971+ public var index : Swift . Int ?
972+ /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`.
973+ @frozen public enum valuePayload : Codable , Hashable , Sendable {
974+ /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case1`.
975+ case case1( Swift . String ? )
976+ /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case2`.
977+ case case2( Swift . Int ? )
978+ /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case3`.
979+ case case3( [ Swift . String ] ? )
980+ public init ( from decoder: any Decoder ) throws {
981+ var errors : [ any Error ] = [ ]
982+ do {
983+ self = . case1( try decoder. decodeFromSingleValueContainer ( ) )
984+ return
985+ } catch {
986+ errors. append ( error)
987+ }
988+ do {
989+ self = . case2( try decoder. decodeFromSingleValueContainer ( ) )
990+ return
991+ } catch {
992+ errors. append ( error)
993+ }
994+ do {
995+ self = . case3( try decoder. decodeFromSingleValueContainer ( ) )
996+ return
997+ } catch {
998+ errors. append ( error)
999+ }
1000+ throw Swift . DecodingError. failedToDecodeOneOfSchema (
1001+ type: Self . self,
1002+ codingPath: decoder. codingPath,
1003+ errors: errors
1004+ )
1005+ }
1006+ public func encode( to encoder: any Encoder ) throws {
1007+ switch self {
1008+ case let . case1( value) :
1009+ try encoder. encodeToSingleValueContainer ( value)
1010+ case let . case2( value) :
1011+ try encoder. encodeToSingleValueContainer ( value)
1012+ case let . case3( value) :
1013+ try encoder. encodeToSingleValueContainer ( value)
1014+ }
1015+ }
1016+ }
1017+ /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`.
1018+ public var value : Components . Schemas . validation_hyphen_error . errorsPayloadPayload . valuePayload ?
1019+ /// Creates a new `errorsPayloadPayload`.
1020+ ///
1021+ /// - Parameters:
1022+ /// - resource:
1023+ /// - field:
1024+ /// - message:
1025+ /// - code:
1026+ /// - index:
1027+ /// - value:
1028+ public init (
1029+ resource: Swift . String ? = nil ,
1030+ field: Swift . String ? = nil ,
1031+ message: Swift . String ? = nil ,
1032+ code: Swift . String ,
1033+ index: Swift . Int ? = nil ,
1034+ value: Components . Schemas . validation_hyphen_error . errorsPayloadPayload . valuePayload ? = nil
1035+ ) {
1036+ self . resource = resource
1037+ self . field = field
1038+ self . message = message
1039+ self . code = code
1040+ self . index = index
1041+ self . value = value
1042+ }
1043+ public enum CodingKeys : String , CodingKey {
1044+ case resource
1045+ case field
1046+ case message
1047+ case code
1048+ case index
1049+ case value
1050+ }
1051+ }
1052+ /// - Remark: Generated from `#/components/schemas/validation-error/errors`.
1053+ public typealias errorsPayload = [ Components . Schemas . validation_hyphen_error . errorsPayloadPayload ]
1054+ /// - Remark: Generated from `#/components/schemas/validation-error/errors`.
1055+ public var errors : Components . Schemas . validation_hyphen_error . errorsPayload ?
1056+ /// Creates a new `validation_hyphen_error`.
1057+ ///
1058+ /// - Parameters:
1059+ /// - message:
1060+ /// - documentation_url:
1061+ /// - errors:
1062+ public init (
1063+ message: Swift . String ,
1064+ documentation_url: Swift . String ,
1065+ errors: Components . Schemas . validation_hyphen_error . errorsPayload ? = nil
1066+ ) {
1067+ self . message = message
1068+ self . documentation_url = documentation_url
1069+ self . errors = errors
1070+ }
1071+ public enum CodingKeys : String , CodingKey {
1072+ case message
1073+ case documentation_url
1074+ case errors
1075+ }
1076+ }
9521077 /// A GitHub user.
9531078 ///
9541079 /// - Remark: Generated from `#/components/schemas/nullable-simple-user`.
@@ -1094,131 +1219,6 @@ public enum Components {
10941219 case user_view_type
10951220 }
10961221 }
1097- /// Validation Error
1098- ///
1099- /// - Remark: Generated from `#/components/schemas/validation-error`.
1100- public struct validation_hyphen_error : Codable , Hashable , Sendable {
1101- /// - Remark: Generated from `#/components/schemas/validation-error/message`.
1102- public var message : Swift . String
1103- /// - Remark: Generated from `#/components/schemas/validation-error/documentation_url`.
1104- public var documentation_url : Swift . String
1105- /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload`.
1106- public struct errorsPayloadPayload : Codable , Hashable , Sendable {
1107- /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/resource`.
1108- public var resource : Swift . String ?
1109- /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/field`.
1110- public var field : Swift . String ?
1111- /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/message`.
1112- public var message : Swift . String ?
1113- /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/code`.
1114- public var code : Swift . String
1115- /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/index`.
1116- public var index : Swift . Int ?
1117- /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`.
1118- @frozen public enum valuePayload : Codable , Hashable , Sendable {
1119- /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case1`.
1120- case case1( Swift . String ? )
1121- /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case2`.
1122- case case2( Swift . Int ? )
1123- /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value/case3`.
1124- case case3( [ Swift . String ] ? )
1125- public init ( from decoder: any Decoder ) throws {
1126- var errors : [ any Error ] = [ ]
1127- do {
1128- self = . case1( try decoder. decodeFromSingleValueContainer ( ) )
1129- return
1130- } catch {
1131- errors. append ( error)
1132- }
1133- do {
1134- self = . case2( try decoder. decodeFromSingleValueContainer ( ) )
1135- return
1136- } catch {
1137- errors. append ( error)
1138- }
1139- do {
1140- self = . case3( try decoder. decodeFromSingleValueContainer ( ) )
1141- return
1142- } catch {
1143- errors. append ( error)
1144- }
1145- throw Swift . DecodingError. failedToDecodeOneOfSchema (
1146- type: Self . self,
1147- codingPath: decoder. codingPath,
1148- errors: errors
1149- )
1150- }
1151- public func encode( to encoder: any Encoder ) throws {
1152- switch self {
1153- case let . case1( value) :
1154- try encoder. encodeToSingleValueContainer ( value)
1155- case let . case2( value) :
1156- try encoder. encodeToSingleValueContainer ( value)
1157- case let . case3( value) :
1158- try encoder. encodeToSingleValueContainer ( value)
1159- }
1160- }
1161- }
1162- /// - Remark: Generated from `#/components/schemas/validation-error/errorsPayload/value`.
1163- public var value : Components . Schemas . validation_hyphen_error . errorsPayloadPayload . valuePayload ?
1164- /// Creates a new `errorsPayloadPayload`.
1165- ///
1166- /// - Parameters:
1167- /// - resource:
1168- /// - field:
1169- /// - message:
1170- /// - code:
1171- /// - index:
1172- /// - value:
1173- public init (
1174- resource: Swift . String ? = nil ,
1175- field: Swift . String ? = nil ,
1176- message: Swift . String ? = nil ,
1177- code: Swift . String ,
1178- index: Swift . Int ? = nil ,
1179- value: Components . Schemas . validation_hyphen_error . errorsPayloadPayload . valuePayload ? = nil
1180- ) {
1181- self . resource = resource
1182- self . field = field
1183- self . message = message
1184- self . code = code
1185- self . index = index
1186- self . value = value
1187- }
1188- public enum CodingKeys : String , CodingKey {
1189- case resource
1190- case field
1191- case message
1192- case code
1193- case index
1194- case value
1195- }
1196- }
1197- /// - Remark: Generated from `#/components/schemas/validation-error/errors`.
1198- public typealias errorsPayload = [ Components . Schemas . validation_hyphen_error . errorsPayloadPayload ]
1199- /// - Remark: Generated from `#/components/schemas/validation-error/errors`.
1200- public var errors : Components . Schemas . validation_hyphen_error . errorsPayload ?
1201- /// Creates a new `validation_hyphen_error`.
1202- ///
1203- /// - Parameters:
1204- /// - message:
1205- /// - documentation_url:
1206- /// - errors:
1207- public init (
1208- message: Swift . String ,
1209- documentation_url: Swift . String ,
1210- errors: Components . Schemas . validation_hyphen_error . errorsPayload ? = nil
1211- ) {
1212- self . message = message
1213- self . documentation_url = documentation_url
1214- self . errors = errors
1215- }
1216- public enum CodingKeys : String , CodingKey {
1217- case message
1218- case documentation_url
1219- case errors
1220- }
1221- }
12221222 /// License Simple
12231223 ///
12241224 /// - Remark: Generated from `#/components/schemas/nullable-license-simple`.
@@ -2075,6 +2075,28 @@ public enum Components {
20752075 }
20762076 /// - Remark: Generated from `#/components/schemas/security-and-analysis/advanced_security`.
20772077 public var advanced_security : Components . Schemas . security_hyphen_and_hyphen_analysis . advanced_securityPayload ?
2078+ /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security`.
2079+ public struct code_securityPayload : Codable , Hashable , Sendable {
2080+ /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security/status`.
2081+ @frozen public enum statusPayload : String , Codable , Hashable , Sendable {
2082+ case enabled = " enabled "
2083+ case disabled = " disabled "
2084+ }
2085+ /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security/status`.
2086+ public var status : Components . Schemas . security_hyphen_and_hyphen_analysis . code_securityPayload . statusPayload ?
2087+ /// Creates a new `code_securityPayload`.
2088+ ///
2089+ /// - Parameters:
2090+ /// - status:
2091+ public init ( status: Components . Schemas . security_hyphen_and_hyphen_analysis . code_securityPayload . statusPayload ? = nil ) {
2092+ self . status = status
2093+ }
2094+ public enum CodingKeys : String , CodingKey {
2095+ case status
2096+ }
2097+ }
2098+ /// - Remark: Generated from `#/components/schemas/security-and-analysis/code_security`.
2099+ public var code_security : Components . Schemas . security_hyphen_and_hyphen_analysis . code_securityPayload ?
20782100 /// Enable or disable Dependabot security updates for the repository.
20792101 ///
20802102 /// - Remark: Generated from `#/components/schemas/security-and-analysis/dependabot_security_updates`.
@@ -2197,20 +2219,23 @@ public enum Components {
21972219 ///
21982220 /// - Parameters:
21992221 /// - advanced_security:
2222+ /// - code_security:
22002223 /// - dependabot_security_updates: Enable or disable Dependabot security updates for the repository.
22012224 /// - secret_scanning:
22022225 /// - secret_scanning_push_protection:
22032226 /// - secret_scanning_non_provider_patterns:
22042227 /// - secret_scanning_ai_detection:
22052228 public init (
22062229 advanced_security: Components . Schemas . security_hyphen_and_hyphen_analysis . advanced_securityPayload ? = nil ,
2230+ code_security: Components . Schemas . security_hyphen_and_hyphen_analysis . code_securityPayload ? = nil ,
22072231 dependabot_security_updates: Components . Schemas . security_hyphen_and_hyphen_analysis . dependabot_security_updatesPayload ? = nil ,
22082232 secret_scanning: Components . Schemas . security_hyphen_and_hyphen_analysis . secret_scanningPayload ? = nil ,
22092233 secret_scanning_push_protection: Components . Schemas . security_hyphen_and_hyphen_analysis . secret_scanning_push_protectionPayload ? = nil ,
22102234 secret_scanning_non_provider_patterns: Components . Schemas . security_hyphen_and_hyphen_analysis . secret_scanning_non_provider_patternsPayload ? = nil ,
22112235 secret_scanning_ai_detection: Components . Schemas . security_hyphen_and_hyphen_analysis . secret_scanning_ai_detectionPayload ? = nil
22122236 ) {
22132237 self . advanced_security = advanced_security
2238+ self . code_security = code_security
22142239 self . dependabot_security_updates = dependabot_security_updates
22152240 self . secret_scanning = secret_scanning
22162241 self . secret_scanning_push_protection = secret_scanning_push_protection
@@ -2219,6 +2244,7 @@ public enum Components {
22192244 }
22202245 public enum CodingKeys : String , CodingKey {
22212246 case advanced_security
2247+ case code_security
22222248 case dependabot_security_updates
22232249 case secret_scanning
22242250 case secret_scanning_push_protection
0 commit comments