From 5a7ecc5f553c6416beb7327a55967287b0645d14 Mon Sep 17 00:00:00 2001 From: Michael Hwang Date: Fri, 15 Sep 2017 12:33:03 -0400 Subject: [PATCH] Restructure the json schemas repository All the json schema files have been put into folders that will be emulated on the remote web server by the CI process. Change-Id: Id8ad12c4f4623db4b35ed2be7cb727666d83fc33 Issue-Id: DCAEGEN2-60 Signed-off-by: Michael Hwang --- .../dcae-cli-v1}/component-spec-schema.json | 0 .../{ => data-format/dcae-cli-v1}/data-format-schema.json | 0 component-json-schemas/{ => dmaap/dcae-cli-v1}/dmaap-schema.json | 0 dcae-cli/dcae_cli/util/config.py | 2 +- 4 files changed, 1 insertion(+), 1 deletion(-) rename component-json-schemas/{ => component-specification/dcae-cli-v1}/component-spec-schema.json (100%) rename component-json-schemas/{ => data-format/dcae-cli-v1}/data-format-schema.json (100%) rename component-json-schemas/{ => dmaap/dcae-cli-v1}/dmaap-schema.json (100%) diff --git a/component-json-schemas/component-spec-schema.json b/component-json-schemas/component-specification/dcae-cli-v1/component-spec-schema.json similarity index 100% rename from component-json-schemas/component-spec-schema.json rename to component-json-schemas/component-specification/dcae-cli-v1/component-spec-schema.json diff --git a/component-json-schemas/data-format-schema.json b/component-json-schemas/data-format/dcae-cli-v1/data-format-schema.json similarity index 100% rename from component-json-schemas/data-format-schema.json rename to component-json-schemas/data-format/dcae-cli-v1/data-format-schema.json diff --git a/component-json-schemas/dmaap-schema.json b/component-json-schemas/dmaap/dcae-cli-v1/dmaap-schema.json similarity index 100% rename from component-json-schemas/dmaap-schema.json rename to component-json-schemas/dmaap/dcae-cli-v1/dmaap-schema.json diff --git a/dcae-cli/dcae_cli/util/config.py b/dcae-cli/dcae_cli/util/config.py index d3230bc..4628681 100644 --- a/dcae-cli/dcae_cli/util/config.py +++ b/dcae-cli/dcae_cli/util/config.py @@ -88,7 +88,7 @@ def get_config(): def get_path_component_spec(): return get_config().get("path_component_spec", - "/schemas/component-specification/dcae-cli-v3/component-spec-schema.json") + "/schemas/component-specification/dcae-cli-v1/component-spec-schema.json") def get_path_data_format(): return get_config().get("path_data_format", -- 2.16.6