$ curl -s -X POST localhost:8080/booking-record \ -H 'Content-Type: application/json' \ -d '{"startDate":"2026-05-10","endDate":"2026-05-01"}' HTTP status: 400 Body: # Class-level @DateRangeValid, placed on the record's type declaration exactly as it would # be on a class, is honoured the same way. The validator reads booking.startDate() / # booking.endDate() (accessor methods) instead of getStartDate()/getEndDate().