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

Display form field errors from API server #5

Merged
merged 3 commits into from
Dec 5, 2020
Merged

Conversation

thekaveman
Copy link
Member

The API supports HTTP 400 responses with two types of field errors:

  • missing
  • invalid

The former should never happen since our form requires all fields. The latter is defined and validated by the Verification Server, so this gives the Server a way to acknowledge an invalid field without divulging specifics.

Messages for each class of error are hard-coded in the form for now.

adding/removing error messages can cause what looks like a
jump in the content

the extra margin normalizes the height between form fields
to account for the space needed for a field error message
@thekaveman thekaveman merged commit 6022ef7 into master Dec 5, 2020
@thekaveman thekaveman deleted the form-errors branch December 5, 2020 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant