Skip to content

Conversation

@stevespringett
Copy link
Member

Implements and closes #638

@stevespringett stevespringett added this to the 2.0 milestone Jan 13, 2026
@stevespringett stevespringett requested a review from a team as a code owner January 13, 2026 00:39
@stevespringett stevespringett added the CDX 2.0 related to release v2.0 label Jan 13, 2026
@stevespringett stevespringett linked an issue Jan 13, 2026 that may be closed by this pull request
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements conditional subschemas for component properties based on component type, as specified in issue #638. The changes enforce that certain properties (modelCard, data, cryptoProperties) can only be used with specific component types.

Changes:

  • Removed modelCard, data, and cryptoProperties from the main component properties section
  • Added conditional subschemas using allOf with if-then-else logic to enforce type-specific property usage
  • Added a new conditional requirement for hardware components to prevent swid and purl specification

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

CDX 2.0 related to release v2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CycloneDX 2.0 - Constrain Properties to Applicable Types

2 participants