Skip to content

bom-ref help text needs tweaking ❗  #616

Closed

Description

@prabhu

bom-ref is a required attribute, so we need to remove the optional word from the description.

"description": "An optional identifier which can be used to reference the workflow elsewhere in the BOM. Every bom-ref must be unique within the BOM.\nValue SHOULD not start with the BOM-Link intro 'urn:cdx:' to avoid conflicts with BOM-Links.",

"description": "An optional identifier which can be used to reference the workspace elsewhere in the BOM. Every bom-ref must be unique within the BOM.\nValue SHOULD not start with the BOM-Link intro 'urn:cdx:' to avoid conflicts with BOM-Links.",

I think in 1.7 we can think of externalizing the help texts and referring to them with short codes. That way the description will be consistent and could be internationalized. Whether an attribute is required or not could be determined entirely from the required array.

Activity

  1. jkowalleck commented on Mar 28, 2025

    @jkowalleck
    Member

    is removing the word "optional" not enough? is it really required in the help test, @stevespringett ?

  2. added this to the 1.7 milestone on Mar 28, 2025
  3. stevespringett commented on Mar 28, 2025

    @stevespringett
    Member

    Lets just remove the word optional in this case.

  4. prabhu commented on Mar 29, 2025

    @prabhu
    ContributorAuthor

    More instance (found with cdxgenGPT!):

    "description": "An optional identifier which can be used to reference the task elsewhere in the BOM. Every bom-ref must be unique within the BOM.\nValue SHOULD not start with the BOM-Link intro 'urn:cdx:' to avoid conflicts with BOM-Links.",

    "description": "An optional identifier which can be used to reference the trigger elsewhere in the BOM. Every bom-ref must be unique within the BOM.\nValue SHOULD not start with the BOM-Link intro 'urn:cdx:' to avoid conflicts with BOM-Links.",

    I have uploaded the cyclonedx json schema. I am looking for mistakes in the description text where the word "optional" is used while the attribute is part of the required array. Couple of examples: `workflow.bom-ref` attribute has the description beginning with "An optional identifier", while bom-ref is part of the required array 
    
    json
    "required": [
            "bom-ref",
            "uid",
            "taskTypes"
          ]
    
    Similar mistake could also be found for `workspace.bom-ref`. Can you review the attached file and find other attributes with similar issues in description text?
    

    Image

  5. changed the title [-]bom-ref help text needs tweaking[/-] [+]bom-ref help text needs tweaking ❗ [/+] on Jun 6, 2025
  6. jkowalleck commented on Jun 12, 2025

    @jkowalleck
    Member

    #649 is probably a duplicate if this very ticket.

  7. jkowalleck commented on Sep 3, 2025

    @jkowalleck
    Member

    will start working on a fix

  8. jkowalleck commented on Sep 7, 2025

    @jkowalleck
    Member

    done via #680

  9. added a commit that references this issue on Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions