open-component-model / ocm

Open Component Model (Software Bill of Delivery Toolset)
https://ocm.software
Apache License 2.0
31 stars 19 forks source link

early CD validation for AddVersion #779

Closed mandelsoft closed 2 months ago

mandelsoft commented 2 months ago

Description

When adding a CV to a component, the CD validation is done deep in the call chain when updating the CV on the persistence layer. This typically happens during closing a CV which provides strange error messages.

To provider a better error message the validation is now done directly in the add call.

What type of PR is this? (check all applicable)

Related Tickets & Documents

Screenshots

Added tests?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Added to documentation?

Checklist: