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
Milestone

Comments

@yohanakh
Copy link

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

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

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

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
Development

No branches or pull requests

2 participants