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

status parameter in /pet/findByStatus doesn't have default #106

Open
s-h-a-d-o-w opened this issue Sep 6, 2023 · 1 comment
Open

status parameter in /pet/findByStatus doesn't have default #106

s-h-a-d-o-w opened this issue Sep 6, 2023 · 1 comment

Comments

@s-h-a-d-o-w
Copy link

Currently, it says: default: available

But in fact, no default value is used. The parameter has to be supplied: Request failed with status code 400: No status provided. Try again?

@s-h-a-d-o-w s-h-a-d-o-w changed the title Minor mistake in /pet/findByStatus parameters status parameter in /pet/findByStatus doesn't have default Sep 6, 2023
@IvanovIlya116
Copy link

IvanovIlya116 commented Apr 10, 2024

Снимок экрана 2024-04-10 в 20 51 17 Снимок экрана 2024-04-10 в 21 01 03 Your remark is not entirely justified, since the "available" status is needed to generate a trial request in swagger. For example, I replaced the default status with "sold". If there is no transmitted status in the request body, then the response with the code 400 is considered correct. it makes no sense to edit something in the code.

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