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
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
NoPropertiesProvidedExceptionwarnings.or remove them entirely.
Known Exceptions:
Licenses: eitheridornamemust be givensee also
NoPropertiesProvidedExceptionwhen deserializing emptyOrganizationalContact#771NoPropertiesProvidedExceptionwhen deserializing emptyOrganizationalEntity#764