Right now there is no way to constrain on EncodableJSONAPIDocument.PrimaryResourceBody such that you know anything about what the primary resource body looks like (specifically that it contains resources that conform to ResourceObjectType). PrimaryResourceBody is currently only required to be equatable and encodable.
Right now there is no way to constrain on
EncodableJSONAPIDocument.PrimaryResourceBody
such that you know anything about what the primary resource body looks like (specifically that it contains resources that conform toResourceObjectType
).PrimaryResourceBody
is currently only required to be equatable and encodable.