Closed mmucklo closed 8 years ago
Class name is just transformed to an underscore version by default.
It is possible to decide to what it's serialized by using the yml file during the mapping process.
mapping:
class: Acme\Domain\Dummy\Post
alias: messages #user defined plural.
...
This bundle does the hard part but does not try to force you anything allowing its user to be the one under control.
Got it, thanks. It might be nice to have a parameter to pluralize everything in the future, but as long as there's a work around...
@mmucklo yeah I agree this should come as an enhancement
Any way to change the way the class name is serialized - e.g.
versus
The examples on jsonapi.org seem to tend towards plural, although the spec is "agnostic" about it.
http://jsonapi.org/format/