Skip to content

[Defect]: 2.0 linked elements - docs and type mismatch #1202

Open

Description

@jkowalleck

for some linked types, the description and type don't match.

the description reads:

References using bom-link or refId [...]

but the type is cyclonedx-common-2.0.schema.json#/$defs/refLinkType

either the description is wrong, or the type should be cyclonedx-common-2.0.schema.json#/$defs/elementLink.

example / findings

  • "assets": {
    "type": "array",
    "title": "Assets",
    "uniqueItems": true,
    "items": {
    "$ref": "cyclonedx-common-2.0.schema.json#/$defs/refLinkType"
    },
    "description": "References using bom-link or `refId` to the blueprint assets that are involved in or exercised by this use case."
    },
  • "appliesTo": {
    "type": "array",
    "title": "Applies To",
    "uniqueItems": true,
    "minItems": 1,
    "items": {
    "$ref": "cyclonedx-common-2.0.schema.json#/$defs/refLinkType"
    },
    "description": "References using bom-link or `refId` to the elements the control protects, such as components, services, zones, or boundaries. A control without this property applies to the organization or system as a whole."
    },
  • to be continues

context

  • a refLinkType is not a bom-link, but a value of a refId.
  • a bomLinkElementType is a bom-link to an element
  • a bomLinkDocumentType is a bom-link to an entire document
  • and a bomLink is a bomLinkDocumentType or bomLinkElementType
  • and a elementLink is a refLinkType or bomLinkElementType

goal

revisit all the usages of the mentioned things, and check if they match their description text in the respective context.

Activity

  1. added this to the 2.0 milestone on Nov 11, 2026
  2. cvas22 commented on Nov 12, 2026

    @cvas22

    I went through all of 2.0-dev: 98 properties across 13 modules say "bom-link or refId" but are typed refLinkType, almost all in blueprint, threat, risk, control, declaration, data and usecase. It also goes the other way in a few places, e.g. annotation subjects, component identity evidence tools and formulation resourceReferenceChoice are elementLink but described as refId only. Since 98 is a lot, which way do you want it? Switching them to elementLink allows cross-BOM references everywhere, fixing the wording keeps them document-local. I can send a PR for either once you pick.

  3. added
    CDX 2.0
    on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CDX 2.0defect

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions