Skip to content

Commit 9695ef1

Browse files
committed
Readme and version update for empty relationships compliance.
1 parent 7756a31 commit 9695ef1

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

README.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ Returns a hash:
7676
},
7777
"links": {
7878
"self": "/posts/1"
79-
},
80-
"relationships": {}
79+
}
8180
}
8281
}
8382
```
@@ -102,8 +101,7 @@ Returns:
102101
},
103102
"links": {
104103
"self": "/posts/1"
105-
},
106-
"relationships": {}
104+
}
107105
},
108106
{
109107
"id": "2",
@@ -114,8 +112,7 @@ Returns:
114112
},
115113
"links": {
116114
"self": "/posts/2"
117-
},
118-
"relationships": {}
115+
}
119116
}
120117
]
121118
}
@@ -311,8 +308,7 @@ Returns:
311308
},
312309
"links": {
313310
"self": "/users/1"
314-
},
315-
"relationships": {}
311+
}
316312
},
317313
{
318314
"id": "1",
@@ -350,8 +346,7 @@ Returns:
350346
},
351347
"links": {
352348
"self": "/users/2"
353-
},
354-
"relationships": {}
349+
}
355350
}
356351
]
357352
}
@@ -434,6 +429,7 @@ end
434429

435430
## Release notes
436431

432+
* v0.2.2: Compliance fix for excluding empty relationship objects.
437433
* v0.2.1: Compliance fix for self links.
438434
* v0.2.0: Initial release with support for the final v1 JSON API spec.
439435

lib/jsonapi-serializers/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module JSONAPI
22
module Serializer
3-
VERSION = '0.2.1'
3+
VERSION = '0.2.2'
44
end
55
end

0 commit comments

Comments
 (0)