From c698e66797bad69b4c77b26b487bf8322989beb0 Mon Sep 17 00:00:00 2001 From: Michael Hwang Date: Tue, 12 Nov 2019 16:04:20 -0500 Subject: Copy dcae-cli->onboardingapi, copy component specs Issue-ID: DCAEGEN2-1860 Change-Id: I4805398c76479fad51cbdb74470ccc8f706ce9dc Signed-off-by: Michael Hwang --- .../dmaap/dcae-cli-v1/dmaap-schema.json | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 mod/component-json-schemas/dmaap/dcae-cli-v1/dmaap-schema.json (limited to 'mod/component-json-schemas/dmaap') diff --git a/mod/component-json-schemas/dmaap/dcae-cli-v1/dmaap-schema.json b/mod/component-json-schemas/dmaap/dcae-cli-v1/dmaap-schema.json new file mode 100644 index 0000000..e6745f7 --- /dev/null +++ b/mod/component-json-schemas/dmaap/dcae-cli-v1/dmaap-schema.json @@ -0,0 +1,51 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Schema for dmaap inputs", + "type": "object", + "oneOf": [ + { "$ref": "#/definitions/message_router" } + ], + "definitions": { + "message_router": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": ["message_router"] + }, + "aaf_username": { + "type": "string" + }, + "aaf_password": { + "type": "string" + }, + "dmaap_info": { + "type": "object", + "properties": { + "client_role": { + "type": "string" + }, + "client_id": { + "type": "string" + }, + "location": { + "type": "string" + }, + "topic_url": { + "type": "string" + } + }, + "required": [ + "topic_url" + ], + "additionalProperties": false + } + }, + "required": [ + "type", + "dmaap_info" + ], + "additionalProperties": false + } + } +} -- cgit 1.2.3-korg