From 4f7db98a873a1fb0e85ec2e4c1309940641714c1 Mon Sep 17 00:00:00 2001 From: Mathew Polzin Date: Wed, 2 Jan 2019 19:42:32 -0800 Subject: [PATCH] Update playground files to work with v0.12.0 changes --- .../Contents.swift | 4 ++-- .../Contents.swift | 4 ++-- JSONAPI.playground/Sources/Entities.swift | 8 ++++---- JSONAPI.playground/contents.xcplayground | 2 -- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/JSONAPI.playground/Pages/Full Client & Server Example.xcplaygroundpage/Contents.swift b/JSONAPI.playground/Pages/Full Client & Server Example.xcplaygroundpage/Contents.swift index b8dad3e..abf3668 100644 --- a/JSONAPI.playground/Pages/Full Client & Server Example.xcplaygroundpage/Contents.swift +++ b/JSONAPI.playground/Pages/Full Client & Server Example.xcplaygroundpage/Contents.swift @@ -40,7 +40,7 @@ typealias Document @@ -52,7 +52,7 @@ enum AuthorDescription: EntityDescription { typealias Author = JSONEntity enum ArticleDescription: EntityDescription { - public static var type: String { return "articles" } + public static var jsonType: String { return "articles" } public struct Attributes: JSONAPI.Attributes { public let title: Attribute diff --git a/JSONAPI.playground/Pages/Full Document Verbose Generation.xcplaygroundpage/Contents.swift b/JSONAPI.playground/Pages/Full Document Verbose Generation.xcplaygroundpage/Contents.swift index d9c3095..d6aa80b 100644 --- a/JSONAPI.playground/Pages/Full Document Verbose Generation.xcplaygroundpage/Contents.swift +++ b/JSONAPI.playground/Pages/Full Document Verbose Generation.xcplaygroundpage/Contents.swift @@ -65,7 +65,7 @@ struct ToManyRelationshipLinks: JSONAPI.Links { /// Description of an Author entity. enum AuthorDescription: EntityDescription { - static var type: String { return "authors" } + static var jsonType: String { return "authors" } struct Attributes: JSONAPI.Attributes { let name: Attribute @@ -80,7 +80,7 @@ typealias Author = JSONAPI.Entity diff --git a/JSONAPI.playground/Sources/Entities.swift b/JSONAPI.playground/Sources/Entities.swift index c871304..48559cf 100644 --- a/JSONAPI.playground/Sources/Entities.swift +++ b/JSONAPI.playground/Sources/Entities.swift @@ -31,7 +31,7 @@ public typealias ToMany = ToManyRelationship @@ -70,7 +70,7 @@ public extension Entity where Description == PersonDescription, MetaType == NoMe public enum DogDescription: EntityDescription { - public static var type: String { return "dogs" } + public static var jsonType: String { return "dogs" } public struct Attributes: JSONAPI.Attributes { public let name: Attribute @@ -93,7 +93,7 @@ public typealias Dog = ExampleEntity public enum AlternativeDogDescription: EntityDescription { - public static var type: String { return "dogs" } + public static var jsonType: String { return "dogs" } public struct Attributes: JSONAPI.Attributes { public let name: Attribute @@ -131,7 +131,7 @@ public extension Entity where Description == DogDescription, MetaType == NoMetad public enum HouseDescription: EntityDescription { - public static var type: String { return "houses" } + public static var jsonType: String { return "houses" } public typealias Attributes = NoAttributes public typealias Relationships = NoRelationships diff --git a/JSONAPI.playground/contents.xcplayground b/JSONAPI.playground/contents.xcplayground index 0e5a1ca..8df8fa3 100644 --- a/JSONAPI.playground/contents.xcplayground +++ b/JSONAPI.playground/contents.xcplayground @@ -3,7 +3,5 @@ - - \ No newline at end of file