Dynamic Validation with Symfony
It might happen on some of your API's endpoints, that the object your app is waiting for depends on the data sent. Say, the user sends `{type:foobar, data: XXX}`, then the `XXX` formats will depend on the type `foobar`.
So how can one validate this data if we don't even know its type ?
Well come on in, I'll show you how ! You can actually validate dynamic data by using the most of the features available in Symfony.
Delivered in English
Check out the rest of talks of SymfonyWorld Online 2022 Winter Edition conference.