Skip to content

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

Draft
saquibsaifee wants to merge 1 commit intoCycloneDX:mainfrom
saquibsaifee:implement-fix-for-validation-error-messages
Draft

feat(validation): improve user-facing schema validation errors#940
saquibsaifee wants to merge 1 commit intoCycloneDX:mainfrom
saquibsaifee:implement-fix-for-validation-error-messages

Conversation

@saquibsaifee
Copy link
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

Documentation build overview

📚 CycloneDX Python Library | 🛠️ Build #31603563 | 📁 Comparing 8a6efce against latest (bf596c0)


🔍 Preview build

Show files changed (3 files in total): 📝 3 modified | ➕ 0 added | ➖ 0 deleted
File Status
genindex.html 📝 modified
autoapi/cyclonedx/validation/index.html 📝 modified
autoapi/cyclonedx/validation/json/index.html 📝 modified

@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
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