Skip to content

Commit abee0c4

Browse files
committed
Add body variable to JSONAPIDocument protocol
1 parent 9c8b2fb commit abee0c4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Sources/JSONAPI/Document/Document.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ public protocol JSONAPIDocument: Codable, Equatable {
1111
associatedtype LinksType: JSONAPI.Links
1212
associatedtype IncludeType: JSONAPI.Include
1313
associatedtype Error: JSONAPIError
14+
15+
var body: Document<ResourceBody, MetaType, LinksType, IncludeType, Error>.Body { get }
1416
}
1517

1618
/// A JSON API Document represents the entire body

0 commit comments

Comments
 (0)