From e45e668a4f6bdeca4ddc4071c4f37822792d65ed Mon Sep 17 00:00:00 2001 From: subhash kumar singh Date: Mon, 31 Jul 2017 00:45:06 +0530 Subject: Fix invalid help parameters Introduce new section "default_parameter" to add "include" and "exclude" parameter from defalut parameter list. Following is a example for the parameter section to use it: xyz.yaml: ... default_parameters: include: - parameter1 - parameter2 ... exclude: - parameter3 - parameter4 ... parameters: - parameter5 .... .... Issue-Id: CLI-20 Change-Id: I99fd91a130739f2007fdd85a23c76d4e1b30c542 Signed-off-by: subhash kumar singh --- framework/src/main/resources/onap.properties | 6 +++++- framework/src/main/resources/schema-refresh.yaml | 6 ++++++ framework/src/main/resources/schema-validate.yaml | 6 ++++++ 3 files changed, 17 insertions(+), 1 deletion(-) (limited to 'framework/src/main/resources') diff --git a/framework/src/main/resources/onap.properties b/framework/src/main/resources/onap.properties index 61049cd4..bf1cdae5 100644 --- a/framework/src/main/resources/onap.properties +++ b/framework/src/main/resources/onap.properties @@ -1,4 +1,8 @@ cli.ignore_auth=false cli.version=1.0 http.api_key=X-Auth-Token -http.api_key_use_cookies=true \ No newline at end of file +http.api_key_use_cookies=true + +cli.service_name=onap-cli +cli.api_gateway=msb +cli.auth_service=auth \ No newline at end of file diff --git a/framework/src/main/resources/schema-refresh.yaml b/framework/src/main/resources/schema-refresh.yaml index f64b0545..ffa32424 100644 --- a/framework/src/main/resources/schema-refresh.yaml +++ b/framework/src/main/resources/schema-refresh.yaml @@ -5,6 +5,12 @@ service: no-auth: true name: onap-cli version: 1.0.0 +default_parameters: + exclude: + - onap-username + - onap-password + - msb-url + - no-auth results: direction: landscape attributes: diff --git a/framework/src/main/resources/schema-validate.yaml b/framework/src/main/resources/schema-validate.yaml index 1571fb3d..06bb6563 100644 --- a/framework/src/main/resources/schema-validate.yaml +++ b/framework/src/main/resources/schema-validate.yaml @@ -5,6 +5,12 @@ service: no-auth: true name: onap-cli version: 1.0.0 +default_parameters: + exclude: + - onap-username + - onap-password + - msb-url + - no-auth parameters: - name: schema-location type: url -- cgit 1.2.3-korg