quarkus-spring-data-rest Validation constraint message is empty.
See original GitHub issueDescribe the bug
Extension: quarkus-spring-data-rest
Quarkus Version error: On the current master branch
On Quarkus 1.11.5.Final and 1.12.0.Final when you set up an entity with contains validation annotation as:
@Entity
public class Book {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Length(min = 2, max = 50, message = "length must be between {min} and {max}")
@NotBlank(message = "Name may not be blank")
private String name;
For an invalid input, you got an error message like length must be between 2 and 50
But now the message is empty.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Empty messages with Validation errors in Spring Data REST
I reckon that Spring MVC doesn't know where to show the error message as the constraint violation of the class-level constraint doesn't ...
Read more >Validation with Hibernate Validator - Quarkus
The method uses the Validator instance to check the payload. It returns a set of violations. If this set is empty, it means...
Read more >Spring Validation Message Interpolation | Baeldung
Message interpolation is the process used for creating error messages for Java bean validation constraints. For example, we can see the messages ......
Read more >Chapter 3. Creating custom constraints - Red Hat on GitHub
To create a custom constraint, the following three steps are required: Create a constraint annotation. Implement a validator. Define a default error message...
Read more >Validation with Spring Boot - the Complete Guide - Reflectoring
Very basically, Bean Validation works by defining constraints to the fields ... @NotBlank : to say that a string field must not be...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, this is a duplicate issue. I’ve only added a basic mapping to start with. I’ve discussed this with @Sgitario offline last week and will look into it.
I certainly looks like it, but I’ll let @gytis decide