Skip to content

Conversation

@coolljt0725
Copy link
Member

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

@wking
Copy link
Contributor

wking commented Nov 1, 2016 via email

@coolljt0725
Copy link
Member Author

@wking thanks for your reminder, will do that

@coolljt0725
Copy link
Member Author

@wking added a commit to update the JSON schema

@coolljt0725 coolljt0725 force-pushed the urls branch 2 times, most recently from 054b6c3 to 9233d34 Compare November 2, 2016 08:05
@runcom
Copy link
Member

runcom commented Nov 2, 2016

LGTM, ping @vbatts @philips can we get this in so tooling can start using this?

"digest": {
"$ref": "defs-image.json#definitions/digest"
},
"urls": {
Copy link
Contributor

Choose a reason for hiding this comment

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

description field?

@jonboulle
Copy link
Contributor

commit message/title has a typo (filed -> field) and could be squashed with the other commit

@wking
Copy link
Contributor

wking commented Nov 2, 2016

manifestDescriptor in defs-image.json should be updated too.

@coolljt0725 coolljt0725 changed the title specs-go: add missing urls filed of desciptor specs-go: add missing urls field of desciptor Nov 3, 2016
@coolljt0725 coolljt0725 changed the title specs-go: add missing urls field of desciptor specs-go: add missing urls field of descriptor Nov 3, 2016
@coolljt0725 coolljt0725 force-pushed the urls branch 2 times, most recently from a220643 to b8d624f Compare November 3, 2016 01:37
@coolljt0725
Copy link
Member Author

@wking @jonboulle
The commit message and title has updated, also squash to a commit.
Add description field.
Update manifestDescriptor in defs-image.json

"description": "a list of urls from which this object may be downloaded",
"type": "array",
"items": {
"type": "string"
Copy link
Contributor

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"

@coolljt0725
Copy link
Member Author

@wking updated per your suggestions

"type": "array",
"items": {
"type": "string",
"format": "uri"
Copy link
Contributor

Choose a reason for hiding this comment

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

Inconsistent indent?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, sorry..

@coolljt0725 coolljt0725 force-pushed the urls branch 2 times, most recently from f88df27 to 6975241 Compare November 3, 2016 02:57
@coolljt0725
Copy link
Member Author

@wking updated

@wking
Copy link
Contributor

wking commented Nov 3, 2016

Indents are still a bit off. And we do have a rule to fix them for you:

$ git describe --always
v1.0.0-rc1-99-g6975241
$ make fmt
$ git diff
diff --git a/schema/defs-image.json b/schema/defs-image.json
index 2a029ab..b0046a0 100644
--- a/schema/defs-image.json
+++ b/schema/defs-image.json
@@ -32,13 +32,13 @@
"digest": {
"$ref": "#definitions/digest"
},

  •   "urls": {
    
  •    "urls": {
         "description": "a list of urls from which this object may be downloaded",
         "type": "array",
         "items": {
    
  •       "type": "string",
    
  •       "format": "uri"
    
  •     }
    
  •        "type": "string",
    
  •        "format": "uri"
    
  •      }
       },
       "platform": {
         "id": "https://opencontainers.org/schema/image/platform",
    

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

@wking updated, make fmt to fix the indents

@wking
Copy link
Contributor

wking commented Nov 3, 2016 via email

@wking wking mentioned this pull request Nov 3, 2016
@vbatts
Copy link
Member

vbatts commented Nov 3, 2016

LGTM

Approved with PullApprove

wking added a commit to wking/image-spec that referenced this pull request Nov 3, 2016
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>
@jonboulle
Copy link
Contributor

jonboulle commented Nov 4, 2016

lgtm

Approved with PullApprove

@jonboulle jonboulle merged commit 334ad37 into opencontainers:master Nov 4, 2016
@coolljt0725 coolljt0725 deleted the urls branch November 5, 2016 01:18
wking added a commit to wking/image-spec that referenced this pull request Nov 5, 2016
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>
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