-
-
Notifications
You must be signed in to change notification settings - Fork 911
Changing the Serialization Context Dynamically #1660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The example that I talk about is https://api-platform.com/docs/core/serialization/#changing-the-serialization-context-dynamically :) |
Nobody has the same problem ? :-/ |
@Yoann-TYT Please provide more information about your issue (like the code and configuration you used). Because this feature looks ok to me. But it may be related to #1616 (comment) |
As @Nek- said, could you please provide a reproducer? So we could directly test the behaviour. |
Thanks for your responses :)
And this code doesn't work for POST method :-/ |
Did you find an answer? As this issue is quite old I'm going to close it but feel free to ping me or to seek for an answer on the api-platform slack (symfony-devs.slack.com)! |
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I use the last version v2.1.5, and when I follow the example, it works for GET / PUT but not for POST calls.
When I
POST
and whennormalization == false
, the subject class isAppBundle\Serializer\BookContextBuilder
, so it doesn't pass my condition :-/Everyone get the same problem ?
The text was updated successfully, but these errors were encountered: