mirror of
https://github.com/encounter/JSONAPI.git
synced 2026-03-30 11:18:38 -07:00
Add todos for Entity Id and type. Add example usage of OpenAPI entity schema support in Playground
This commit is contained in:
@@ -104,6 +104,7 @@ extension ToManyRelationship: OpenAPINodeType {
|
||||
|
||||
extension Entity: OpenAPINodeType where Description.Attributes: Sampleable, Description.Relationships: Sampleable {
|
||||
public static func openAPINode() throws -> JSONNode {
|
||||
// TODO: Id, type, metadata, links
|
||||
let attributesNode: JSONNode? = Description.Attributes.self == NoAttributes.self
|
||||
? nil
|
||||
: try Description.Attributes.genericObjectOpenAPINode()
|
||||
|
||||
Reference in New Issue
Block a user