Skip to content

Consistent casing of response keys

Compare
Choose a tag to compare
@ziimk ziimk released this 02 Aug 08:16
· 226 commits to master since this release
b5fe565

Every response now goes through CamelCaseHelper::keysToCamelCase() function because relying on only the model mapper caused inconsistencies (if the model contained a property that is defined just as an object, not a specific model then the keys of this object were not camel-cased).

Also, if json_encode() is run over the response then everything is now consistently snake_cased (as in the raw response)