Skip to content

feat: no longer throw unexpected NoPropertiesProvidedException #776

Open
2 of 2 issues completed
Open
@jkowalleck

Description

some classes have only optional arguments/properties.

for some reason, they throw NoPropertiesProvidedException('At least one of ... must be provided for ...').
this is (at least with CDX 1.6) not true for most data models. Per spec, most models really dont require any properties.

This is especially annoying when you wanted to start with an empty object and add properties later. You simply cant, starting with an empty one will just throw an Error and that is it.

goal

allow creation of empty objects/model where the spec allows it.

implementation

make all these NoPropertiesProvidedException warnings.
or remove them entirely.

Known Exceptions:

  • Licenses: either id or name must be given

see also

Sub-issues

Activity

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

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions