summaryrefslogtreecommitdiffstats
path: root/mod/component-json-schemas/component-specification
diff options
context:
space:
mode:
authorRemigiusz Janeczek <remigiusz.janeczek@nokia.com>2021-01-15 11:00:43 +0100
committerRemigiusz Janeczek <remigiusz.janeczek@nokia.com>2021-01-19 20:30:44 +0100
commitbecfa612c633af253a08b8fd13517f306c9be557 (patch)
tree56bcd83c7e08d9e6121e54f4e648207416a1bc61 /mod/component-json-schemas/component-specification
parent78b54c5bc7eeb280b30755cb236f0be3331fef7f (diff)
Add kafka streams to component spec schema
Issue-ID: DCAEGEN2-1179 Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com> Change-Id: Ie5084f348531e0608e6af7e58c6c2760d617feae
Diffstat (limited to 'mod/component-json-schemas/component-specification')
-rw-r--r--mod/component-json-schemas/component-specification/dcae-cli-v2/component-spec-schema.json39
1 files changed, 37 insertions, 2 deletions
diff --git a/mod/component-json-schemas/component-specification/dcae-cli-v2/component-spec-schema.json b/mod/component-json-schemas/component-specification/dcae-cli-v2/component-spec-schema.json
index 63032cb..7d576c0 100644
--- a/mod/component-json-schemas/component-specification/dcae-cli-v2/component-spec-schema.json
+++ b/mod/component-json-schemas/component-specification/dcae-cli-v2/component-spec-schema.json
@@ -40,7 +40,8 @@
"oneOf": [
{ "$ref": "#/definitions/publisher_http" },
{ "$ref": "#/definitions/publisher_message_router" },
- { "$ref": "#/definitions/publisher_data_router" }
+ { "$ref": "#/definitions/publisher_data_router" },
+ { "$ref": "#/definitions/publisher_kafka" }
]
}
},
@@ -51,7 +52,8 @@
"oneOf": [
{ "$ref": "#/definitions/subscriber_http" },
{ "$ref": "#/definitions/subscriber_message_router" },
- { "$ref": "#/definitions/subscriber_data_router" }
+ { "$ref": "#/definitions/subscriber_data_router" },
+ { "$ref": "#/definitions/subscriber_kafka" }
]
}
}
@@ -470,6 +472,33 @@
"type"
]
},
+ "stream_kafka": {
+ "type": "object",
+ "properties": {
+ "format": {
+ "$ref": "#/definitions/name"
+ },
+ "version": {
+ "$ref": "#/definitions/version"
+ },
+ "config_key": {
+ "type": "string"
+ },
+ "type": {
+ "description": "Type of stream to be used",
+ "type": "string",
+ "enum": [
+ "kafka"
+ ]
+ }
+ },
+ "required": [
+ "format",
+ "version",
+ "config_key",
+ "type"
+ ]
+ },
"publisher_http": {
"type": "object",
"properties": {
@@ -528,6 +557,9 @@
"type"
]
},
+ "publisher_kafka": {
+ "$ref": "#/definitions/stream_kafka"
+ },
"subscriber_http": {
"type": "object",
"properties": {
@@ -591,6 +623,9 @@
"config_key"
]
},
+ "subscriber_kafka": {
+ "$ref": "#/definitions/stream_kafka"
+ },
"provider" : {
"oneOf" : [
{"$ref": "#/definitions/docker-provider"},