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

Validation #13

Open
Nik1291 opened this issue Oct 20, 2022 · 1 comment
Open

Validation #13

Nik1291 opened this issue Oct 20, 2022 · 1 comment

Comments

@Nik1291
Copy link

Nik1291 commented Oct 20, 2022

List of books
GET /books
Returns a list of books.
Optional query parameters:
type: fiction or non-fiction
limit: a number between 1 and 20.

If the number is above 20 it is showing an error for 400. But if we put the value below the number 1 ex. 0 or 0.5etc. No error is being shown. In this scenarios the error should be shown for the value below the number 1 right?
Can you help me for this, whether the error should be shown or not, if the value is below the number 1.

@Dhamu785
Copy link

Dhamu785 commented Jul 6, 2023

List of books GET /books Returns a list of books. Optional query parameters: type: fiction or non-fiction limit: a number between 1 and 20.

If the number is above 20 it is showing an error for 400. But if we put the value below the number 1 ex. 0 or 0.5etc. No error is being shown. In this scenarios the error should be shown for the value below the number 1 right? Can you help me for this, whether the error should be shown or not, if the value is below the number 1.

I hope this API is only for practicing some logic of HTTP/HTTPS requests we can except cent percent performance of this API. I think API creator does not handled this type of exceptions.

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

2 participants