SeyZ / jsonapi-serializer

A Node.js framework agnostic library for (de)serializing your data to JSON API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Turn "keyForAttribute" option defaults to "camelCase"

rubenspgcavalcante opened this issue · comments

As we can check on the json-api, they recommend to use camelCase as default property naming, which makes sense as for a JavaScript Object Notation, {kebab-case: 'invalid'} is not valid object declaration in JS.
With oficial recommendation in mind, the serializer should use "camelCase" as default value for keyForAttribute option.