Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions manifest-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,18 +90,22 @@ Instead they MUST ignore unknown properties.
"mediaType": "application/vnd.oci.image.manifest.list.v1+json",
"manifests": [
{
"mediaType": "application/vnd.oci.image.manifest.v1+json",
"size": 7143,
"digest": "sha256:e692418e4cbaf90ca69d05a66403747baa33ee08806650b51fab815ad7fc331f",
"config": {
"mediaType": "application/vnd.oci.image.manifest.v1+json",
"size": 7143,
"digest": "sha256:e692418e4cbaf90ca69d05a66403747baa33ee08806650b51fab815ad7fc331f"
},
"platform": {
"architecture": "ppc64le",
"os": "linux"
}
},
{
"mediaType": "application/vnd.oci.image.manifest.v1+json",
"size": 7682,
"digest": "sha256:5b0bcabd1ed22e9fb1310cf6c2dec7cdef19f0ad69efa1f392e94a4333501270",
"config": {
"mediaType": "application/vnd.oci.image.manifest.v1+json",
"size": 7682,
"digest": "sha256:5b0bcabd1ed22e9fb1310cf6c2dec7cdef19f0ad69efa1f392e94a4333501270"
},
"platform": {
"architecture": "amd64",
"os": "linux",
Expand Down
16 changes: 3 additions & 13 deletions schema/defs-image.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,12 @@
"id": "https://opencontainers.org/schema/image/manifestDescriptor",
"type": "object",
"required": [
"mediaType",
"size",
"digest",
"config",
"platform"
],
"properties": {
"mediaType": {
"description": "the mediatype of the referenced object",
"$ref": "#definitions/mediaType"
},
"size": {
"description": "the size in bytes of the referenced object",
"$ref": "defs.json#/definitions/int64"
},
"digest": {
"$ref": "#definitions/digest"
"config": {
"$ref": "#content-descriptor.json"
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm fine shifting the descriptor properties out into their own property, but manifest-lists currently don't do that. I think you might be confusing manifestDescriptor (used in the manifest-list) with the manifest schema.

Copy link
Author

Choose a reason for hiding this comment

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

Perhaps I naMaybe I'm a little problem on the naming or understand, but I think in the manifest_list.go, Descriptor is the need for specific, or else when the call will be given the wrong, like“Descriptor has no field or method validate”

Copy link
Contributor

Choose a reason for hiding this comment

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

It sounds like you're talking about this Travis error from opencontainers/image-tools#51. But that's a Go compilation error; I don't see how it relates to the JSON Schema change you're proposing here.

},
"platform": {
"id": "https://opencontainers.org/schema/image/platform",
Expand Down
27 changes: 13 additions & 14 deletions schema/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ var _escData = map[string]*_escFile{
"/config-schema.json": {
local: "config-schema.json",
size: 774,
modtime: 1477035771,
modtime: 1477468471,
compressed: `
H4sIAAAJbogA/5SRsW4DIQyG93sKRDL2QodOt+YBOnSsOlAwOUc6TI0zRFXevQJyTU6KquvCYP/f/2P7
u1NKe8iOMQlS1IPSrwninqJYjMBqTzHgQb0lcBjQ2ap6Ktg2uxEmW5BRJA3GHDPFvlV3xAfj2Qbpn19M
Expand Down Expand Up @@ -247,20 +247,19 @@ L+dZaPYex0P6HCj6qPWqreQp+Jq5RBtO9kPW/HbZnwAAAP//X8Yig94IAAA=

"/defs-image.json": {
local: "defs-image.json",
size: 2550,
modtime: 1476325139,
size: 2225,
modtime: 1477470330,
compressed: `
H4sIAAAJbogA/7RWTW/bMAy951cQaoEeEsc9DAMaFAWG9bJTB3SnBdnAynSszpY0SimWFv7vgx3Hn3GL
rNnNosin96hn2i8TABGRk6ysV0aLBYhbipVWxcqBRfZKblJk8AbuLOnPRntUmhi+ZLgmuLckVawkluWz
HV4NIBZQHAEgMooUfttaqkMAQkXFgYn31i3C0FjScg/v5obXoZMJZRiq4qiwgZjtAfwOUDjPSq+buEXv
iUs5P5YYPK+m4fIyuMLg+VPwfT5dTc9FmZrvKkSk1uR8m1qvKT4hkLy13qwZbaIkyITkL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fofq+CoP0uVY2Plo
2XAqmfkz+dA8/PORakFPJacIK8fPa1mHepAeeo8v47RmKvZx+YswgPJdoc/oNRreJ/IYv94z678JG0Fh
mtb/Ieaf+89UYR5ocsiTbr1dlYMJj8ZYxuE3e/QV6IO0k9caelCD0bR31KakQj1bL+Lelx8X6B5rXx53
3On58rZvUJp1nouR6GSy3ZWTcvInAAD//84tHguxCAAA
`,
},

Expand Down
2 changes: 1 addition & 1 deletion specs-go/v1/manifest_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ type Platform struct {

// ManifestDescriptor describes a platform specific manifest.
type ManifestDescriptor struct {
Descriptor
Config Descriptor `json:"config"`

// Platform describes the platform which the image in the manifest runs on.
Platform Platform `json:"platform"`
Expand Down