Hi, the README states
inflectKeys: camelize the field names per record. Default: true.
However, we've found that if the recordType attribute is already camelCase (e.g. phoneNumber ), it's transformed to phone-number via e.g. https://github.com/fortunejs/fortune-json-api/blob/2.1.2/lib/helpers.js#L213 ) so have set inflectKeys:false to preserve them , which makes the README seem misleading.
What's the intended behaviour for camelCase'd attributes?
Hi, the README states
However, we've found that if the recordType attribute is already camelCase (e.g. phoneNumber ), it's transformed to phone-number via e.g. https://github.com/fortunejs/fortune-json-api/blob/2.1.2/lib/helpers.js#L213 ) so have set
inflectKeys:falseto preserve them , which makes the README seem misleading.What's the intended behaviour for camelCase'd attributes?