Add body variable to JSONAPIDocument protocol

This commit is contained in:
Mathew Polzin
2018-11-27 17:55:56 -08:00
parent 9c8b2fbebb
commit abee0c4d0e
+2
View File
@@ -11,6 +11,8 @@ public protocol JSONAPIDocument: Codable, Equatable {
associatedtype LinksType: JSONAPI.Links
associatedtype IncludeType: JSONAPI.Include
associatedtype Error: JSONAPIError
var body: Document<ResourceBody, MetaType, LinksType, IncludeType, Error>.Body { get }
}
/// A JSON API Document represents the entire body