Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

descriptor.md: add descriptions for the extended field #649

Merged
merged 1 commit into from
May 4, 2017

Conversation

qianzhangxa
Copy link
Contributor

Signed-off-by: Qian Zhang zhq527725@gmail.com

descriptor.md Outdated
@@ -43,6 +43,8 @@ The following fields contain the primary properties that constitute a Descriptor

This OPTIONAL property contains arbitrary metadata for this descriptor.
This OPTIONAL property MUST use the [annotation rules](annotations.md#rules).

Descriptors pointing to [`application/vnd.oci.image.manifest.v1+json`](manifest.md) SHOULD include the extended field `platform`, see [Image Index Property Descriptions](https://github.com/qianzhangxa/image-spec/blob/master/image-index.md#image-index-property-descriptions) for details.
Copy link
Member

Choose a reason for hiding this comment

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

The link target needs to be image-index.md#image-index-property-descriptions.

Also, if this is going to be merged, I think "This property (platform) SHOULD be present if its target is platform-specific." in image-index.md should be updated to "This property SHOULD be present"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @AkihiroSuda. I have updated the code.

And I think we still need "if its target is platform-specific." in image-index.md since the manifest in a image index can be of other media type (not just application/vnd.oci.image.manifest.v1+json) in which case platform can be absent.

Signed-off-by: Qian Zhang <zhq527725@gmail.com>
@vbatts
Copy link
Member

vbatts commented Apr 25, 2017

I guess this is fine, but we already have a SHOULD for this IIRC

@wking
Copy link
Contributor

wking commented Apr 25, 2017 via email

@stevvooe
Copy link
Contributor

stevvooe commented May 3, 2017

LGTM

Approved with PullApprove

1 similar comment
@vbatts
Copy link
Member

vbatts commented May 4, 2017

LGTM

Approved with PullApprove

@vbatts vbatts merged commit e6013db into opencontainers:master May 4, 2017
@vbatts vbatts mentioned this pull request May 19, 2017
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.

5 participants