Skip to content

[BREAKING] All optional lists become non-optional sets #159

Closed

Description

@madpah

@madpah a huge change i would suggest is: all optional lists become non-optional sets.
based on https://github.com/CycloneDX/cyclonedx-python-lib/pull/148/files#r798309225

this way a lot of problems would be solved:

  • no need for implementing object.add_<list-property>() all the time
  • the order of the list-properties would no longer matter - no sorting, no whatsoever
  • serializers/normalizers would always have a reliable non-optional data type to work with (remeber: an empty set is falsy - for easy size-checks)
  • additionally: use the set-literal: instead of writing set([...]) simply write {...} - if this was needed at any place, still

Originally posted by @jkowalleck in #148 (comment)

Activity

  1. self-assigned this
    on Feb 3, 2022
  2. added this to the 2.0.0 milestone on Feb 3, 2022
  3. linked a pull request that will close this issueRELEASE 2.0.0 #148on Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions