json_api_assert
json_api_assert copied to clipboard
Composable assertions for JSON API payload
## Version Currently using the latest code from `master` ## Issue I was trying to use `assert_data` to assert that the server's JSON response included all the required attributes for...
New name: `jassert` or `jassert` One function that `conn` can be pipped through. The following API: - `jassert(conn)` - creates a new map `%{payload: JSON.parse(conn.body), status: conn.status}` This function should...
When creating you likely do not know the returning `id` value. In this case we still want to user `assert_data/2` however we need to have a different matching case. We...
More explicit?
This is a bit pedantic, but `ja_serializer` and `ember-data` default to dasherized types per json-api.org recommendation although the spec allows for both. I'm currently specifying the type with `s/2` to...
- [ ] links - [ ] meta - [ ] errors - [x] `Ecto.Date` serialization (#2) - [x] `Ecto.Time` serialization (#2) - [x] `Ecto.DateTime` serialization (#2)