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

Provide feedback for improvement #580

Open
hf3344 opened this issue Nov 11, 2023 · 0 comments
Open

Provide feedback for improvement #580

hf3344 opened this issue Nov 11, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@hf3344
Copy link

hf3344 commented Nov 11, 2023

In the parse_args function in reqparse.py, there is a code snippet that concatenates a hardcoded value:

if errors:
    abort(
        HTTPStatus.BAD_REQUEST, "Input payload validation failed", errors=errors
    )

This concatenation occurs when input payload validation fails due to missing required parameters. However, the resulting error message does not reflect the desired help message. The untranslated Chinese error message is as follows:

{
    "errors": {
        "hello": "Missing required parameter in the JSON body or the post body or the query string"
    },
    "message": "Input payload validation failed"
}

I understand that this is causing confusion and inconvenience for you. To address this, you can modify the code to provide a more meaningful error message.

@hf3344 hf3344 added the bug Something isn't working label Nov 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant