Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure referenced parameters are also validated #84

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

phasmax
Copy link

@phasmax phasmax commented Jul 3, 2017

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.

Copy link

@antl3x antl3x left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shipit

@alexb-uk
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants