X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=mod%2Fcomponent-json-schemas%2Fcomponent-specification%2Fdcae-cli-v2%2Fcomponent-spec-schema.json;h=4a3597aea6291412940021a2397c0c35c1646160;hb=9835c92771ae373ad417a576288662140bc36e8f;hp=7d576c093985148a4897d675a24ad7dcfa1fcf5a;hpb=87e8c9cb8b1b335e213ad1e4adaabc3e622ebfb1;p=dcaegen2%2Fplatform.git diff --git a/mod/component-json-schemas/component-specification/dcae-cli-v2/component-spec-schema.json b/mod/component-json-schemas/component-specification/dcae-cli-v2/component-spec-schema.json old mode 100644 new mode 100755 index 7d576c0..4a3597a --- a/mod/component-json-schemas/component-specification/dcae-cli-v2/component-spec-schema.json +++ b/mod/component-json-schemas/component-specification/dcae-cli-v2/component-spec-schema.json @@ -874,17 +874,10 @@ "type": "array", "items": { "type": "object", - "properties": { - "host":{ - "type":"object", - "path": {"type": "string"} - }, - "container":{ - "type":"object", - "bind": { "type": "string"}, - "mode": { "type": "string"} - } - } + "oneOf": [ + { "$ref": "#/definitions/host_path_volume" }, + { "$ref": "#/definitions/config_map_volume" } + ] } } }, @@ -893,6 +886,48 @@ ], "additionalProperties": false }, + "host_path_volume": { + "type": "object", + "properties": { + "host": { + "type": "object", + "path": { + "type": "string" + } + }, + "container": { + "type": "object", + "bind": { + "type": "string" + }, + "mode": { + "type": "string" + } + } + }, + "required": ["host", "container"] + }, + "config_map_volume": { + "type": "object", + "properties": { + "config_volume": { + "type": "object", + "name": { + "type": "string" + } + }, + "container": { + "type": "object", + "bind": { + "type": "string" + }, + "mode": { + "type": "string" + } + } + }, + "required": ["config_volume", "container"] + }, "docker_healthcheck_http": { "properties": { "type": { @@ -954,4 +989,4 @@ ] } } -} +} \ No newline at end of file