mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
refactor: rename errors to validations (#2105)
* Update validation error unpacking * Rename validations on backend * Format
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user