Skip to content

Expand on form pattern documentation validation, error handling#11611

Merged
aduth merged 2 commits intomainfrom
aduth-form-validation-errors
Dec 9, 2024
Merged

Expand on form pattern documentation validation, error handling#11611
aduth merged 2 commits intomainfrom
aduth-form-validation-errors

Conversation

@aduth
Copy link
Copy Markdown
Contributor

@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
Co-authored-by: Mitchell Henke <mitchell.henke@gsa.gov>
Copy link
Copy Markdown
Contributor

@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
@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