Add tests for sparse fieldset includes

This commit is contained in:
Mathew Polzin
2019-08-05 15:21:59 -07:00
parent 32d584099f
commit 61f2edb59a
2 changed files with 176 additions and 2 deletions
@@ -38,3 +38,9 @@ public extension ResourceObject where Description.Attributes: SparsableAttribute
return SparseFieldset(self, fields: fields)
}
}
public extension ResourceObject where Description.Attributes: SparsableAttributes {
/// The Sparse Fieldset type for this `ResourceObject`
typealias SparseType = SparseFieldset<Description, MetaType, LinksType, EntityRawIdType>
}