Open
Description
Hey all,
Thanks for your great work on this. I'm interested in documenting a JSON-API implementation using the jsoinapi-resources
gem, and I'm wondering about the fact that attributes and relationships include a lot of repeated boilerplate, e.g. if I wanted to document some attributes on a user object:
with_options scope: [:data, :attributes] do
parameter :email
end
I end up with a lot of repetition in my parameters, e.g. ["data", "attributes"][email]
, ["data", "attributes"][first_name]
, ["data", "attributes"][last_name]
, etc. rather than just listing e.g. ("email", "first_name", "last_name") and having it be understood that they were all stored in data[attributes] following the JSON-API schema. Is there a way to simplify the presentation?
Thanks,
Metadata
Metadata
Assignees
Labels
No labels