Merge in changes there were made since seeding
[dcaegen2/platform/cli.git] / component-json-schemas / dmaap-schema.json
diff --git a/component-json-schemas/dmaap-schema.json b/component-json-schemas/dmaap-schema.json
new file mode 100644 (file)
index 0000000..e6745f7
--- /dev/null
@@ -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
+    }
+  }
+}