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

Expand on form pattern documentation validation, error handling #11611

Merged
merged 2 commits into from
Dec 9, 2024

Conversation

aduth
Copy link
Member

@aduth aduth commented Dec 9, 2024

🛠 Summary of changes

Expands on existing backend form object documentation to include more details on how to validate forms and handle errors.

Specific goals:

  • Use human-readable error messages
  • Tie errors to specific forms
  • Use FormResponse#first_error_message as single message for flash
  • Bind form object with SimpleForm

📜 Testing Plan

Verify that the proposed documentation makes sense.

changelog: Internal, Documentation, Expand on form pattern documentation validation, error handling
docs/backend.md Outdated Show resolved Hide resolved
Co-authored-by: Mitchell Henke <[email protected]>
Copy link
Member

@vrajmohan vrajmohan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good other than typo noted by another reviewer.

@aduth aduth merged commit e0eacf1 into main Dec 9, 2024
2 checks passed
@aduth aduth deleted the aduth-form-validation-errors branch December 9, 2024 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants