open-component-model / ocm

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

spec normalization for OCI based OCM repository spec #710

Closed mandelsoft closed 5 months ago

mandelsoft commented 5 months ago

Description

The OCM repository specs based on OCI repository specs are now featuring a normalization handler, which can be used to map information provided as formal part of the OCI spec to OCM related parts.

THis is used to identify URL sub paths given by an OCIRegistry repo spec (which would not be allowed for OCI) and transfer them into the subPath part of the OCM specification.

This now aligns the handling in the constructor functions with the deserialization of OCI related OCM repository specifications.

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

Related Tickets & Documents

Fixes open-component-model/ocm-project#126

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: