You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's just a convention for most JSON format APIs, and JSONAPI doesn't enforce it but recommends.
Back to the bundle itself, thing is you may rename attributes and the class name using dashes and nothing will happen, as they will be preserved by the serializer, so you'll get the desired result. I understand your concern is it doesn't come in by default, right?
It agree ut would be nice to allow the bundle user decide. I'll just allow to pass down a variable. I'll mark this as an enhancement.
I notice the attribute keys get passed through this function:
However the spec seems to recommend dashes:
http://jsonapi.org/recommendations/#naming
Any thoughts? Can you support both?
The text was updated successfully, but these errors were encountered: