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

API: Better Handling of Form Validation Errors #30

Open
1 task
Arthi-chaud opened this issue Mar 22, 2024 · 0 comments
Open
1 task

API: Better Handling of Form Validation Errors #30

Arthi-chaud opened this issue Mar 22, 2024 · 0 comments
Assignees
Labels
api About the API compliance Compliance to standards
Milestone

Comments

@Arthi-chaud
Copy link
Owner

When a bad form is submitted (missing field, bad value, constraint fail, etc.), a typical error message should be returned. It should contain an error message related to the validation failure. Currently, it only says that the form is bad, without any further information.

A discussion about the topic: rwf2/Rocket#2110
A library to investigate: https://docs.rs/rocket-validation/latest/rocket_validation/

  • When a solution is found, it should be tested.
@Arthi-chaud Arthi-chaud added the api About the API label Mar 22, 2024
@Arthi-chaud Arthi-chaud self-assigned this Mar 22, 2024
@Arthi-chaud Arthi-chaud added the compliance Compliance to standards label Mar 22, 2024
@Arthi-chaud Arthi-chaud added this to the v0.2 milestone Mar 26, 2024
@Arthi-chaud Arthi-chaud modified the milestones: v0.2, Backlog May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api About the API compliance Compliance to standards
Projects
None yet
Development

No branches or pull requests

1 participant