Skip to content

chore: project selected fields from OCI descriptor#1362

Merged
qweeah merged 2 commits into
oras-project:mainfrom
qweeah:desc
May 7, 2024
Merged

chore: project selected fields from OCI descriptor#1362
qweeah merged 2 commits into
oras-project:mainfrom
qweeah:desc

Conversation

@qweeah

@qweeah qweeah commented Apr 19, 2024

Copy link
Copy Markdown
Contributor

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>
@codecov

codecov Bot commented Apr 19, 2024

Copy link
Copy Markdown

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.

@TerryHowe TerryHowe left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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.

@shizhMSFT shizhMSFT left a comment

Copy link
Copy Markdown
Contributor

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