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

Custom validation have incomplete proprety path #205

Open
loicmathieu opened this issue Sep 4, 2023 · 0 comments
Open

Custom validation have incomplete proprety path #205

loicmathieu opened this issue Sep 4, 2023 · 0 comments

Comments

@loicmathieu
Copy link

Expected Behavior

Custom validation should have a path like standard validation.

Actual Behaviour

Custom validation have incomplete proprety path.

I have an object Flow with a list of Tasks.

If I have an invalid Log task with an empty message property annotated with @NonEmpty, it gives me the following property path: tasks[0].message.

But if I have an invalid Dag task validated by a custom validator (with @Dag) then it gives me the following property path: tasks which is incorrect as I should have tasks[0].tasks as it's the property tasks of the Dag object that is invalid, and the Dag is the first item of the list tasks of the Flow object.
validation-superbuilder-issue.zip

A reproducer project with a test with both examples is provided here:

Steps To Reproduce

No response

Environment Information

No response

Example Application

No response

Version

4.0.5

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