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

Is there a way to restrict one parameter by using another one? #499

Closed
kenmick opened this issue Oct 30, 2015 · 2 comments
Closed

Is there a way to restrict one parameter by using another one? #499

kenmick opened this issue Oct 30, 2015 · 2 comments

Comments

@kenmick
Copy link

kenmick commented Oct 30, 2015

In this case, GET http://api.example.com/message/search has two parameters in query, one is begin(long), another one is end(long). Obviously begin should less than end. Is the a way to add restriction in Swagger definition to make sure begin is less than end? something like required: true?

Thanks in advance.

@wing328
Copy link

wing328 commented Nov 3, 2015

Based on my understanding, it's not possible at the moment.

@webron
Copy link
Member

webron commented Nov 3, 2015

It's not possible. Please follow #256.

@webron webron closed this as completed Nov 3, 2015
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

No branches or pull requests

3 participants