
This problem covers binding a JSON request body to a typed record in a minimal API, so a body that cannot be read is answered with 400 before the handler runs.
Read the full problemThis problem covers adding validation attributes to a model and answering an invalid one with validation problem details that name every failing field.
Read the full problemThis problem covers binding a required value from a request header and an optional value with a default from the query string straight into an action's parameters.
Read the full problemThis problem covers binding a route id, a validated JSON body, a required header and an optional query value in one endpoint, and answering bad input with validation problem details naming each failing field.
Read the full problem