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

Invalid validation error on missing required parameter #335

Open
nsklikas opened this issue Jun 24, 2024 · 1 comment
Open

Invalid validation error on missing required parameter #335

nsklikas opened this issue Jun 24, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@nsklikas
Copy link
Contributor

When I make a request with a missing required parameter, eg:

curl -X POST localhost:8001/api/v0/groups -d '{}'

The response can be a little hard to comprehend:

{"data":{"name":["value '' fails validation of type `required`"]},"message":"validation errors","status":400,"_meta":null}

I believe that the error message can be improved, by omitting the value '' part

@nsklikas nsklikas added the enhancement New feature or request label Jun 24, 2024
Copy link

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/IAM-931.

This message was autogenerated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant