From 0947a33e43009fb80afd3d44dda068e0f1e6c67d Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Fri, 15 Apr 2016 16:51:23 -0400 Subject: [PATCH 1/2] schema: actually add the schema file I managed to forget adding the file in https://github.com/opencontainers/image-spec/pull/18 Signed-off-by: Vincent Batts --- schema/manifest-list-schema.json | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 schema/manifest-list-schema.json diff --git a/schema/manifest-list-schema.json b/schema/manifest-list-schema.json new file mode 100644 index 000000000..43033dab4 --- /dev/null +++ b/schema/manifest-list-schema.json @@ -0,0 +1,28 @@ +{ + "description": "OpenContainer Image Manifest List Specification", + "$schema": "http://json-schema.org/draft-04/schema#", + "id": "https://opencontainers.org/schema/image/manifest-list", + "type": "object", + "properties": { + "schemaVersion": { + "description": "This field specifies the image manifest-list schema version as an integer", + "id": "https://opencontainers.org/schema/image/manifest-list/schemaVersion", + "type": "integer" + }, + "mediaType": { + "id": "https://opencontainers.org/schema/image/manifest-list/mediaType", + "$ref": "defs-image.json#/definitions/mediaType" + }, + "manifests": { + "type": "array", + "items": { + "$ref": "defs-image.json#/definitions/manifestObject" + } + } + }, + "required": [ + "schemaVersion", + "mediaType", + "manifests" + ] +} From 4b14700ad1e3441433472d9077a3da0fcefa23a0 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Fri, 15 Apr 2016 18:02:25 -0400 Subject: [PATCH 2/2] schema: remove annotations field This was yank-and-paste from the runtime-spec that I was mulling on and forgot to remove before the PR. While this might can be added back, it will likely have its own discussion. Signed-off-by: Vincent Batts --- schema/image-manifest-schema.json | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/schema/image-manifest-schema.json b/schema/image-manifest-schema.json index 143472578..dd859b1d5 100644 --- a/schema/image-manifest-schema.json +++ b/schema/image-manifest-schema.json @@ -21,17 +21,6 @@ "items": { "$ref": "defs-image.json#/definitions/blobObject" } - }, - "annotations": { - "id": "https://opencontainers.org/schema/image/manifest/annotations", - "oneOf": [ - { - "$ref": "defs.json#/definitions/mapStringString" - }, - { - "type": "null" - } - ] } }, "required": [