Skip to content

Conversation

mikemilano
Copy link
Contributor

The serialization groups section mentions "You can also use the YAML configuration format", but only shows the API Platform portion of the YAML format.

For developers choosing to define everything in YAML, they also need the /config/serialization/Book.yaml file to be defined.

In other discussions I've read on the subject, it's mentioned that the serialization component is already documented elsewhere. I think it's important to deliver the config on a silver platter so there is nothing left for interpretation which may take the developer down a rabbit hole.

@dunglas dunglas merged commit 038e505 into api-platform:2.3 Aug 6, 2018
@dunglas
Copy link
Member

dunglas commented Aug 6, 2018

Thanks! It will help a lot of newcomers.

@Brewal
Copy link

Brewal commented Nov 21, 2019

I didn't manage to get the yaml configuration working by naming the directory serialization but by naming it serializer as said in the Symfony doc :

https://symfony.com/doc/current/serializer.html#using-serialization-groups-annotations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants