Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: props with optional getters should be validated #281

Open
timyates opened this issue Jan 9, 2024 · 0 comments · Fixed by #165
Open

bug: props with optional getters should be validated #281

timyates opened this issue Jan 9, 2024 · 0 comments · Fixed by #165
Labels
type: bug Something isn't working

Comments

@timyates
Copy link
Contributor

timyates commented Jan 9, 2024

Previously in 3.x a class with optional getters was still validated.

This reproducer tests this case, and shows that it currently fails to validate.

If you remove the getter from the POGO, then the test passes.

This was discovered in building the hibernate-reactive guide where we have the following validated DTO:

https://github.com/micronaut-projects/micronaut-guides/blob/ab0bfb2c117de73b24aabbb9422ec58dadaebb8d/guides/micronaut-hibernate-reactive/java/src/main/java/example/micronaut/SortingAndOrderArguments.java

There's a reproducer here: #165

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant