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

@Constraint validatedBy functionality breaks for multiple classes #197

Open
j1m-renwick opened this issue Aug 24, 2023 · 0 comments
Open

Comments

@j1m-renwick
Copy link
Contributor

j1m-renwick commented Aug 24, 2023

Expected Behavior

Custom Constraint annotation with multiple validatedBy classes invokes them as appropriate for the input types given in the request

Actual Behaviour

Custom Constraint annotation with multiple validatedBy classes all seem to all be invoked for a given input, regardless of the input type

Steps To Reproduce

  1. run validation-bug-2.zip
  2. call POST http://localhost:8080/validate with the json request body:
{
    "stringField": "hi",
    "listField": ["something", "here"]
}
  1. observe the logging and error messages
  2. revert project to Mironaut 3.9.0 (uncomment everything tagged with 'MN3', and comment out everything tagged with 'MN4')
  3. run and call the same API - observe that it works as expected

Environment Information

Operating System: MacOS Ventura, Version 13.4
JDK Version: Coretto 17

Example Application

see above

Version

4.0.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant