swaggerize-routes icon indicating copy to clipboard operation
swaggerize-routes copied to clipboard

Ensure referenced parameters are also validated

Open phasmax opened this issue 7 years ago • 1 comments

In swaggerize-express, I found that validation is not performed (enums, lengths, required fields) on parameters that are referenced ($ref) in a path (instead of inline). The updated code ensures that referenced params are pulled into the validator array.

phasmax avatar Jul 03 '17 08:07 phasmax

I believe I have just come across this issue as well.

Am I right in saying you are referring to the following section "Common Parameters in Different Paths" ? https://swagger.io/docs/specification/2-0/describing-parameters/

Cheers

alexb-uk avatar Nov 19 '17 17:11 alexb-uk