OiO.lk Blog PHP Symfony Validation standalone data mapping issues
PHP

Symfony Validation standalone data mapping issues


I am trying to use symfony/validator to validate the body of an API request but I have a hard time figuring out how I’m supposed to do that. If I use an external data mapper to map the data to an object I have to deal with 2 different validators, one that only uses the types given to properties and after that symfony/validator using attributes.

Is there any built in mapper I’m missing for this? Ideally I could map the data to an object and validate at the same time.



You need to sign in to view this answers

Exit mobile version