Update README and code documentation slightly

This commit is contained in:
Mathew Polzin
2019-01-21 22:50:19 -08:00
parent 5433dddc81
commit 5da4a963d4
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ Note that Playground support for importing non-system Frameworks is still a bit
- `data`
- [x] Encoding/Decoding
- [x] Arbitrary
- [ ] OpenAPI
- [x] OpenAPI
- `included`
- [x] Encoding/Decoding
- [x] Arbitrary
@@ -91,7 +91,9 @@ extension RelationshipType {
}
extension ToOneRelationship: OpenAPINodeType {
// TODO: const for json `type`
// NOTE: const for json `type` not supported by OpenAPI 3.0
// Will use "enum" with one possible value for now.
// TODO: metadata & links
static public func openAPINode() throws -> JSONNode {
let nullable = Identifiable.self is _Optional.Type
@@ -104,7 +106,9 @@ extension ToOneRelationship: OpenAPINodeType {
}
extension ToManyRelationship: OpenAPINodeType {
// TODO: const for json `type`
// NOTE: const for json `type` not supported by OpenAPI 3.0
// Will use "enum" with one possible value for now.
// TODO: metadata & links
static public func openAPINode() throws -> JSONNode {
return .object(.init(format: .generic,