krakenjs / swaggerize-routes

Swagger document driven route builder.
Other
58 stars 57 forks source link

Ensure referenced parameters are also validated #84

Open phasmax opened 7 years ago

phasmax commented 7 years ago

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.

alexb-uk commented 6 years ago

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