-
Notifications
You must be signed in to change notification settings - Fork 805
specs-go: add missing urls field of descriptor #431
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
Conversation
|
ff1d131 looks good to me. The JSON Schema needs to be updated too,
but that can happen in a follow-up PR if you don't want to cover it
here.
|
|
@wking thanks for your reminder, will do that |
|
@wking added a commit to update the JSON schema |
054b6c3 to
9233d34
Compare
| "digest": { | ||
| "$ref": "defs-image.json#definitions/digest" | ||
| }, | ||
| "urls": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description field?
|
commit message/title has a typo (filed -> field) and could be squashed with the other commit |
|
|
a220643 to
b8d624f
Compare
|
@wking @jonboulle |
schema/content-descriptor.json
Outdated
| "description": "a list of urls from which this object may be downloaded", | ||
| "type": "array", | ||
| "items": { | ||
| "type": "string" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should use the uri format:
"type": "string",
"format": "uri"|
@wking updated per your suggestions |
schema/content-descriptor.json
Outdated
| "type": "array", | ||
| "items": { | ||
| "type": "string", | ||
| "format": "uri" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inconsistent indent?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, sorry..
f88df27 to
6975241
Compare
|
@wking updated |
|
Indents are still a bit off. And we do have a rule to fix them for you: $ git describe --always
|
Signed-off-by: Lei Jitang <leijitang@huawei.com>
|
@wking updated, |
|
9208274 looks good to me :).
|
The in-flight opencontainers#431 is using JSON Schema's uri format [1], which requires RFC 3986. This commit makes that an official spec requirement by adding a MUST to the Markdown. It also SHOULDs the http(s) schemes, because they're widely supported and are deployed in existing Docker images. And Vincent and Antonio both like SHOULDing them [2] ;). [1]: https://tools.ietf.org/html/draft-wright-json-schema-validation-00#section-7.3.6 [2]: opencontainers#436 Signed-off-by: W. Trevor King <wking@tremily.us>
The in-flight opencontainers#431 is using JSON Schema's uri format [1], which requires RFC 3986. This commit makes that an official spec requirement by adding a MUST to the Markdown. It also SHOULDs the http(s) schemes, because they're widely supported and are deployed in existing Docker images. And Vincent and Antonio both like SHOULDing them [2] ;). [1]: https://tools.ietf.org/html/draft-wright-json-schema-validation-00#section-7.3.6 [2]: opencontainers#436 Signed-off-by: W. Trevor King <wking@tremily.us>
Signed-off-by: Lei Jitang leijitang@huawei.com