Skip to content

Commit 9cc11ab

Browse files
committed
Added metadata for producer
1 parent 613864a commit 9cc11ab

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

component.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
"note": "This exchange will be created on start if not exists."
2525
}
2626
},
27-
"metadata": {}
27+
"metadata": {
28+
"in": "./lib/schemas/publish.in.json"
29+
}
2830
}
2931
},
3032
"triggers": {

lib/schemas/publish.in.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"type": "object",
3+
"properties": {
4+
"routingKey": {
5+
"type": "string",
6+
"required": true,
7+
"title": "Routing Key"
8+
},
9+
"payload": {
10+
"type": "string",
11+
"required": "true",
12+
"title": "Payload"
13+
}
14+
}
15+
}

0 commit comments

Comments
 (0)