jbuilder-json_api
jbuilder-json_api copied to clipboard
invalid json-api code is generated
First of all, thanks for this gem! will definitely make life a bit easier.
Second, using a json-api validator: https://www.npmjs.com/package/jsonapi-validator I found that the generated code is invalid due to two reasons:
- the 'id' attribute is written as a number, not a string. A matter of a simple "to_s" in the code
- null attributes are also not strings. so either they are not written at all, or stringified as "null".