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

Use REQUIRED properties instead of base properties #583

Merged
merged 1 commit into from
Apr 10, 2017

Conversation

coolljt0725
Copy link
Member

base properties is not quite clear because we don't
define which property is the base properties and which
is not the base properties. Use REQUIRED properties
to make it more clear.

Signed-off-by: Lei Jitang leijitang@huawei.com

Copy link
Member

@mikebrow mikebrow left a comment

Choose a reason for hiding this comment

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

Suggestions for not repeating REQUIRED language.

@@ -25,7 +25,7 @@ For the media type(s) that this document is compatible with, see the [matrix][ma
This REQUIRED property contains a list of [manifests](manifest.md) for specific platforms.
While this property MUST be present, the size of the array MAY be zero.

Each object in `manifests` has the base properties of [descriptor](descriptor.md) with the following additional properties and restrictions:
Each object in `manifests` has the REQUIRED properties of [descriptor](descriptor.md) with the following additional properties and restrictions:
Copy link
Member

@mikebrow mikebrow Feb 23, 2017

Choose a reason for hiding this comment

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

Suggest:

Each object in `manifests` includes a set of [descriptor properties](descriptor.md#properties) with the following additional properties and restrictions:

Copy link
Member Author

Choose a reason for hiding this comment

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

@mikebrow is a set of also not clear on which property is required and which is not requred?

Copy link
Member

Choose a reason for hiding this comment

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

Yes. The point is, we are repeating the REQUIRED statement which is located in the forward reference document.

Copy link
Contributor

Choose a reason for hiding this comment

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

+1 to @mikebrow's wording. We're also including OPTIONAL descriptor properties in this extension, not just the REQUIRED properties.

image-layout.md Outdated
@@ -27,7 +27,7 @@ The image layout is as follows:
- `index.json` file
- It MUST exist
- It MUST be a JSON object
- It MUST have the base properties of an [image index](image-index.md).
- It MUST have the REQUIRED properties of an [image index](image-index.md).
Copy link
Member

@mikebrow mikebrow Feb 23, 2017

Choose a reason for hiding this comment

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

Suggest:

It MUST include [image index properties](image-index.md).

Copy link
Contributor

Choose a reason for hiding this comment

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

How about consolidating the last two lines:

  • index.json file
    • It MUST exist.
    • It MUST be an image index JSON object.

Or alternatively:

Copy link
Member

Choose a reason for hiding this comment

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

prefer @wking 's first option

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm ok with @wking 's first option

@vbatts
Copy link
Member

vbatts commented Apr 3, 2017

is this PR waiting on updates, @coolljt0725 ?

@coolljt0725
Copy link
Member Author

@vbatts sorry for the late response, updated

`base properties` is not quite clear because we don't
define which property is the base properties and which
is not the base properties. Use `REQUIRED properties`
to make it more clear.

Signed-off-by: Lei Jitang <leijitang@huawei.com>
@vbatts
Copy link
Member

vbatts commented Apr 10, 2017

LGTM

Approved with PullApprove

@vbatts vbatts merged commit 7ddae89 into opencontainers:master Apr 10, 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