@@ -12,7 +12,7 @@ import OpenAPIKitCore
12
12
/// A schema context stores information about a schema.
13
13
/// All schemas can have the contextual information in
14
14
/// this protocol.
15
- public protocol JSONSchemaContext {
15
+ public protocol JSONSchemaContext : Sendable {
16
16
/// The format of the schema as a string value.
17
17
///
18
18
/// This can be set even when a schema type has
@@ -574,8 +574,8 @@ extension JSONSchema {
574
574
/// `IntegerContext` _can_ be asked for the
575
575
/// `NumericContext` that would describe it via its
576
576
/// `numericContext` property.
577
- public struct NumericContext : Equatable {
578
- public struct Bound : Equatable {
577
+ public struct NumericContext : Equatable , Sendable {
578
+ public struct Bound : Equatable , Sendable {
579
579
public let value : Double
580
580
public let exclusive : Bool
581
581
@@ -610,8 +610,8 @@ extension JSONSchema {
610
610
}
611
611
612
612
/// The context that only applies to `.integer` schemas.
613
- public struct IntegerContext : Equatable {
614
- public struct Bound : Equatable {
613
+ public struct IntegerContext : Equatable , Sendable {
614
+ public struct Bound : Equatable , Sendable {
615
615
public let value : Int
616
616
public let exclusive : Bool
617
617
@@ -696,7 +696,7 @@ extension JSONSchema {
696
696
}
697
697
698
698
/// The context that only applies to `.array` schemas.
699
- public struct ArrayContext : Equatable {
699
+ public struct ArrayContext : Equatable , Sendable {
700
700
/// A JSON Type Node that describes
701
701
/// the type of each element in the array.
702
702
public let items : JSONSchema ?
@@ -729,7 +729,7 @@ extension JSONSchema {
729
729
}
730
730
731
731
/// The context that only applies to `.object` schemas.
732
- public struct ObjectContext : Equatable {
732
+ public struct ObjectContext : Equatable , Sendable {
733
733
/// The maximum number of properties the object
734
734
/// is allowed to have.
735
735
public let maxProperties : Int ?
@@ -796,7 +796,7 @@ extension JSONSchema {
796
796
}
797
797
798
798
/// The context that only applies to `.string` schemas.
799
- public struct StringContext : Equatable {
799
+ public struct StringContext : Equatable , Sendable {
800
800
public let maxLength : Int ?
801
801
let _minLength : Int ?
802
802
@@ -833,7 +833,7 @@ extension JSONSchema {
833
833
834
834
extension OpenAPI {
835
835
/// An encoding, as specified in RFC 2045, part 6.1 and RFC 4648.
836
- public enum ContentEncoding : String , Codable {
836
+ public enum ContentEncoding : String , Codable , Sendable {
837
837
case _7bit = " 7bit "
838
838
case _8bit = " 8bit "
839
839
case binary
0 commit comments