Skip to content

Commit 2760212

Browse files
Add regex matching filters to open_filters.json
- Introduce new regex-based filters: matches_regex and does_not_match_regex - Add support for string-based regex matching in both API and client filter configurations - Update filter schemas to include new regex filter options with expected string type
1 parent a516219 commit 2760212

File tree

2 files changed

+72
-0
lines changed

2 files changed

+72
-0
lines changed

api/resources/data/open_filters.json

+36
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,18 @@
5454
},
5555
"content_length_less_than_or_equal_to": {
5656
"expected_type": "number"
57+
},
58+
"matches_regex": {
59+
"expected_type": "string",
60+
"format": {
61+
"type": "regex"
62+
}
63+
},
64+
"does_not_match_regex": {
65+
"expected_type": "string",
66+
"format": {
67+
"type": "regex"
68+
}
5769
}
5870
}
5971
},
@@ -112,6 +124,18 @@
112124
},
113125
"content_length_less_than_or_equal_to": {
114126
"expected_type": "number"
127+
},
128+
"matches_regex": {
129+
"expected_type": "string",
130+
"format": {
131+
"type": "regex"
132+
}
133+
},
134+
"does_not_match_regex": {
135+
"expected_type": "string",
136+
"format": {
137+
"type": "regex"
138+
}
115139
}
116140
}
117141
},
@@ -170,6 +194,18 @@
170194
},
171195
"content_length_less_than_or_equal_to": {
172196
"expected_type": "number"
197+
},
198+
"matches_regex": {
199+
"expected_type": "string",
200+
"format": {
201+
"type": "regex"
202+
}
203+
},
204+
"does_not_match_regex": {
205+
"expected_type": "string",
206+
"format": {
207+
"type": "regex"
208+
}
173209
}
174210
}
175211
},

client/data/open_filters.json

+36
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,18 @@
5454
},
5555
"content_length_less_than_or_equal_to": {
5656
"expected_type": "number"
57+
},
58+
"matches_regex": {
59+
"expected_type": "string",
60+
"format": {
61+
"type": "regex"
62+
}
63+
},
64+
"does_not_match_regex": {
65+
"expected_type": "string",
66+
"format": {
67+
"type": "regex"
68+
}
5769
}
5870
}
5971
},
@@ -112,6 +124,18 @@
112124
},
113125
"content_length_less_than_or_equal_to": {
114126
"expected_type": "number"
127+
},
128+
"matches_regex": {
129+
"expected_type": "string",
130+
"format": {
131+
"type": "regex"
132+
}
133+
},
134+
"does_not_match_regex": {
135+
"expected_type": "string",
136+
"format": {
137+
"type": "regex"
138+
}
115139
}
116140
}
117141
},
@@ -170,6 +194,18 @@
170194
},
171195
"content_length_less_than_or_equal_to": {
172196
"expected_type": "number"
197+
},
198+
"matches_regex": {
199+
"expected_type": "string",
200+
"format": {
201+
"type": "regex"
202+
}
203+
},
204+
"does_not_match_regex": {
205+
"expected_type": "string",
206+
"format": {
207+
"type": "regex"
208+
}
173209
}
174210
}
175211
},

0 commit comments

Comments
 (0)