jsonapi-deserializable
jsonapi-deserializable copied to clipboard
Conveniently deserialize JSON API payloads into custom hashes.
There is an issue in case payload deserialization like this happens: ``` { "data":{ "type":"billing_period", "attributes":{ "invoiceType":"prepayment", "billingPeriodStart":"2022-06-01", "billingPeriodEnd":"2022-07-01", "amount":"2000" }, "relationships":{ "invoice":{ "data":{ "type":"invoice", "id":"42b2a67b-5c50-4d8f-b91e-e4269933b007" } } } }...
Hi I'm working in a little Sinatra app and found that after deserializing with the `Resource` class defined I here, I can't seem to get to the attributes because the...
Currently, jsonapi-deserializable only adds ``[relationship]_id`` and ``[relationship]_type`` to the final deserialized object. This PR enables attaching the nested document from the included section to the relationship. Additionally, this PR adds...
Hi I tried deserializing a compound json api document with the gem and found out this isn't supported as of now. For example, if the payload looks like this ```...
This PR moves CI to GitHub Actions. It also removes the now officially sunset [codecov gem](https://github.com/codecov/codecov-ruby).
No Docs?
I've been checking back periodically to see if [the docs ](http://jsonapi-rb.org/guides/deserialization/defining.html)have been written for deserialization, but sadly they haven't. Any chance even a basic usage of this could be sketched...
Hi I am trying to use DeserializableResourceType.call() but receiving a {} return value. I am not sure what the format for the blocks (type, attributes, relationship and id ) in...
I'm trying to create a new resource with an existing `template` relationship and an `address` relationship that should become a new resource. Example POST request: ``` { "data": { "type":...