json-api-vanilla
json-api-vanilla copied to clipboard
Deserialize JSON API formats into vanilla Ruby objects.
… elements to avoid overwriting data
We have found that it would be useful to be able to specify the container / superclass for the ruby objects when parsing / building a document. The reason is...
As stated in the JSON API specs a resource linkage object may have these values: > Resource linkage MUST be represented as one of the following: > > null for...
Hi guys. The example for building method is not working properly, it's build Document with nils see example bellow or test case in branch: ```ruby [1] pry(main)> [2] pry(main)> [3]...
According to the Spec (https://jsonapi.org/format/#document-resource-object-linkage), empty relationships are null by default. Object.new is roughly equal to an empty JSON ({}) in context of this deserializer. It is hard for us...
Add the ability to access resource links through `doc.data[0].links` in addition to `doc.links[doc.data[0]]`. This also makes links work when data is a single resource instead of an array.