From: Michael Hwang Date: Fri, 15 Sep 2017 16:33:03 +0000 (-0400) Subject: Restructure the json schemas repository X-Git-Tag: 2.0.0-ONAP~15 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=dcaegen2%2Fplatform%2Fcli.git;a=commitdiff_plain;h=5a7ecc5f553c6416beb7327a55967287b0645d14 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 --- 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",