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 6
6
7
7
import Foundation
8
8
9
- { {#nonPublicApi} }internal{ {/nonPublicApi} }{ {^nonPublicApi} }public{ {/nonPublicApi} } struct StringRule: @unchecked Sendable {
9
+ { {#nonPublicApi} }internal{ {/nonPublicApi} }{ {^nonPublicApi} }public{ {/nonPublicApi} } struct StringRule: Sendable {
10
10
{{#nonPublicApi} }internal{ {/nonPublicApi} }{ {^nonPublicApi} }public{ {/nonPublicApi} } var minLength: Int?
11
11
{ {#nonPublicApi} }internal{ {/nonPublicApi} }{ {^nonPublicApi} }public{ {/nonPublicApi} } var maxLength: Int?
12
12
{ {#nonPublicApi} }internal{ {/nonPublicApi} }{ {^nonPublicApi} }public{ {/nonPublicApi} } var pattern: String?
13
13
}
14
14
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 > {
16
16
{{#nonPublicApi} }internal{ {/nonPublicApi} }{ {^nonPublicApi} }public{ {/nonPublicApi} } var minimum: T?
17
17
{ {#nonPublicApi} }internal{ {/nonPublicApi} }{ {^nonPublicApi} }public{ {/nonPublicApi} } var exclusiveMinimum = false
18
18
{ {#nonPublicApi} }internal{ {/nonPublicApi} }{ {^nonPublicApi} }public{ {/nonPublicApi} } var maximum: T?
19
19
{ {#nonPublicApi} }internal{ {/nonPublicApi} }{ {^nonPublicApi} }public{ {/nonPublicApi} } var exclusiveMaximum = false
20
20
{ {#nonPublicApi} }internal{ {/nonPublicApi} }{ {^nonPublicApi} }public{ {/nonPublicApi} } var multipleOf: T?
21
21
}
22
+ extension NumericRule: Sendable where T: Sendable { }
22
23
23
- { {#nonPublicApi} }internal{ {/nonPublicApi} }{ {^nonPublicApi} }public{ {/nonPublicApi} } struct ArrayRule: @unchecked Sendable {
24
+ { {#nonPublicApi} }internal{ {/nonPublicApi} }{ {^nonPublicApi} }public{ {/nonPublicApi} } struct ArrayRule: Sendable {
24
25
{{#nonPublicApi} }internal{ {/nonPublicApi} }{ {^nonPublicApi} }public{ {/nonPublicApi} } var minItems: Int?
25
26
{ {#nonPublicApi} }internal{ {/nonPublicApi} }{ {^nonPublicApi} }public{ {/nonPublicApi} } var maxItems: Int?
26
27
{ {#nonPublicApi} }internal{ {/nonPublicApi} }{ {^nonPublicApi} }public{ {/nonPublicApi} } var uniqueItems: Bool
Original file line number Diff line number Diff line change 6
6
7
7
import Foundation
8
8
9
- public struct StringRule : @ unchecked Sendable {
9
+ public struct StringRule : Sendable {
10
10
public var minLength : Int ?
11
11
public var maxLength : Int ?
12
12
public var pattern : String ?
13
13
}
14
14
15
- public struct NumericRule < T: Comparable & Numeric > : @ unchecked Sendable {
15
+ public struct NumericRule < T: Comparable & Numeric > {
16
16
public var minimum : T ?
17
17
public var exclusiveMinimum = false
18
18
public var maximum : T ?
19
19
public var exclusiveMaximum = false
20
20
public var multipleOf : T ?
21
21
}
22
+ extension NumericRule : Sendable where T: Sendable { }
22
23
23
- public struct ArrayRule : @ unchecked Sendable {
24
+ public struct ArrayRule : Sendable {
24
25
public var minItems : Int ?
25
26
public var maxItems : Int ?
26
27
public var uniqueItems : Bool
Original file line number Diff line number Diff line change 6
6
7
7
import Foundation
8
8
9
- public struct StringRule : @ unchecked Sendable {
9
+ public struct StringRule : Sendable {
10
10
public var minLength : Int ?
11
11
public var maxLength : Int ?
12
12
public var pattern : String ?
13
13
}
14
14
15
- public struct NumericRule < T: Comparable & Numeric > : @ unchecked Sendable {
15
+ public struct NumericRule < T: Comparable & Numeric > {
16
16
public var minimum : T ?
17
17
public var exclusiveMinimum = false
18
18
public var maximum : T ?
19
19
public var exclusiveMaximum = false
20
20
public var multipleOf : T ?
21
21
}
22
+ extension NumericRule : Sendable where T: Sendable { }
22
23
23
- public struct ArrayRule : @ unchecked Sendable {
24
+ public struct ArrayRule : Sendable {
24
25
public var minItems : Int ?
25
26
public var maxItems : Int ?
26
27
public var uniqueItems : Bool
Original file line number Diff line number Diff line change 6
6
7
7
import Foundation
8
8
9
- public struct StringRule : @ unchecked Sendable {
9
+ public struct StringRule : Sendable {
10
10
public var minLength : Int ?
11
11
public var maxLength : Int ?
12
12
public var pattern : String ?
13
13
}
14
14
15
- public struct NumericRule < T: Comparable & Numeric > : @ unchecked Sendable {
15
+ public struct NumericRule < T: Comparable & Numeric > {
16
16
public var minimum : T ?
17
17
public var exclusiveMinimum = false
18
18
public var maximum : T ?
19
19
public var exclusiveMaximum = false
20
20
public var multipleOf : T ?
21
21
}
22
+ extension NumericRule : Sendable where T: Sendable { }
22
23
23
- public struct ArrayRule : @ unchecked Sendable {
24
+ public struct ArrayRule : Sendable {
24
25
public var minItems : Int ?
25
26
public var maxItems : Int ?
26
27
public var uniqueItems : Bool
Original file line number Diff line number Diff line change 6
6
7
7
import Foundation
8
8
9
- public struct StringRule : @ unchecked Sendable {
9
+ public struct StringRule : Sendable {
10
10
public var minLength : Int ?
11
11
public var maxLength : Int ?
12
12
public var pattern : String ?
13
13
}
14
14
15
- public struct NumericRule < T: Comparable & Numeric > : @ unchecked Sendable {
15
+ public struct NumericRule < T: Comparable & Numeric > {
16
16
public var minimum : T ?
17
17
public var exclusiveMinimum = false
18
18
public var maximum : T ?
19
19
public var exclusiveMaximum = false
20
20
public var multipleOf : T ?
21
21
}
22
+ extension NumericRule : Sendable where T: Sendable { }
22
23
23
- public struct ArrayRule : @ unchecked Sendable {
24
+ public struct ArrayRule : Sendable {
24
25
public var minItems : Int ?
25
26
public var maxItems : Int ?
26
27
public var uniqueItems : Bool
Original file line number Diff line number Diff line change 6
6
7
7
import Foundation
8
8
9
- public struct StringRule : @ unchecked Sendable {
9
+ public struct StringRule : Sendable {
10
10
public var minLength : Int ?
11
11
public var maxLength : Int ?
12
12
public var pattern : String ?
13
13
}
14
14
15
- public struct NumericRule < T: Comparable & Numeric > : @ unchecked Sendable {
15
+ public struct NumericRule < T: Comparable & Numeric > {
16
16
public var minimum : T ?
17
17
public var exclusiveMinimum = false
18
18
public var maximum : T ?
19
19
public var exclusiveMaximum = false
20
20
public var multipleOf : T ?
21
21
}
22
+ extension NumericRule : Sendable where T: Sendable { }
22
23
23
- public struct ArrayRule : @ unchecked Sendable {
24
+ public struct ArrayRule : Sendable {
24
25
public var minItems : Int ?
25
26
public var maxItems : Int ?
26
27
public var uniqueItems : Bool
Original file line number Diff line number Diff line change 6
6
7
7
import Foundation
8
8
9
- public struct StringRule : @ unchecked Sendable {
9
+ public struct StringRule : Sendable {
10
10
public var minLength : Int ?
11
11
public var maxLength : Int ?
12
12
public var pattern : String ?
13
13
}
14
14
15
- public struct NumericRule < T: Comparable & Numeric > : @ unchecked Sendable {
15
+ public struct NumericRule < T: Comparable & Numeric > {
16
16
public var minimum : T ?
17
17
public var exclusiveMinimum = false
18
18
public var maximum : T ?
19
19
public var exclusiveMaximum = false
20
20
public var multipleOf : T ?
21
21
}
22
+ extension NumericRule : Sendable where T: Sendable { }
22
23
23
- public struct ArrayRule : @ unchecked Sendable {
24
+ public struct ArrayRule : Sendable {
24
25
public var minItems : Int ?
25
26
public var maxItems : Int ?
26
27
public var uniqueItems : Bool
Original file line number Diff line number Diff line change 6
6
7
7
import Foundation
8
8
9
- public struct StringRule : @ unchecked Sendable {
9
+ public struct StringRule : Sendable {
10
10
public var minLength : Int ?
11
11
public var maxLength : Int ?
12
12
public var pattern : String ?
13
13
}
14
14
15
- public struct NumericRule < T: Comparable & Numeric > : @ unchecked Sendable {
15
+ public struct NumericRule < T: Comparable & Numeric > {
16
16
public var minimum : T ?
17
17
public var exclusiveMinimum = false
18
18
public var maximum : T ?
19
19
public var exclusiveMaximum = false
20
20
public var multipleOf : T ?
21
21
}
22
+ extension NumericRule : Sendable where T: Sendable { }
22
23
23
- public struct ArrayRule : @ unchecked Sendable {
24
+ public struct ArrayRule : Sendable {
24
25
public var minItems : Int ?
25
26
public var maxItems : Int ?
26
27
public var uniqueItems : Bool
Original file line number Diff line number Diff line change 6
6
7
7
import Foundation
8
8
9
- public struct StringRule : @ unchecked Sendable {
9
+ public struct StringRule : Sendable {
10
10
public var minLength : Int ?
11
11
public var maxLength : Int ?
12
12
public var pattern : String ?
13
13
}
14
14
15
- public struct NumericRule < T: Comparable & Numeric > : @ unchecked Sendable {
15
+ public struct NumericRule < T: Comparable & Numeric > {
16
16
public var minimum : T ?
17
17
public var exclusiveMinimum = false
18
18
public var maximum : T ?
19
19
public var exclusiveMaximum = false
20
20
public var multipleOf : T ?
21
21
}
22
+ extension NumericRule : Sendable where T: Sendable { }
22
23
23
- public struct ArrayRule : @ unchecked Sendable {
24
+ public struct ArrayRule : Sendable {
24
25
public var minItems : Int ?
25
26
public var maxItems : Int ?
26
27
public var uniqueItems : Bool
Original file line number Diff line number Diff line change 6
6
7
7
import Foundation
8
8
9
- public struct StringRule : @ unchecked Sendable {
9
+ public struct StringRule : Sendable {
10
10
public var minLength : Int ?
11
11
public var maxLength : Int ?
12
12
public var pattern : String ?
13
13
}
14
14
15
- public struct NumericRule < T: Comparable & Numeric > : @ unchecked Sendable {
15
+ public struct NumericRule < T: Comparable & Numeric > {
16
16
public var minimum : T ?
17
17
public var exclusiveMinimum = false
18
18
public var maximum : T ?
19
19
public var exclusiveMaximum = false
20
20
public var multipleOf : T ?
21
21
}
22
+ extension NumericRule : Sendable where T: Sendable { }
22
23
23
- public struct ArrayRule : @ unchecked Sendable {
24
+ public struct ArrayRule : Sendable {
24
25
public var minItems : Int ?
25
26
public var maxItems : Int ?
26
27
public var uniqueItems : Bool
Original file line number Diff line number Diff line change 6
6
7
7
import Foundation
8
8
9
- internal struct StringRule : @ unchecked Sendable {
9
+ internal struct StringRule : Sendable {
10
10
internal var minLength : Int ?
11
11
internal var maxLength : Int ?
12
12
internal var pattern : String ?
13
13
}
14
14
15
- internal struct NumericRule < T: Comparable & Numeric > : @ unchecked Sendable {
15
+ internal struct NumericRule < T: Comparable & Numeric > {
16
16
internal var minimum : T ?
17
17
internal var exclusiveMinimum = false
18
18
internal var maximum : T ?
19
19
internal var exclusiveMaximum = false
20
20
internal var multipleOf : T ?
21
21
}
22
+ extension NumericRule : Sendable where T: Sendable { }
22
23
23
- internal struct ArrayRule : @ unchecked Sendable {
24
+ internal struct ArrayRule : Sendable {
24
25
internal var minItems : Int ?
25
26
internal var maxItems : Int ?
26
27
internal var uniqueItems : Bool
Original file line number Diff line number Diff line change 6
6
7
7
import Foundation
8
8
9
- public struct StringRule : @ unchecked Sendable {
9
+ public struct StringRule : Sendable {
10
10
public var minLength : Int ?
11
11
public var maxLength : Int ?
12
12
public var pattern : String ?
13
13
}
14
14
15
- public struct NumericRule < T: Comparable & Numeric > : @ unchecked Sendable {
15
+ public struct NumericRule < T: Comparable & Numeric > {
16
16
public var minimum : T ?
17
17
public var exclusiveMinimum = false
18
18
public var maximum : T ?
19
19
public var exclusiveMaximum = false
20
20
public var multipleOf : T ?
21
21
}
22
+ extension NumericRule : Sendable where T: Sendable { }
22
23
23
- public struct ArrayRule : @ unchecked Sendable {
24
+ public struct ArrayRule : Sendable {
24
25
public var minItems : Int ?
25
26
public var maxItems : Int ?
26
27
public var uniqueItems : Bool
Original file line number Diff line number Diff line change 6
6
7
7
import Foundation
8
8
9
- public struct StringRule : @ unchecked Sendable {
9
+ public struct StringRule : Sendable {
10
10
public var minLength : Int ?
11
11
public var maxLength : Int ?
12
12
public var pattern : String ?
13
13
}
14
14
15
- public struct NumericRule < T: Comparable & Numeric > : @ unchecked Sendable {
15
+ public struct NumericRule < T: Comparable & Numeric > {
16
16
public var minimum : T ?
17
17
public var exclusiveMinimum = false
18
18
public var maximum : T ?
19
19
public var exclusiveMaximum = false
20
20
public var multipleOf : T ?
21
21
}
22
+ extension NumericRule : Sendable where T: Sendable { }
22
23
23
- public struct ArrayRule : @ unchecked Sendable {
24
+ public struct ArrayRule : Sendable {
24
25
public var minItems : Int ?
25
26
public var maxItems : Int ?
26
27
public var uniqueItems : Bool
Original file line number Diff line number Diff line change 6
6
7
7
import Foundation
8
8
9
- public struct StringRule : @ unchecked Sendable {
9
+ public struct StringRule : Sendable {
10
10
public var minLength : Int ?
11
11
public var maxLength : Int ?
12
12
public var pattern : String ?
13
13
}
14
14
15
- public struct NumericRule < T: Comparable & Numeric > : @ unchecked Sendable {
15
+ public struct NumericRule < T: Comparable & Numeric > {
16
16
public var minimum : T ?
17
17
public var exclusiveMinimum = false
18
18
public var maximum : T ?
19
19
public var exclusiveMaximum = false
20
20
public var multipleOf : T ?
21
21
}
22
+ extension NumericRule : Sendable where T: Sendable { }
22
23
23
- public struct ArrayRule : @ unchecked Sendable {
24
+ public struct ArrayRule : Sendable {
24
25
public var minItems : Int ?
25
26
public var maxItems : Int ?
26
27
public var uniqueItems : Bool
Original file line number Diff line number Diff line change 6
6
7
7
import Foundation
8
8
9
- public struct StringRule : @ unchecked Sendable {
9
+ public struct StringRule : Sendable {
10
10
public var minLength : Int ?
11
11
public var maxLength : Int ?
12
12
public var pattern : String ?
13
13
}
14
14
15
- public struct NumericRule < T: Comparable & Numeric > : @ unchecked Sendable {
15
+ public struct NumericRule < T: Comparable & Numeric > {
16
16
public var minimum : T ?
17
17
public var exclusiveMinimum = false
18
18
public var maximum : T ?
19
19
public var exclusiveMaximum = false
20
20
public var multipleOf : T ?
21
21
}
22
+ extension NumericRule : Sendable where T: Sendable { }
22
23
23
- public struct ArrayRule : @ unchecked Sendable {
24
+ public struct ArrayRule : Sendable {
24
25
public var minItems : Int ?
25
26
public var maxItems : Int ?
26
27
public var uniqueItems : Bool
You can’t perform that action at this time.
0 commit comments