summaryrefslogtreecommitdiffstats
path: root/framework/src/main/resources/open-cli-schema
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-10-14 01:04:20 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-11-21 18:07:19 +0530
commit8aa599260569b9f063fb85680c95116b00609c31 (patch)
treedbcaf3e4a5141e801c7b9136240c9d4f7216fac7 /framework/src/main/resources/open-cli-schema
parentb7500cd5c7caef69f9d8689872eea01876c9fbba (diff)
Make schema-validate independent of schema profile
Now schema-validate is able to validate schema of any given type supported. Issue-Id: CLI-66 Change-Id: I47ac5e81e9b12dd575e0a4cdc7e8e8bad0f87474 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'framework/src/main/resources/open-cli-schema')
-rw-r--r--framework/src/main/resources/open-cli-schema/default_input_parameters.yaml44
-rw-r--r--framework/src/main/resources/open-cli-schema/http/basic-login.yaml (renamed from framework/src/main/resources/open-cli-schema/basic-login.yaml)0
-rw-r--r--framework/src/main/resources/open-cli-schema/http/basic-logout.yaml (renamed from framework/src/main/resources/open-cli-schema/basic-logout.yaml)0
-rw-r--r--framework/src/main/resources/open-cli-schema/http/catalog.yaml (renamed from framework/src/main/resources/open-cli-schema/catalog.yaml)0
-rw-r--r--framework/src/main/resources/open-cli-schema/http/default_input_parameters_http.yaml36
-rw-r--r--framework/src/main/resources/open-cli-schema/schema-validate.yaml7
6 files changed, 87 insertions, 0 deletions
diff --git a/framework/src/main/resources/open-cli-schema/default_input_parameters.yaml b/framework/src/main/resources/open-cli-schema/default_input_parameters.yaml
new file mode 100644
index 00000000..e8e08f46
--- /dev/null
+++ b/framework/src/main/resources/open-cli-schema/default_input_parameters.yaml
@@ -0,0 +1,44 @@
+open_cli_schema_version: 1.0
+
+info:
+ product: open-cli
+ service: default-param
+ ignore: true
+
+parameters:
+ - name: help
+ type: string
+ description: print help message
+ short_option: h
+ long_option: help
+ default_value: false
+ - name: version
+ type: string
+ description: print service version
+ short_option: v
+ long_option: version
+ default_value: false
+ - name: debug
+ type: bool
+ description: Enable debug output
+ short_option: d
+ long_option: debug
+ default_value: false
+ - name: format
+ type: string
+ description: Output formats, supported formats such as table, csv, json, yaml
+ short_option: f
+ long_option: format
+ default_value: table
+ - name: long
+ type: bool
+ description: whether to print all attributes or only short attributes
+ short_option: s
+ long_option: long
+ default_value: false
+ - name: no-title
+ type: bool
+ description: whether to print title or not
+ short_option: t
+ long_option: no-title
+ default_value: false \ No newline at end of file
diff --git a/framework/src/main/resources/open-cli-schema/basic-login.yaml b/framework/src/main/resources/open-cli-schema/http/basic-login.yaml
index dab9652e..dab9652e 100644
--- a/framework/src/main/resources/open-cli-schema/basic-login.yaml
+++ b/framework/src/main/resources/open-cli-schema/http/basic-login.yaml
diff --git a/framework/src/main/resources/open-cli-schema/basic-logout.yaml b/framework/src/main/resources/open-cli-schema/http/basic-logout.yaml
index ef60006c..ef60006c 100644
--- a/framework/src/main/resources/open-cli-schema/basic-logout.yaml
+++ b/framework/src/main/resources/open-cli-schema/http/basic-logout.yaml
diff --git a/framework/src/main/resources/open-cli-schema/catalog.yaml b/framework/src/main/resources/open-cli-schema/http/catalog.yaml
index d3ee9992..d3ee9992 100644
--- a/framework/src/main/resources/open-cli-schema/catalog.yaml
+++ b/framework/src/main/resources/open-cli-schema/http/catalog.yaml
diff --git a/framework/src/main/resources/open-cli-schema/http/default_input_parameters_http.yaml b/framework/src/main/resources/open-cli-schema/http/default_input_parameters_http.yaml
new file mode 100644
index 00000000..d7fbe03c
--- /dev/null
+++ b/framework/src/main/resources/open-cli-schema/http/default_input_parameters_http.yaml
@@ -0,0 +1,36 @@
+open_cli_schema_version: 1.0
+
+info:
+ product: open-cli
+ service: default-param
+ ignore: true
+
+parameters:
+ - name: host-username
+ type: string
+ description: Host user name
+ short_option: u
+ long_option: host-username
+ default_value: $s{env:OPEN_CLI_HOST_USERNAME}
+ is_optional: false
+ - name: host-password
+ type: string
+ description: Host user password
+ short_option: p
+ long_option: host-password
+ default_value: $s{env:OPEN_CLI_HOST_PASSWORD}
+ is_secured: true
+ is_optional: false
+ - name: host-url
+ type: url
+ description: host url in http(s)
+ short_option: m
+ long_option: host-url
+ is_optional: false
+ default_value: $s{env:OPEN_CLI_HOST_URL}
+ - name: no-auth
+ type: bool
+ description: whether to authenticate user or not
+ short_option: a
+ long_option: no-auth
+ default_value: false \ No newline at end of file
diff --git a/framework/src/main/resources/open-cli-schema/schema-validate.yaml b/framework/src/main/resources/open-cli-schema/schema-validate.yaml
index 65acfb0e..c17b3a08 100644
--- a/framework/src/main/resources/open-cli-schema/schema-validate.yaml
+++ b/framework/src/main/resources/open-cli-schema/schema-validate.yaml
@@ -21,6 +21,13 @@ parameters:
short_option: i
long_option: internal-schema
is_optional: false
+ - name: ocs-version
+ type: string
+ description: OCS version
+ short_option: b
+ long_option: ocs-version
+ is_optional: true
+ default_value: 1.0
results:
direction: landscape