Skip to content

Dynamic Validation with Symfony

Avatar of Marion Hurteau Marion Hurteau

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
Room:
The SensioLabs room

Friday, December 9, 2022 at 15:15 PM – 15:50 PM

Introductory talk, no prior knowledge needed.