Skip to content

Commit

Permalink
update README and add associated type labels to patterns for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpolzin committed Jan 22, 2019
1 parent 9cbc626 commit e3c637a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions Sources/JSONAPIOpenAPI/OpenAPI/OpenAPITypes+Codable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e3c637a

Please sign in to comment.