Skip to content

Commit

Permalink
CRC
Browse files Browse the repository at this point in the history
  • Loading branch information
MP0w committed Jun 26, 2016
1 parent 8782053 commit 2cc1193
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Source/JSONAPISerializer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public struct JSONAPISerializer<T: JSONAPIEntity>: Serializable {

- parameter object: A `JSONAPIEntities`
- parameter topLevelLinks: A top `JSONAPILink` optional object
- parameter topLevelMeta: A meta object that will be serialzied and placed in the top level of the json.
- parameter topLevelMeta: A meta object that will be serialized and placed in the top level of the json.
- parameter includeChildren: when true it will include relationships of relationships, false by default.

- returns: A serializable object that serializes a `JSONAPIEntity` conforming to JSON API
Expand All @@ -116,7 +116,7 @@ public struct JSONAPISerializer<T: JSONAPIEntity>: Serializable {

- parameter objects: An array of `JSONAPIEntity`
- parameter topLevelLinks: A top `JSONAPILink` optional object
- parameter topLevelMeta: A meta object that will be serialzied and placed in the top level of the json.
- parameter topLevelMeta: A meta object that will be serialized and placed in the top level of the json.
- parameter includeChildren: when true it wll include relationships of relationships, false by default.

- returns: A serializable object that serializes an array of `JSONAPIEntity` conforming to JSON API
Expand Down
3 changes: 1 addition & 2 deletions Tests/JSONAPITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,8 @@ class JSONAPISpec: QuickSpec {
expect(data.count).toNot(equal(0))
}


context("top level meta") {
it("should be include in the top level") {
it("should be included in the top level") {
let object = json(JSONAPISerializer(user, topLevelMeta: ["test": "meta"]))
let meta = object["meta"].dictionary
expect(meta).toNot(beNil())
Expand Down

0 comments on commit 2cc1193

Please sign in to comment.