// // Examples.swift // JSONAPI // // Created by Mathew Polzin on 11/12/18. // import JSONAPI enum PersonDescription: IdentifiedEntityDescription { static var type: String { return "people" } typealias Identifier = Id struct Attributes: JSONAPI.Attributes { let name: [String] let favoriteColor: String } struct Relationships: JSONAPI.Relationships { let friends: ToManyRelationship } } typealias Person = Entity func tmp() { let x: Person.Identifier }