diff --git a/Sources/JSONAPI/Resource/Entity.swift b/Sources/JSONAPI/Resource/Entity.swift index 09d4551..6a54635 100644 --- a/Sources/JSONAPI/Resource/Entity.swift +++ b/Sources/JSONAPI/Resource/Entity.swift @@ -40,6 +40,9 @@ public protocol EntityDescription { public protocol EntityType: PrimaryResource { associatedtype Description: EntityDescription associatedtype Identifier: Equatable & Codable + + typealias Attributes = Description.Attributes + typealias Relationships = Description.Relationships } /// An `Entity` is a single model type that can be