Skip to content

docs: Add comprehensive SBOM validation guide#933

Open
saquibsaifee wants to merge 6 commits intoCycloneDX:mainfrom
saquibsaifee:docs/add-validation-guide
Open

docs: Add comprehensive SBOM validation guide#933
saquibsaifee wants to merge 6 commits intoCycloneDX:mainfrom
saquibsaifee:docs/add-validation-guide

Conversation

@saquibsaifee
Copy link
Contributor

@saquibsaifee saquibsaifee commented Jan 29, 2026

Description

Adds validation documentation with practical examples for validating CycloneDX SBOMs, addressing #708.

  • Add new validation.rst documentation covering validation workflows
  • Include practical examples for JSON and XML validation
  • Document error handling patterns with ValidationError inspection
  • Add multi-version support examples (CycloneDX 1.2-1.6)
  • Provide production integration examples (FastAPI)
  • Include best practices for validation in production systems
  • Add validation.rst to documentation index

Resolves or fixes issue: #708

Affirmation

@saquibsaifee saquibsaifee requested a review from a team as a code owner January 29, 2026 23:20
@read-the-docs-community
Copy link

read-the-docs-community bot commented Jan 29, 2026

Documentation build overview

📚 CycloneDX Python Library | 🛠️ Build #31324535 | 📁 Comparing 0295ccc against latest (f311b61)


🔍 Preview build

Show files changed (2 files in total): 📝 2 modified | ➕ 0 added | ➖ 0 deleted
File Status
examples.html 📝 modified
index.html 📝 modified

@saquibsaifee saquibsaifee force-pushed the docs/add-validation-guide branch from f2447ef to 11db9d3 Compare January 29, 2026 23:20
@saquibsaifee
Copy link
Contributor Author

@jkowalleck thoughts?

@jkowalleck
Copy link
Member

docs preview: https://cyclonedx-python-library--933.org.readthedocs.build/en/933/

@jkowalleck
Copy link
Member

the guide is too verbose for me, and mostly lives of example code.
instead of writing texts, better add more examples.

example code shall go here: https://github.com/CycloneDX/cyclonedx-python-lib/tree/main/examples

these examples might be used in the docs as shown here: https://github.com/CycloneDX/cyclonedx-python-lib/blob/main/docs/examples.rst

@saquibsaifee
Copy link
Contributor Author

Following reviewer feedback, the documentation has been streamlined to focus on concepts, while the practical code examples have been moved to a new standalone file.

@saquibsaifee
Copy link
Contributor Author

I don't know if the XML validation pattern works, as I have personally not used the XML validation, so keep me honest there.

saquibsaifee and others added 6 commits February 8, 2026 17:50
- Add new validation.rst documentation covering validation workflows
- Include practical examples for JSON and XML validation
- Document error handling patterns with ValidationError inspection
- Add multi-version support examples (CycloneDX 1.2-1.6)
- Provide production integration examples (FastAPI)
- Include best practices for validation in production systems
- Add validation.rst to documentation index

Addresses CycloneDX#708

Signed-off-by: Saquib Saifee <saquibsaifee@ibm.com>
Signed-off-by: Saquib Saifee <saquibsaifee2@gmail.com>
Co-authored-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Saquib Saifee <saquibsaifee2@gmail.com>
Co-authored-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Saquib Saifee <saquibsaifee2@gmail.com>
Co-authored-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Saquib Saifee <saquibsaifee2@gmail.com>
…etection

Signed-off-by: Saquib Saifee <saquibsaifee2@gmail.com>
Signed-off-by: Saquib Saifee <saquibsaifee2@gmail.com>
@saquibsaifee saquibsaifee force-pushed the docs/add-validation-guide branch from 062b013 to 0295ccc Compare February 8, 2026 22:51
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.

2 participants