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

fix(binder): convert property paths in arrays to dot notation #3157

Conversation

cromoteca
Copy link
Contributor

As the square bracket array syntax comes directly from Java valdiation, I preferred not to touch at the generated exception messages.

Instead, the binder now converts the notation on the fly when parsing the error message, so that it will work in the form.

Fixes #3099

Copy link

codecov bot commented Jan 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.65%. Comparing base (c9c0fe1) to head (0650522).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3157   +/-   ##
=======================================
  Coverage   92.65%   92.65%           
=======================================
  Files          85       85           
  Lines        3187     3187           
  Branches      778      778           
=======================================
  Hits         2953     2953           
  Misses        182      182           
  Partials       52       52           
Flag Coverage Δ
unittests 92.65% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cromoteca cromoteca requested a review from platosha January 14, 2025 13:30
@platosha platosha enabled auto-merge (squash) January 17, 2025 10:04
Copy link

@platosha platosha merged commit b819058 into main Jan 17, 2025
13 checks passed
@platosha platosha deleted the fix/3099/Server-side-validators-not-working-correctly-with-array-form-binding branch January 17, 2025 10:18
vaadin-bot pushed a commit that referenced this pull request Jan 17, 2025
Convert to dot notation on the fly

Co-authored-by: Anton Platonov <[email protected]>
cromoteca added a commit that referenced this pull request Jan 20, 2025
… (CP: 24.6) (#3163)

fix(binder): convert property paths in arrays to dot notation (#3157)

Convert to dot notation on the fly

Co-authored-by: Luciano Vernaschi <[email protected]>
Co-authored-by: Anton Platonov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Server side validators not working correctly with array form binding
4 participants