FOSRestBundle icon indicating copy to clipboard operation
FOSRestBundle copied to clipboard

ParamFetcher validation does not set property path of ConstraintViolation

Open B-Galati opened this issue 4 years ago • 0 comments

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 :-)

B-Galati avatar Jul 09 '21 11:07 B-Galati