Skip to content

Commit aaa53f2

Browse files
committed
Test normalized paths
1 parent 0bd4474 commit aaa53f2

17 files changed

+10237
-1644
lines changed

cts.json

+1,631-16
Large diffs are not rendered by default.

cts.schema.json

+30-6
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@
4040
},
4141
"tags": {
4242
"$ref": "#/$defs/tags"
43+
},
44+
"result_paths": {
45+
"$ref": "#/$defs/result_paths"
46+
},
47+
"results_paths": {
48+
"$ref": "#/$defs/results_paths"
4349
}
4450
},
4551
"required": [
@@ -50,21 +56,25 @@
5056
{
5157
"required": [
5258
"document",
53-
"result"
59+
"result",
60+
"result_paths"
5461
],
5562
"properties": {
5663
"invalid_selector": false,
57-
"results": false
64+
"results": false,
65+
"results_paths": false
5866
}
5967
},
6068
{
6169
"required": [
6270
"document",
63-
"results"
71+
"results",
72+
"results_paths"
6473
],
6574
"properties": {
6675
"invalid_selector": false,
67-
"result": false
76+
"result": false,
77+
"result_paths": false
6878
}
6979
},
7080
{
@@ -74,7 +84,9 @@
7484
"properties": {
7585
"document": false,
7686
"result": false,
77-
"results": false
87+
"results": false,
88+
"result_paths": false,
89+
"results_paths": false
7890
}
7991
}
8092
]
@@ -112,7 +124,19 @@
112124
"type": "boolean",
113125
"const": true,
114126
"description": "The flag indicating that the selector is not a valid JSONPath selector expression"
127+
},
128+
"result_paths": {
129+
"description": "The expected normalized JSONPath query strings of applying the selector to the document, contains all the normalized JSONPath query strings of matched values",
130+
"type": "array",
131+
"items": {
132+
"type": "string"
133+
}
134+
},
135+
"results_paths": {
136+
"description": "An array of possible expected normalized JSONPath query strings of applying the selector to the document, each element of which contains all the normalized JSONPath query strings of matched values",
137+
"type": "array",
138+
"items": {"$ref": "#/$defs/result_paths"},
139+
"minItems": 2
115140
}
116141
}
117142
}
118-

0 commit comments

Comments
 (0)