diff --git a/README.md b/README.md index 6ffe3e1..a550311 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,7 @@ Note that Playground support for importing non-system Frameworks is still a bit - `included` - [x] Encoding/Decoding - [x] Arbitrary - - [ ] OpenAPI + - [x] OpenAPI - `errors` - [x] Encoding/Decoding - [x] Arbitrary diff --git a/Sources/JSONAPIOpenAPI/OpenAPI/OpenAPITypes+Codable.swift b/Sources/JSONAPIOpenAPI/OpenAPI/OpenAPITypes+Codable.swift index f750ef2..9322035 100644 --- a/Sources/JSONAPIOpenAPI/OpenAPI/OpenAPITypes+Codable.swift +++ b/Sources/JSONAPIOpenAPI/OpenAPI/OpenAPITypes+Codable.swift @@ -170,17 +170,17 @@ extension JSONNode: Encodable { try contextA.encode(to: encoder) try contextB.encode(to: encoder) - case .all(let nodes): + case .all(of: let nodes): var container = encoder.container(keyedBy: SubschemaCodingKeys.self) try container.encode(nodes, forKey: .allOf) - case .one(let nodes): + case .one(of: let nodes): var container = encoder.container(keyedBy: SubschemaCodingKeys.self) try container.encode(nodes, forKey: .oneOf) - case .any(let nodes): + case .any(of: let nodes): var container = encoder.container(keyedBy: SubschemaCodingKeys.self) try container.encode(nodes, forKey: .anyOf)