Skip to content

Conversation

qweeah
Copy link
Contributor

@qweeah qweeah commented Apr 19, 2024

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

Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Copy link

codecov bot commented Apr 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

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

Additional details and impacted files
@@            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              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@TerryHowe TerryHowe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@shizhMSFT
Copy link
Contributor

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.

Copy link
Contributor

@shizhMSFT shizhMSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@qweeah qweeah merged commit 101cf17 into oras-project:main May 7, 2024
FeynmanZhou pushed a commit to FeynmanZhou/oras that referenced this pull request May 11, 2024
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants