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

BUG: Required fields are not checked in Playground #70

Closed
yohanakh opened this issue Jan 13, 2015 · 3 comments
Closed

BUG: Required fields are not checked in Playground #70

yohanakh opened this issue Jan 13, 2015 · 3 comments
Assignees
Labels
Milestone

Comments

@yohanakh
Copy link

@yohanakh yohanakh commented Jan 13, 2015

The Playground allows the user to submit the form even if there are required empty fields that should not be empty.

@fabiomaffioletti
Copy link
Owner

@fabiomaffioletti fabiomaffioletti commented Jan 14, 2015

This is not a bug. This is to let api users get error responses and eventually tune their clients to properly handle them.

@yohanakh
Copy link
Author

@yohanakh yohanakh commented Jan 16, 2015

I think it is a bug because in my case i have two APIs like:
/{type}/ - that gets all entries of type {type}
/{type}/{id} - that gets the entry with the provided {id}

If the playground allows providing empty value for the {id} then the first API will be called - > problem!

@fabiomaffioletti
Copy link
Owner

@fabiomaffioletti fabiomaffioletti commented Jan 17, 2015

Ok I got it. For path parameters it makes sense to do a check before submitting.Thank you.

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.