We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In ActiveModelSerializer you can specify a custom root name for an array like so:
render json :@items, root: 'custom item list'
With the following result:
{ "custom item list": [ { "item_id": 1, "item name": "item 1" }, { "item_id": 2, "item_name": "item 2" } ] }
Is there any way do this in panko??
The text was updated successfully, but these errors were encountered:
Hi @sarah-mica ,
Specifying root name is not supported in Panko as of today.
I'll try to give it a check next weekend.
Sorry, something went wrong.
yosiat
No branches or pull requests
In ActiveModelSerializer you can specify a custom root name for an array like so:
With the following result:
Is there any way do this in panko??
The text was updated successfully, but these errors were encountered: