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: 1 addition & 1 deletion Sources/OpenAPIRuntime/Base/CommonOutputPayloads.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/// not all are defined by the user in the OpenAPI document, an extra
/// `undocumented` enum case is used when such a status code is
/// detected.
public struct UndocumentedPayload: Sendable, Equatable, Hashable {
public struct UndocumentedPayload: Sendable, Hashable {
/// Creates a new payload.
public init() {}
}
6 changes: 3 additions & 3 deletions Sources/OpenAPIRuntime/Base/OpenAPIValue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
///
/// - Important: This type is expensive at runtime; try to avoid it.
/// Define the structure of your types in the OpenAPI document instead.
public struct OpenAPIValueContainer: Codable, Equatable, Hashable, Sendable {
public struct OpenAPIValueContainer: Codable, Hashable, Sendable {

/// The underlying dynamic value.
public var value: (any Sendable)?
Expand Down Expand Up @@ -278,7 +278,7 @@ extension OpenAPIValueContainer: ExpressibleByFloatLiteral {
///
/// - Important: This type is expensive at runtime; try to avoid it.
/// Define the structure of your types in the OpenAPI document instead.
public struct OpenAPIObjectContainer: Codable, Equatable, Hashable, Sendable {
public struct OpenAPIObjectContainer: Codable, Hashable, Sendable {

/// The underlying dynamic dictionary value.
public var value: [String: (any Sendable)?]
Expand Down Expand Up @@ -382,7 +382,7 @@ public struct OpenAPIObjectContainer: Codable, Equatable, Hashable, Sendable {
///
/// - Important: This type is expensive at runtime; try to avoid it.
/// Define the structure of your types in the OpenAPI document instead.
public struct OpenAPIArrayContainer: Codable, Equatable, Hashable, Sendable {
public struct OpenAPIArrayContainer: Codable, Hashable, Sendable {

/// The underlying dynamic array value.
public var value: [(any Sendable)?]
Expand Down
2 changes: 1 addition & 1 deletion Sources/OpenAPIRuntime/Conversion/CodableExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ extension Encoder {
}

/// A freeform String coding key for decoding undocumented values.
private struct StringKey: CodingKey, Equatable, Hashable, Comparable {
private struct StringKey: CodingKey, Hashable, Comparable {

var stringValue: String
var intValue: Int? {
Expand Down
14 changes: 7 additions & 7 deletions Sources/OpenAPIRuntime/Interface/CurrencyTypes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import Foundation
#endif

/// A header field used in an HTTP request or response.
public struct HeaderField: Equatable, Hashable, Sendable {
public struct HeaderField: Hashable, Sendable {

/// The name of the HTTP header field.
public var name: String
Expand All @@ -40,10 +40,10 @@ public struct HeaderField: Equatable, Hashable, Sendable {
/// Describes the HTTP method used in an OpenAPI operation.
///
/// https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#fixed-fields-7
public struct HTTPMethod: RawRepresentable, Equatable, Hashable, Sendable {
public struct HTTPMethod: RawRepresentable, Hashable, Sendable {

/// Describes an HTTP method explicitly supported by OpenAPI.
private enum OpenAPIHTTPMethod: String, Equatable, Hashable, Sendable {
private enum OpenAPIHTTPMethod: String, Hashable, Sendable {
case GET
case PUT
case POST
Expand Down Expand Up @@ -120,7 +120,7 @@ public struct HTTPMethod: RawRepresentable, Equatable, Hashable, Sendable {
}

/// An HTTP request, sent by the client to the server.
public struct Request: Equatable, Hashable, Sendable {
public struct Request: Hashable, Sendable {

/// The path of the URL for the HTTP request.
public var path: String
Expand Down Expand Up @@ -199,7 +199,7 @@ public struct Request: Equatable, Hashable, Sendable {
}

/// An HTTP response, returned by the server to the client.
public struct Response: Equatable, Hashable, Sendable {
public struct Response: Hashable, Sendable {

/// The status code of the HTTP response, for example `200`.
public var statusCode: Int
Expand Down Expand Up @@ -228,7 +228,7 @@ public struct Response: Equatable, Hashable, Sendable {

/// A container for request metadata already parsed and validated
/// by the server transport.
public struct ServerRequestMetadata: Equatable, Hashable, Sendable {
public struct ServerRequestMetadata: Hashable, Sendable {

/// The path parameters parsed from the URL of the HTTP request.
public var pathParameters: [String: String]
Expand All @@ -252,7 +252,7 @@ public struct ServerRequestMetadata: Equatable, Hashable, Sendable {
}

/// Describes the kind and associated data of a URL path component.
public enum RouterPathComponent: Equatable, Hashable, Sendable {
public enum RouterPathComponent: Hashable, Sendable {

/// A constant string component.
///
Expand Down