Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
/Packages
/*.xcodeproj
.swiftpm

harmony.json
4 changes: 2 additions & 2 deletions Sources/OpenAPIKit/Document/Document.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ extension OpenAPI {
///
/// See the documentation on `DereferencedDocument.resolved()` for more.
///
public struct Document: Equatable, CodableVendorExtendable {
public struct Document: Equatable, CodableVendorExtendable, Sendable {
/// OpenAPI Spec "openapi" field.
///
/// OpenAPIKit only explicitly supports versions that can be found in
Expand Down Expand Up @@ -430,7 +430,7 @@ extension OpenAPI.Document {
/// specification releases a new patch version, OpenAPIKit will see a patch version release
/// explicitly supports decoding documents of that new patch version before said version will
/// succesfully decode as the `v3_1_x` case.
public enum Version: RawRepresentable, Equatable, Codable {
public enum Version: RawRepresentable, Equatable, Codable, Sendable {
case v3_1_0
case v3_1_1
case v3_1_x(x: Int)
Expand Down
8 changes: 4 additions & 4 deletions Sources/OpenAPIKit/Document/DocumentInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ extension OpenAPI.Document {
/// OpenAPI Spec "Info Object"
///
/// See [OpenAPI Info Object](https://spec.openapis.org/oas/v3.1.1.html#info-object).
public struct Info: Equatable, CodableVendorExtendable {
public struct Info: Equatable, CodableVendorExtendable, Sendable {
public var title: String
public var summary: String?
public var description: String?
Expand Down Expand Up @@ -51,7 +51,7 @@ extension OpenAPI.Document {
/// OpenAPI Spec "Contact Object"
///
/// See [OpenAPI Contact Object](https://spec.openapis.org/oas/v3.1.1.html#contact-object).
public struct Contact: Equatable, CodableVendorExtendable {
public struct Contact: Equatable, CodableVendorExtendable, Sendable {
public let name: String?
public let url: URL?
public let email: String?
Expand Down Expand Up @@ -79,7 +79,7 @@ extension OpenAPI.Document {
/// OpenAPI Spec "License Object"
///
/// See [OpenAPI License Object](https://spec.openapis.org/oas/v3.1.1.html#license-object).
public struct License: Equatable, CodableVendorExtendable {
public struct License: Equatable, CodableVendorExtendable, Sendable {
public let name: String
public let identifier: Identifier?

Expand Down Expand Up @@ -115,7 +115,7 @@ extension OpenAPI.Document {

/// The `identifier`/`url` property of the OpenAPI Spec "License Object"
/// that can be either a URL or an SPDX identifier.
public enum Identifier: Equatable {
public enum Identifier: Equatable, Sendable {
case url(URL)
/// See https://spdx.dev/spdx-specification-21-web-version/#h.jxpfx0ykyb60
/// for more on SPDX.
Expand Down
2 changes: 1 addition & 1 deletion Sources/OpenAPIKit/Tag.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ extension OpenAPI {
/// OpenAPI Spec "Tag Object"
///
/// See [OpenAPI Tag Object](https://spec.openapis.org/oas/v3.1.1.html#tag-object).
public struct Tag: Equatable, CodableVendorExtendable {
public struct Tag: Equatable, CodableVendorExtendable, Sendable {
public let name: String
public let description: String?
public let externalDocs: ExternalDocumentation?
Expand Down
4 changes: 2 additions & 2 deletions Sources/OpenAPIKit30/Document/Document.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ extension OpenAPI {
///
/// See the documentation on `DereferencedDocument.resolved()` for more.
///
public struct Document: Equatable, CodableVendorExtendable {
public struct Document: Equatable, CodableVendorExtendable, Sendable {
/// OpenAPI Spec "openapi" field.
///
/// OpenAPIKit only explicitly supports versions that can be found in
Expand Down Expand Up @@ -414,7 +414,7 @@ extension OpenAPI.Document {
/// specification releases a new patch version, OpenAPIKit will see a patch version release
/// explicitly supports decoding documents of that new patch version before said version will
/// succesfully decode as the `v3_0_x` case.
public enum Version: RawRepresentable, Equatable, Codable {
public enum Version: RawRepresentable, Equatable, Codable, Sendable {
case v3_0_0
case v3_0_1
case v3_0_2
Expand Down
6 changes: 3 additions & 3 deletions Sources/OpenAPIKit30/Document/DocumentInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ extension OpenAPI.Document {
/// OpenAPI Spec "Info Object"
///
/// See [OpenAPI Info Object](https://spec.openapis.org/oas/v3.0.4.html#info-object).
public struct Info: Equatable, CodableVendorExtendable {
public struct Info: Equatable, CodableVendorExtendable, Sendable {
public let title: String
public let description: String?
public let termsOfService: URL?
Expand Down Expand Up @@ -48,7 +48,7 @@ extension OpenAPI.Document {
/// OpenAPI Spec "Contact Object"
///
/// See [OpenAPI Contact Object](https://spec.openapis.org/oas/v3.0.4.html#contact-object).
public struct Contact: Equatable, CodableVendorExtendable {
public struct Contact: Equatable, CodableVendorExtendable, Sendable {
public let name: String?
public let url: URL?
public let email: String?
Expand Down Expand Up @@ -76,7 +76,7 @@ extension OpenAPI.Document {
/// OpenAPI Spec "License Object"
///
/// See [OpenAPI License Object](https://spec.openapis.org/oas/v3.0.4.html#license-object).
public struct License: Equatable, CodableVendorExtendable {
public struct License: Equatable, CodableVendorExtendable, Sendable {
public let name: String
public let url: URL?

Expand Down
2 changes: 1 addition & 1 deletion Sources/OpenAPIKit30/Tag.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ extension OpenAPI {
/// OpenAPI Spec "Tag Object"
///
/// See [OpenAPI Tag Object](https://spec.openapis.org/oas/v3.0.4.html#tag-object).
public struct Tag: Equatable, CodableVendorExtendable {
public struct Tag: Equatable, CodableVendorExtendable, Sendable {
public let name: String
public let description: String?
public let externalDocs: ExternalDocumentation?
Expand Down
Loading