oras-project / oras

OCI registry client - managing content like artifacts, images, packages
https://oras.land
Apache License 2.0
1.33k stars 160 forks source link

chore: project selected fields from OCI descriptor #1362

Closed qweeah closed 1 month ago

qweeah commented 2 months ago

What this PR does / why we need it: This PR limits the selectable fields of a descriptor in json and template output.

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 84.80%. Comparing base (3812a2d) to head (711634d).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1362 +/- ## ========================================== + Coverage 84.78% 84.80% +0.02% ========================================== Files 104 104 Lines 3706 3712 +6 ========================================== + Hits 3142 3148 +6 Misses 336 336 Partials 228 228 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

shizhMSFT commented 1 month ago

Would it be easier to exclude fields you don't want?

I think OCI image-spec may add more fields in the future. Therefore, an allow list would be easier.