mirror of
https://github.com/encounter/JSONAPI.git
synced 2026-03-30 11:18:38 -07:00
whitespace changes -- trying to switch from one whitespace standard to another in cohesive chunks to fit Xcode 11 default.
This commit is contained in:
@@ -350,45 +350,45 @@ extension IncludedTests {
|
||||
|
||||
// MARK: - Test types
|
||||
extension IncludedTests {
|
||||
enum TestEntityType: ResourceObjectDescription {
|
||||
enum TestEntityType: ResourceObjectDescription {
|
||||
|
||||
typealias Relationships = NoRelationships
|
||||
typealias Relationships = NoRelationships
|
||||
|
||||
public static var jsonType: String { return "test_entity1" }
|
||||
public static var jsonType: String { return "test_entity1" }
|
||||
|
||||
public struct Attributes: JSONAPI.SparsableAttributes {
|
||||
let foo: Attribute<String>
|
||||
let bar: Attribute<Int>
|
||||
public struct Attributes: JSONAPI.SparsableAttributes {
|
||||
let foo: Attribute<String>
|
||||
let bar: Attribute<Int>
|
||||
|
||||
public enum CodingKeys: String, Equatable, CodingKey {
|
||||
case foo
|
||||
case bar
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
typealias TestEntity = BasicEntity<TestEntityType>
|
||||
typealias TestEntity = BasicEntity<TestEntityType>
|
||||
|
||||
enum TestEntityType2: ResourceObjectDescription {
|
||||
enum TestEntityType2: ResourceObjectDescription {
|
||||
|
||||
public static var jsonType: String { return "test_entity2" }
|
||||
public static var jsonType: String { return "test_entity2" }
|
||||
|
||||
public struct Relationships: JSONAPI.Relationships {
|
||||
let entity1: ToOneRelationship<TestEntity, NoMetadata, NoLinks>
|
||||
}
|
||||
public struct Relationships: JSONAPI.Relationships {
|
||||
let entity1: ToOneRelationship<TestEntity, NoMetadata, NoLinks>
|
||||
}
|
||||
|
||||
public struct Attributes: JSONAPI.SparsableAttributes {
|
||||
let foo: Attribute<String>
|
||||
let bar: Attribute<Int>
|
||||
public struct Attributes: JSONAPI.SparsableAttributes {
|
||||
let foo: Attribute<String>
|
||||
let bar: Attribute<Int>
|
||||
|
||||
public enum CodingKeys: String, Equatable, CodingKey {
|
||||
case foo
|
||||
case bar
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
typealias TestEntity2 = BasicEntity<TestEntityType2>
|
||||
typealias TestEntity2 = BasicEntity<TestEntityType2>
|
||||
|
||||
enum TestEntityType3: ResourceObjectDescription {
|
||||
|
||||
|
||||
@@ -191,19 +191,19 @@ extension ResourceBodyTests {
|
||||
|
||||
extension ResourceBodyTests {
|
||||
|
||||
enum ArticleType: ResourceObjectDescription {
|
||||
public static var jsonType: String { return "articles" }
|
||||
enum ArticleType: ResourceObjectDescription {
|
||||
public static var jsonType: String { return "articles" }
|
||||
|
||||
typealias Relationships = NoRelationships
|
||||
typealias Relationships = NoRelationships
|
||||
|
||||
struct Attributes: JSONAPI.SparsableAttributes {
|
||||
let title: Attribute<String>
|
||||
struct Attributes: JSONAPI.SparsableAttributes {
|
||||
let title: Attribute<String>
|
||||
|
||||
public enum CodingKeys: String, Equatable, CodingKey {
|
||||
case title
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
typealias Article = BasicEntity<ArticleType>
|
||||
typealias Article = BasicEntity<ArticleType>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user