refactor: rename errors to validations (#2105)

* Update validation error unpacking

* Rename validations on backend

* Format
This commit is contained in:
Presley Pizzo
2022-06-07 09:31:15 -04:00
committed by GitHub
parent 3616c629c7
commit 6d966963da
6 changed files with 17 additions and 10 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ type Response struct {
// Validations are form field-specific friendly error messages. They will be
// shown on a form field in the UI. These can also be used to add additional
// context if there is a set of errors in the primary 'Message'.
Validations []Error `json:"errors,omitempty"`
Validations []Error `json:"validations,omitempty"`
}
// Error represents a scoped error to a user input.