From ec99788bb51cd2ca48f81486afd344408c06e9ac Mon Sep 17 00:00:00 2001 From: zhouhao Date: Mon, 10 Jul 2017 16:05:50 +0800 Subject: [PATCH] config-schema: Optimize code Signed-off-by: zhouhao --- schema/config-schema.json | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/schema/config-schema.json b/schema/config-schema.json index 5a49ba5ec..d905edb6e 100644 --- a/schema/config-schema.json +++ b/schema/config-schema.json @@ -125,38 +125,23 @@ "properties": { "bounding": { "id": "https://opencontainers.org/schema/bundle/process/linux/capabilities/bounding", - "type": "array", - "items": { - "type": "string" - } + "$ref": "defs.json#/definitions/ArrayOfStrings" }, "permitted": { "id": "https://opencontainers.org/schema/bundle/process/linux/capabilities/permitted", - "type": "array", - "items": { - "type": "string" - } + "$ref": "defs.json#/definitions/ArrayOfStrings" }, "effective": { "id": "https://opencontainers.org/schema/bundle/process/linux/capabilities/effective", - "type": "array", - "items": { - "type": "string" - } + "$ref": "defs.json#/definitions/ArrayOfStrings" }, "inheritable": { "id": "https://opencontainers.org/schema/bundle/process/linux/capabilities/inheritable", - "type": "array", - "items": { - "type": "string" - } + "$ref": "defs.json#/definitions/ArrayOfStrings" }, "ambient": { "id": "https://opencontainers.org/schema/bundle/process/linux/capabilities/ambient", - "type": "array", - "items": { - "type": "string" - } + "$ref": "defs.json#/definitions/ArrayOfStrings" } } },