FriendsOfSymfony / FOSRestBundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony
http://symfony.com/doc/master/bundles/FOSRestBundle/index.html
MIT License
2.79k stars 707 forks source link

ParamFetcher validation does not set property path of ConstraintViolation #2314

Open B-Galati opened 3 years ago

B-Galati commented 3 years ago

Hello,

I noticed that the ParamFetcher does not set the property path of ConstraintViolation as per this line: https://github.com/FriendsOfSymfony/FOSRestBundle/blob/b91a48419201455490c3358ea8bdcd8c5c310f27/Request/ParamFetcher.php#L123

Is that done on purpose or we could add the name of fetched param?

To give more context, my use case is the following: upload of multipart/form-data with two properties, the 1st is a file, the second is a JSON payload.

Let me know for anything :-)