MartinVolerich
AshJsonApi - includes & default_fields
Having received great answers to my questions about json_api endpoints, I have just come across a situation where I am requesting “included” resources using the Swagger / OpenAPI UI, which will respond with the public attributes or any “default_fields” set in the related resource’s json_api block.
But… when I also add a “default_fields” line to the parent resource (in the domain’s json_api base_routes, I find that I’m correctly receiving those default_fields, but… it has the unexpected/unwanted side effect of no longer returning the public fields (or default_fields) of the related included resource.
Is this a bug? Or is there something else I can or should configure to get this to work?
Thanks
Martin
First Post!
zachdaniel
This sounds like a bug. Please work up a reproduction or failing test and submit an issue ![]()








