mirror of
https://github.com/encounter/JSONAPI.git
synced 2026-03-30 11:18:38 -07:00
Add tests for sparse fieldset includes
This commit is contained in:
@@ -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>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user