From abee0c4d0ee3f66aee680ae1214ced78d87c760f Mon Sep 17 00:00:00 2001 From: Mathew Polzin Date: Tue, 27 Nov 2018 17:55:56 -0800 Subject: [PATCH] Add body variable to JSONAPIDocument protocol --- Sources/JSONAPI/Document/Document.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/JSONAPI/Document/Document.swift b/Sources/JSONAPI/Document/Document.swift index 95f3a85..e31d937 100644 --- a/Sources/JSONAPI/Document/Document.swift +++ b/Sources/JSONAPI/Document/Document.swift @@ -11,6 +11,8 @@ public protocol JSONAPIDocument: Codable, Equatable { associatedtype LinksType: JSONAPI.Links associatedtype IncludeType: JSONAPI.Include associatedtype Error: JSONAPIError + + var body: Document.Body { get } } /// A JSON API Document represents the entire body