A validation annotation declaratively applies input constraints to generated Spring Boot controllers and model objects, allowing the framework to validate requests without handwritten validation logic. section 6.2.1
Rejecting an invalid product ID
A request for /v1/catalog/products/not-a-uuid is rejected with HTTP 400 and an error body containing code validation.client_error, title Bad Request, and a validation detail. A valid UUID returns the product response.
