Skip to content

[FEATURE] When a BOM is generated with zero Components, components is still present in the generated BOM #147

Closed

Description

@madpah

Very minor issue noted here.

If a BOM is has ZERO Components, components is still included in the generated BOM as an empty array.

Not invalid, but not tidy.

Activity

  1. added
    bug
    enhancement
    on Jan 26, 2022
  2. madpah commented on Jan 26, 2022

    @madpah
    CollaboratorAuthor

    Good call @jkowalleck - easiest to leave in then would you say?

  3. removed
    bug
    on Jan 26, 2022
  4. changed the title [-][BUG] When a BOM is generated with zero Components, `components` is still present in the generated BOM[/-] [+][FEATURE] When a BOM is generated with zero Components, `components` is still present in the generated BOM[/+] on Jan 26, 2022
  5. jkowalleck commented on Jan 26, 2022

    @jkowalleck
    Member

    if this feature was implemented,
    i would expect to have unit/integration tests that generate a BOM with empty components list and actually normalize the data to XML
    and then validate the resulting XML with the known schema.
    SO there should be one test for XML spec 1.0, one for ... , and one for 1.4
    SO there should be one test for JSON spec 1.2, one for ... , and one for 1.4


    @madpah dont know. This fix/feature does not actually change the resulting data. it is just a different representation.
    its a task for rainy weekends, i guess. and a fun one, too.

    what is the current situation?
    is the generated XML lacking the required element, if components were empty?
    or does the resulting XML have the component, but you want to get rid of it in spec >= 1.2 ?

  6. added a commit that references this issue on Feb 16, 2022
  7. linked a pull request that will close this issuefeat: completed work on #155 #172on Feb 16, 2022
  8. added a commit that references this issue on Feb 16, 2022
  9. added this to the 2.0.0 milestone on Feb 21, 2022
  10. self-assigned this
    on Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementrainy day

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions