From e3c637a41e54ae77b23b341c6b92df4b850bda39 Mon Sep 17 00:00:00 2001 From: Mathew Polzin Date: Tue, 22 Jan 2019 11:57:18 -0800 Subject: [PATCH] update README and add associated type labels to patterns for clarity --- README.md | 2 +- Sources/JSONAPIOpenAPI/OpenAPI/OpenAPITypes+Codable.swift | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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)