Skip to content

Conversation

@edeandrea
Copy link
Contributor

  • Implemented ValidationException and supporting classes to handle 422 validation errors returned by the server.
  • Updated all API methods to throw ValidationException when applicable.
  • Added support for detailed validation error responses, including error context and locations.
  • Enhanced test coverage for validation cases in client and hierarchical/hybrid chunking workflows.
  • Updated documentation and release notes to reflect validation error handling changes.

Fixes #240

- Implemented `ValidationException` and supporting classes to handle `422` validation errors returned by the server.
- Updated all API methods to throw `ValidationException` when applicable.
- Added support for detailed validation error responses, including error context and locations.
- Enhanced test coverage for validation cases in client and hierarchical/hybrid chunking workflows.
- Updated documentation and release notes to reflect validation error handling changes.

Fixes docling-project#240

Signed-off-by: Eric Deandrea <eric.deandrea@ibm.com>
@edeandrea edeandrea enabled auto-merge (squash) December 17, 2025 14:40
@edeandrea edeandrea merged commit 3752b2d into docling-project:main Dec 17, 2025
20 checks passed
@edeandrea edeandrea deleted the validation-error branch December 17, 2025 14:50
@github-actions
Copy link

:java_duke: JaCoCo coverage report

Overall Project 44.82% 🔴

There is no coverage information present for the Files changed

@github-actions
Copy link

TestsPassed ✅SkippedFailed
Gradle Test Results (all modules & JDKs)876 ran876 passed0 skipped0 failed
TestResult
No test annotations available

@github-actions
Copy link

HTML test reports are available as workflow artifacts (zipped HTML).

• Download: Artifacts for this run

@docling-java-ops docling-java-ops bot added the released Issue has been released label Dec 17, 2025
@docling-java-ops
Copy link
Contributor

🎉 This issue has been resolved in v0.4.1 (Release Notes)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Issue has been released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Better error handling on 4xx/5xx responses

1 participant