field error
A validation failure tied to one input field, reported with the field name and a message such as "must not be blank".
In more detail
Each entry pairs a field name with one or more messages, so a client can show each message next to the right input. Return all field errors together rather than stopping at the first.
Example
ASP.NET Core: the errors object in a validation Problem Details responseRelated terms
- model validation — Checking that incoming data meets the rules, such as required fields and ranges, before the application acts on it.
- Problem Details — A standard JSON shape for HTTP error responses, defined in RFC 9457, with members such as type, title, status, detail and instance.
- Jakarta Validation — The Jakarta standard for declaring input rules as annotations on fields, such as @NotBlank and @Positive, and checking them automatically.
- error envelope — A fixed wrapper shape for every error response, so clients can read any error the same way.
Taught in
- Model Validation and FluentValidation — Modern .NET Core, C# & Enterprise Microservices
- Validation — Modern Java: Virtual Threads & High-Throughput Services
- Exception Handling To Problem Details — Modern Java: Virtual Threads & High-Throughput Services