Skip to content

Commit cf8bc7a

Browse files
committed
fix for older Swift versions
1 parent 44c8269 commit cf8bc7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/OpenAPIKit/Document/Document.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ extension OpenAPI {
173173

174174
extension OpenAPI.Document: Equatable {
175175
public static func == (lhs: Self, rhs: Self) -> Bool {
176-
lhs.openAPIVersion == rhs.openAPIVersion
176+
return lhs.openAPIVersion == rhs.openAPIVersion
177177
&& lhs.info == rhs.info
178178
&& lhs.servers == rhs.servers
179179
&& lhs.paths == rhs.paths
@@ -413,7 +413,7 @@ extension OpenAPI.Document {
413413
/// prior to OpenAPIKit gaining official support for the new version and its
414414
/// features.
415415
public enum DocumentConfiguration {
416-
public static let versionMapKey: CodingUserInfoKey = .init(rawValue: "document-version-map")!
416+
public static let versionMapKey = CodingUserInfoKey(rawValue: "document-version-map")!
417417

418418
internal static func version(for decoder: Decoder, versionString: String) -> OpenAPI.Document.Version? {
419419
guard let map = decoder.userInfo[versionMapKey] as? [String: OpenAPI.Document.Version]

0 commit comments

Comments
 (0)