Add validation module: Bean Validation on Spring Boot 4.2.0 with Hibernate Validator 9.1.6, built-in and custom constraints, groups, method validation, ProblemDetail errors, message i18n, JPA integration and tests, with real transcripts
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b4RzcCS5JCAgcxLz7T
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
== POST /products {"id":7,"name":"Pen","price":10}
|
||||
HTTP 400 application/problem+json
|
||||
{"detail":"Invalid request content.","status":400,"title":"Bad Request","errors":[{"field":"id","code":"Null","message":"must be null"}]}
|
||||
|
||||
== PUT /products {"name":"Pen","price":-1}
|
||||
HTTP 400 application/problem+json
|
||||
{"detail":"Invalid request content.","status":400,"title":"Bad Request","errors":[{"field":"id","code":"NotNull","message":"must not be null"},{"field":"price","code":"Positive","message":"must be greater than 0"}]}
|
||||
|
||||
== PUT /products {"id":7,"name":"Pen","price":10}
|
||||
HTTP 200 text/plain;charset=UTF-8
|
||||
updated
|
||||
Reference in New Issue
Block a user