Skip to content

Improve validation error messages and readme, and add build workflow. - #7

Merged
sboeckelmann merged 7 commits into
mainfrom
feature/2-user-friendly-validation-messages
Aug 11, 2026
Merged

sboeckelmann merged 7 commits into
mainfrom
feature/2-user-friendly-validation-messages

Conversation

@Aravinda93

Copy link
Copy Markdown

@sboeckelmann

This PR contains following enhancement/bug fixes:

  • Updated the README
  • Make validation error messages in plain English for normal users
  • Improve the format for error messages
  • Errors now point at the field that actually broke the rule, for XML and JSON
  • Added value suggestions when a field holds a wrong value
  • JSON validation now streams event by event with ObjectNodePublisher instead of loading the whole document
  • Removed Lombok and moved CI to JDK 25

Please review the changes and approve the PR.

JsonDocumentTest and XmlDocumentTest passed the result of
Commons.getInputStream straight into the validator. When a fixture is
absent that value is null, and the failure only appeared much later as
"Stream closed" from Jackson or an NPE inside EventModifier, neither of
which says which file is missing.
@sboeckelmann
sboeckelmann merged commit af47e86 into main Aug 11, 2026
2 checks passed
@sboeckelmann
sboeckelmann deleted the feature/2-user-friendly-validation-messages branch August 11, 2026 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

2 participants