colymba / silverstripe-restfulapi

SilverStripe RESTful API with a default JSON serializer.
BSD 3-Clause "New" or "Revised" License
64 stars 34 forks source link

Why convert properties and model names by "lcfirst"? #87

Closed derRobert closed 6 years ago

derRobert commented 6 years ago

Why are the model names and properties case converted by lcfirst? Just to know the reason.

colymba commented 6 years ago

The basic serializer doesn't, but the Ember Data one does indeed. This was the convention expected by Ember Data and its json API, at the time of coding.

Note that the Ember serializer will most likely be dropped in the next major release.