jsonapi-serializers
jsonapi-serializers copied to clipboard
Pure Ruby readonly serializers for the JSON:API spec.
According to [`jsonapi-rb`](http://jsonapi-rb.org/guides/serialization/defining.html) it is possible to define a `meta` key when serializing a resource's relationship(s) documents. My use case is that, when requesting e.g. `/api/v1/jobs/:job_id` to fetch a serialized...
In the README.md: ``` # By default, the type is the object's class name lowercased, pluralized, and dasherized, # per the spec naming recommendations: http://jsonapi.org/recommendations/#naming ``` However JSONAPI seems to...
I have a `JobSerializer` that has 2 relationships - the hosted file, and outputs. (This is because a job is rendered from a file that the user uploaded - the...
Hey guys - great work with this library! The JSONAPI [spec](https://jsonapi.org/format/#errors) mentions that error object source pointers can point to a specific attribute, *or* the "associated entity", per: ``` source:...
Hi guys, I had a problem when trying to do something like this ```ruby class GroupUserSerializer < ApplicationSerializer attributes = %i[example1 example2] attributes.each { |attr| attribute attr, if: :attr_authorized? }...
Consolidating issues: - https://github.com/fotinakis/jsonapi-serializers/issues/23 Add include id relation only option and smart related link behavior based on that - https://github.com/fotinakis/jsonapi-serializers/issues/29 Lazily-evaluated relationships We need a mechanism to reference `post.author_id` rather...
While jsonapi is allowed as a top level property, it is *not* allowed at the resource document level
Confirm with the jsonschema: http://jsonapi.org/faq/#is-there-a-json-schema-describing-json-api
`jsonapi_serializer_class_name` is a more specific designation than `namespace`, but in the production code the latter wins. However, instead of *just* organizing it so the more specific designation we should just...