File tree Expand file tree Collapse file tree 15 files changed +60
-45
lines changed
modules/openapi-generator/src/main/resources/swift6
samples/client/petstore/swift6
alamofireLibrary/Sources/PetstoreClient/Infrastructure
apiNonStaticMethod/Sources/PetstoreClient/Infrastructure
asyncAwaitLibrary/Sources/PetstoreClient/Infrastructure
combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Infrastructure
combineLibrary/Sources/CombineLibrary/Infrastructure
default/Sources/PetstoreClient/Infrastructure
objcCompatible/Sources/PetstoreClient/Infrastructure
oneOf/PetstoreClient/Classes/OpenAPIs/Infrastructure
promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Infrastructure
resultLibrary/PetstoreClient/Classes/OpenAPIs/Infrastructure
rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Infrastructure
urlsessionLibrary/Sources/PetstoreClient/Infrastructure
validation/PetstoreClient/Classes/OpenAPIs/Infrastructure
vaporLibrary/Sources/PetstoreClient/Infrastructure Expand file tree Collapse file tree 15 files changed +60
-45
lines changed Original file line number Diff line number Diff line change 66
77import Foundation
88
9- { {#nonPublicApi} }internal{ {/nonPublicApi} }{ {^nonPublicApi} }public{ {/nonPublicApi} } struct StringRule: @unchecked Sendable {
9+ { {#nonPublicApi} }internal{ {/nonPublicApi} }{ {^nonPublicApi} }public{ {/nonPublicApi} } struct StringRule: Sendable {
1010 {{#nonPublicApi} }internal{ {/nonPublicApi} }{ {^nonPublicApi} }public{ {/nonPublicApi} } var minLength: Int?
1111 { {#nonPublicApi} }internal{ {/nonPublicApi} }{ {^nonPublicApi} }public{ {/nonPublicApi} } var maxLength: Int?
1212 { {#nonPublicApi} }internal{ {/nonPublicApi} }{ {^nonPublicApi} }public{ {/nonPublicApi} } var pattern: String?
1313}
1414
15- { {#nonPublicApi} }internal{ {/nonPublicApi} }{ {^nonPublicApi} }public{ {/nonPublicApi} } struct NumericRule<T: Comparable & Numeric >: @unchecked Sendable {
15+ { {#nonPublicApi} }internal{ {/nonPublicApi} }{ {^nonPublicApi} }public{ {/nonPublicApi} } struct NumericRule<T: Comparable & Numeric > {
1616 {{#nonPublicApi} }internal{ {/nonPublicApi} }{ {^nonPublicApi} }public{ {/nonPublicApi} } var minimum: T?
1717 { {#nonPublicApi} }internal{ {/nonPublicApi} }{ {^nonPublicApi} }public{ {/nonPublicApi} } var exclusiveMinimum = false
1818 { {#nonPublicApi} }internal{ {/nonPublicApi} }{ {^nonPublicApi} }public{ {/nonPublicApi} } var maximum: T?
1919 { {#nonPublicApi} }internal{ {/nonPublicApi} }{ {^nonPublicApi} }public{ {/nonPublicApi} } var exclusiveMaximum = false
2020 { {#nonPublicApi} }internal{ {/nonPublicApi} }{ {^nonPublicApi} }public{ {/nonPublicApi} } var multipleOf: T?
2121}
22+ extension NumericRule: Sendable where T: Sendable { }
2223
23- { {#nonPublicApi} }internal{ {/nonPublicApi} }{ {^nonPublicApi} }public{ {/nonPublicApi} } struct ArrayRule: @unchecked Sendable {
24+ { {#nonPublicApi} }internal{ {/nonPublicApi} }{ {^nonPublicApi} }public{ {/nonPublicApi} } struct ArrayRule: Sendable {
2425 {{#nonPublicApi} }internal{ {/nonPublicApi} }{ {^nonPublicApi} }public{ {/nonPublicApi} } var minItems: Int?
2526 { {#nonPublicApi} }internal{ {/nonPublicApi} }{ {^nonPublicApi} }public{ {/nonPublicApi} } var maxItems: Int?
2627 { {#nonPublicApi} }internal{ {/nonPublicApi} }{ {^nonPublicApi} }public{ {/nonPublicApi} } var uniqueItems: Bool
Original file line number Diff line number Diff line change 66
77import Foundation
88
9- public struct StringRule : @ unchecked Sendable {
9+ public struct StringRule : Sendable {
1010 public var minLength : Int ?
1111 public var maxLength : Int ?
1212 public var pattern : String ?
1313}
1414
15- public struct NumericRule < T: Comparable & Numeric > : @ unchecked Sendable {
15+ public struct NumericRule < T: Comparable & Numeric > {
1616 public var minimum : T ?
1717 public var exclusiveMinimum = false
1818 public var maximum : T ?
1919 public var exclusiveMaximum = false
2020 public var multipleOf : T ?
2121}
22+ extension NumericRule : Sendable where T: Sendable { }
2223
23- public struct ArrayRule : @ unchecked Sendable {
24+ public struct ArrayRule : Sendable {
2425 public var minItems : Int ?
2526 public var maxItems : Int ?
2627 public var uniqueItems : Bool
Original file line number Diff line number Diff line change 66
77import Foundation
88
9- public struct StringRule : @ unchecked Sendable {
9+ public struct StringRule : Sendable {
1010 public var minLength : Int ?
1111 public var maxLength : Int ?
1212 public var pattern : String ?
1313}
1414
15- public struct NumericRule < T: Comparable & Numeric > : @ unchecked Sendable {
15+ public struct NumericRule < T: Comparable & Numeric > {
1616 public var minimum : T ?
1717 public var exclusiveMinimum = false
1818 public var maximum : T ?
1919 public var exclusiveMaximum = false
2020 public var multipleOf : T ?
2121}
22+ extension NumericRule : Sendable where T: Sendable { }
2223
23- public struct ArrayRule : @ unchecked Sendable {
24+ public struct ArrayRule : Sendable {
2425 public var minItems : Int ?
2526 public var maxItems : Int ?
2627 public var uniqueItems : Bool
Original file line number Diff line number Diff line change 66
77import Foundation
88
9- public struct StringRule : @ unchecked Sendable {
9+ public struct StringRule : Sendable {
1010 public var minLength : Int ?
1111 public var maxLength : Int ?
1212 public var pattern : String ?
1313}
1414
15- public struct NumericRule < T: Comparable & Numeric > : @ unchecked Sendable {
15+ public struct NumericRule < T: Comparable & Numeric > {
1616 public var minimum : T ?
1717 public var exclusiveMinimum = false
1818 public var maximum : T ?
1919 public var exclusiveMaximum = false
2020 public var multipleOf : T ?
2121}
22+ extension NumericRule : Sendable where T: Sendable { }
2223
23- public struct ArrayRule : @ unchecked Sendable {
24+ public struct ArrayRule : Sendable {
2425 public var minItems : Int ?
2526 public var maxItems : Int ?
2627 public var uniqueItems : Bool
Original file line number Diff line number Diff line change 66
77import Foundation
88
9- public struct StringRule : @ unchecked Sendable {
9+ public struct StringRule : Sendable {
1010 public var minLength : Int ?
1111 public var maxLength : Int ?
1212 public var pattern : String ?
1313}
1414
15- public struct NumericRule < T: Comparable & Numeric > : @ unchecked Sendable {
15+ public struct NumericRule < T: Comparable & Numeric > {
1616 public var minimum : T ?
1717 public var exclusiveMinimum = false
1818 public var maximum : T ?
1919 public var exclusiveMaximum = false
2020 public var multipleOf : T ?
2121}
22+ extension NumericRule : Sendable where T: Sendable { }
2223
23- public struct ArrayRule : @ unchecked Sendable {
24+ public struct ArrayRule : Sendable {
2425 public var minItems : Int ?
2526 public var maxItems : Int ?
2627 public var uniqueItems : Bool
Original file line number Diff line number Diff line change 66
77import Foundation
88
9- public struct StringRule : @ unchecked Sendable {
9+ public struct StringRule : Sendable {
1010 public var minLength : Int ?
1111 public var maxLength : Int ?
1212 public var pattern : String ?
1313}
1414
15- public struct NumericRule < T: Comparable & Numeric > : @ unchecked Sendable {
15+ public struct NumericRule < T: Comparable & Numeric > {
1616 public var minimum : T ?
1717 public var exclusiveMinimum = false
1818 public var maximum : T ?
1919 public var exclusiveMaximum = false
2020 public var multipleOf : T ?
2121}
22+ extension NumericRule : Sendable where T: Sendable { }
2223
23- public struct ArrayRule : @ unchecked Sendable {
24+ public struct ArrayRule : Sendable {
2425 public var minItems : Int ?
2526 public var maxItems : Int ?
2627 public var uniqueItems : Bool
Original file line number Diff line number Diff line change 66
77import Foundation
88
9- public struct StringRule : @ unchecked Sendable {
9+ public struct StringRule : Sendable {
1010 public var minLength : Int ?
1111 public var maxLength : Int ?
1212 public var pattern : String ?
1313}
1414
15- public struct NumericRule < T: Comparable & Numeric > : @ unchecked Sendable {
15+ public struct NumericRule < T: Comparable & Numeric > {
1616 public var minimum : T ?
1717 public var exclusiveMinimum = false
1818 public var maximum : T ?
1919 public var exclusiveMaximum = false
2020 public var multipleOf : T ?
2121}
22+ extension NumericRule : Sendable where T: Sendable { }
2223
23- public struct ArrayRule : @ unchecked Sendable {
24+ public struct ArrayRule : Sendable {
2425 public var minItems : Int ?
2526 public var maxItems : Int ?
2627 public var uniqueItems : Bool
Original file line number Diff line number Diff line change 66
77import Foundation
88
9- public struct StringRule : @ unchecked Sendable {
9+ public struct StringRule : Sendable {
1010 public var minLength : Int ?
1111 public var maxLength : Int ?
1212 public var pattern : String ?
1313}
1414
15- public struct NumericRule < T: Comparable & Numeric > : @ unchecked Sendable {
15+ public struct NumericRule < T: Comparable & Numeric > {
1616 public var minimum : T ?
1717 public var exclusiveMinimum = false
1818 public var maximum : T ?
1919 public var exclusiveMaximum = false
2020 public var multipleOf : T ?
2121}
22+ extension NumericRule : Sendable where T: Sendable { }
2223
23- public struct ArrayRule : @ unchecked Sendable {
24+ public struct ArrayRule : Sendable {
2425 public var minItems : Int ?
2526 public var maxItems : Int ?
2627 public var uniqueItems : Bool
Original file line number Diff line number Diff line change 66
77import Foundation
88
9- public struct StringRule : @ unchecked Sendable {
9+ public struct StringRule : Sendable {
1010 public var minLength : Int ?
1111 public var maxLength : Int ?
1212 public var pattern : String ?
1313}
1414
15- public struct NumericRule < T: Comparable & Numeric > : @ unchecked Sendable {
15+ public struct NumericRule < T: Comparable & Numeric > {
1616 public var minimum : T ?
1717 public var exclusiveMinimum = false
1818 public var maximum : T ?
1919 public var exclusiveMaximum = false
2020 public var multipleOf : T ?
2121}
22+ extension NumericRule : Sendable where T: Sendable { }
2223
23- public struct ArrayRule : @ unchecked Sendable {
24+ public struct ArrayRule : Sendable {
2425 public var minItems : Int ?
2526 public var maxItems : Int ?
2627 public var uniqueItems : Bool
Original file line number Diff line number Diff line change 66
77import Foundation
88
9- public struct StringRule : @ unchecked Sendable {
9+ public struct StringRule : Sendable {
1010 public var minLength : Int ?
1111 public var maxLength : Int ?
1212 public var pattern : String ?
1313}
1414
15- public struct NumericRule < T: Comparable & Numeric > : @ unchecked Sendable {
15+ public struct NumericRule < T: Comparable & Numeric > {
1616 public var minimum : T ?
1717 public var exclusiveMinimum = false
1818 public var maximum : T ?
1919 public var exclusiveMaximum = false
2020 public var multipleOf : T ?
2121}
22+ extension NumericRule : Sendable where T: Sendable { }
2223
23- public struct ArrayRule : @ unchecked Sendable {
24+ public struct ArrayRule : Sendable {
2425 public var minItems : Int ?
2526 public var maxItems : Int ?
2627 public var uniqueItems : Bool
You can’t perform that action at this time.
0 commit comments