@@ -320,18 +320,36 @@ extension Entity where MetaType == NoMetadata {
320320 }
321321}
322322
323+ extension Entity where MetaType == NoMetadata , EntityRawIdType: CreatableRawIdType {
324+ public init ( attributes: Description . Attributes , relationships: Description . Relationships , links: LinksType ) {
325+ self . init ( attributes: attributes, relationships: relationships, meta: . none, links: links)
326+ }
327+ }
328+
323329extension Entity where LinksType == NoLinks {
324330 public init ( id: Entity . Id , attributes: Description . Attributes , relationships: Description . Relationships , meta: MetaType ) {
325331 self . init ( id: id, attributes: attributes, relationships: relationships, meta: meta, links: . none)
326332 }
327333}
328334
335+ extension Entity where LinksType == NoLinks , EntityRawIdType: CreatableRawIdType {
336+ public init ( attributes: Description . Attributes , relationships: Description . Relationships , meta: MetaType ) {
337+ self . init ( attributes: attributes, relationships: relationships, meta: meta, links: . none)
338+ }
339+ }
340+
329341extension Entity where MetaType == NoMetadata , LinksType == NoLinks {
330342 public init ( id: Entity . Id , attributes: Description . Attributes , relationships: Description . Relationships ) {
331343 self . init ( id: id, attributes: attributes, relationships: relationships, meta: . none, links: . none)
332344 }
333345}
334346
347+ extension Entity where MetaType == NoMetadata , LinksType == NoLinks , EntityRawIdType: CreatableRawIdType {
348+ public init ( attributes: Description . Attributes , relationships: Description . Relationships ) {
349+ self . init ( attributes: attributes, relationships: relationships, meta: . none, links: . none)
350+ }
351+ }
352+
335353// MARK: Pointer for Relationships use.
336354public extension Entity where EntityRawIdType: JSONAPI . RawIdType {
337355 /// Get a pointer to this entity that can be used as a
0 commit comments