Skip to content

Commit

Permalink
Add body variable to JSONAPIDocument protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpolzin committed Nov 28, 2018
1 parent 9c8b2fb commit abee0c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/JSONAPI/Document/Document.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit abee0c4

Please sign in to comment.