Skip to content

feat(validation): improve user-facing schema validation errors#940

Draft
saquibsaifee wants to merge 2 commits into
CycloneDX:mainfrom
saquibsaifee:implement-fix-for-validation-error-messages
Draft

feat(validation): improve user-facing schema validation errors#940
saquibsaifee wants to merge 2 commits into
CycloneDX:mainfrom
saquibsaifee:implement-fix-for-validation-error-messages

Conversation

@saquibsaifee
Copy link
Copy Markdown
Contributor

@saquibsaifee saquibsaifee commented Feb 28, 2026

Description

  • Provide a stable, safe presentation of validation failures so callers (UIs/tools) can display actionable messages instead of raw backend error objects.
  • Make nested JSON schema failures more useful by preferring the most relevant jsonschema context error when available.
  • Normalize XML validation log entries into the same message/path shape used for JSON.

Fixes issue: #827

AI Tool Disclosure

  • My contribution does not include any AI-generated content
  • My contribution includes AI-generated content, as disclosed below:
    • AI Tools: GTP Codex
    • LLMs and versions: GPT-5.3-Codex
    • Prompts: [Summarize the key prompts or instructions given to the AI tools]

Affirmation

@read-the-docs-community
Copy link
Copy Markdown

read-the-docs-community Bot commented Feb 28, 2026

Documentation build overview

📚 CycloneDX Python Library | 🛠️ Build #32727992 | 📁 Comparing 7b5f220 against latest (0daf3f9)

  🔍 Preview build  

2 files changed
± genindex.html
± autoapi/cyclonedx/validation/index.html

@saquibsaifee saquibsaifee changed the base branch from main to feat/validator_error_useful February 28, 2026 20:55
@saquibsaifee saquibsaifee changed the base branch from feat/validator_error_useful to main February 28, 2026 20:56
@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

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

Successfully merging this pull request may close these issues.

1 participant