-
Notifications
You must be signed in to change notification settings - Fork 0
/
rule-schema.json
84 lines (84 loc) · 2.23 KB
/
rule-schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
"$schema": "http://json-schema.org/draft-04/schema#",
"dependencies": {
"header": {
"oneOf": [
{
"required": [
"header_regexp"
]
},
{
"not": {
"required": [
"header_regexp"
]
}
}
]
},
"header_regexp": {
"oneOf": [
{
"required": [
"header"
]
},
{
"not": {
"required": [
"header"
]
}
}
]
},
"jmespath": {
"oneOf": [
{
"required": [
"regexp"
]
},
{
"not": {
"required": [
"regexp"
]
}
}
]
}
},
"properties": {
"destination_topics": {
"description": "The topics (comma separated) to which data will be sent.",
"type": "string"
},
"header": {
"description": "An optional header field that can contain metadata or additional information.",
"type": "string"
},
"header_regexp": {
"description": "A regular expression to be matched against the header.",
"type": "string"
},
"jmespath": {
"description": "A JMESPath expression used for querying data.",
"type": "string"
},
"regexp": {
"description": "A regular expression pattern for matching data.",
"type": "string"
},
"source_topic": {
"description": "The topic from which data will be retrieved.",
"type": "string"
}
},
"required": [
"source_topic",
"destination_topics"
],
"type": "object"
}