Skip to content

Commit c4ef079

Browse files
committed
encoding/jsonschema: update external test errors
This updates the error output for skipped tests with respect to recent evaluator changes. Signed-off-by: Roger Peppe <[email protected]> Change-Id: I6cd2f8cd658d9480cabd8addefdeb5dc400054a5 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1205906 Unity-Result: CUE porcuepine <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Daniel Martí <[email protected]>
1 parent 028c6f3 commit c4ef079

File tree

7 files changed

+38
-38
lines changed

7 files changed

+38
-38
lines changed

encoding/jsonschema/testdata/external/tests/draft2019-09/anchor.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
}
1313
},
1414
"skip": {
15-
"v2": "extract error: cannot determine CUE location for JSON Schema location id=https://cue.jsonschema.invalid#foo: anchors (foo) not supported (and 1 more errors)",
16-
"v3": "extract error: cannot determine CUE location for JSON Schema location id=https://cue.jsonschema.invalid#foo: anchors (foo) not supported (and 1 more errors)"
15+
"v2": "extract error: cannot determine CUE location for JSON Schema location id=https://cue.jsonschema.invalid#foo: anchors (foo) not supported (and 3 more errors)",
16+
"v3": "extract error: cannot determine CUE location for JSON Schema location id=https://cue.jsonschema.invalid#foo: anchors (foo) not supported (and 3 more errors)"
1717
},
1818
"tests": [
1919
{
@@ -50,8 +50,8 @@
5050
}
5151
},
5252
"skip": {
53-
"v2": "extract error: cannot determine CUE location for JSON Schema location id=http://localhost:1234/draft2019-09/bar#foo: anchors (foo) not supported (and 1 more errors)",
54-
"v3": "extract error: cannot determine CUE location for JSON Schema location id=http://localhost:1234/draft2019-09/bar#foo: anchors (foo) not supported (and 1 more errors)"
53+
"v2": "extract error: cannot determine CUE location for JSON Schema location id=http://localhost:1234/draft2019-09/bar#foo: anchors (foo) not supported (and 3 more errors)",
54+
"v3": "extract error: cannot determine CUE location for JSON Schema location id=http://localhost:1234/draft2019-09/bar#foo: anchors (foo) not supported (and 3 more errors)"
5555
},
5656
"tests": [
5757
{
@@ -93,8 +93,8 @@
9393
}
9494
},
9595
"skip": {
96-
"v2": "extract error: cannot determine CUE location for JSON Schema location id=http://localhost:1234/draft2019-09/nested.json#foo: anchors (foo) not supported (and 1 more errors)",
97-
"v3": "extract error: cannot determine CUE location for JSON Schema location id=http://localhost:1234/draft2019-09/nested.json#foo: anchors (foo) not supported (and 1 more errors)"
96+
"v2": "extract error: cannot determine CUE location for JSON Schema location id=http://localhost:1234/draft2019-09/nested.json#foo: anchors (foo) not supported (and 3 more errors)",
97+
"v3": "extract error: cannot determine CUE location for JSON Schema location id=http://localhost:1234/draft2019-09/nested.json#foo: anchors (foo) not supported (and 3 more errors)"
9898
},
9999
"tests": [
100100
{
@@ -141,8 +141,8 @@
141141
"$ref": "child1#my_anchor"
142142
},
143143
"skip": {
144-
"v2": "extract error: cannot determine CUE location for JSON Schema location id=http://localhost:1234/draft2019-09/child1#my_anchor: anchors (my_anchor) not supported (and 1 more errors)",
145-
"v3": "extract error: cannot determine CUE location for JSON Schema location id=http://localhost:1234/draft2019-09/child1#my_anchor: anchors (my_anchor) not supported (and 1 more errors)"
144+
"v2": "extract error: keyword \"$anchor\" not yet implemented (and 5 more errors)",
145+
"v3": "extract error: keyword \"$anchor\" not yet implemented (and 5 more errors)"
146146
},
147147
"tests": [
148148
{

encoding/jsonschema/testdata/external/tests/draft2019-09/optional/anchor.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
]
3535
},
3636
"skip": {
37-
"v2": "extract error: cannot determine CUE location for JSON Schema location id=https://cue.jsonschema.invalid#my_anchor: anchors (my_anchor) not supported (and 1 more errors)",
38-
"v3": "extract error: cannot determine CUE location for JSON Schema location id=https://cue.jsonschema.invalid#my_anchor: anchors (my_anchor) not supported (and 1 more errors)"
37+
"v2": "extract error: keyword \"$anchor\" not yet implemented (and 3 more errors)",
38+
"v3": "extract error: keyword \"$anchor\" not yet implemented (and 3 more errors)"
3939
},
4040
"tests": [
4141
{

encoding/jsonschema/testdata/external/tests/draft2019-09/ref.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -818,8 +818,8 @@
818818
}
819819
},
820820
"skip": {
821-
"v2": "extract error: cannot determine CUE location for JSON Schema location id=https://example.com/draft2019-09/ref-and-id2/base.json#bigint: anchors (bigint) not supported (and 1 more errors)",
822-
"v3": "extract error: cannot determine CUE location for JSON Schema location id=https://example.com/draft2019-09/ref-and-id2/base.json#bigint: anchors (bigint) not supported (and 1 more errors)"
821+
"v2": "extract error: cannot determine CUE location for JSON Schema location id=https://example.com/draft2019-09/ref-and-id2/base.json#bigint: anchors (bigint) not supported (and 5 more errors)",
822+
"v3": "extract error: cannot determine CUE location for JSON Schema location id=https://example.com/draft2019-09/ref-and-id2/base.json#bigint: anchors (bigint) not supported (and 5 more errors)"
823823
},
824824
"tests": [
825825
{
@@ -1059,8 +1059,8 @@
10591059
}
10601060
},
10611061
"skip": {
1062-
"v2": "extract error: cannot determine CUE location for JSON Schema location id=urn:uuid:deadbeef-1234-ff00-00ff-4321feebdaed#something: anchors (something) not supported (and 1 more errors)",
1063-
"v3": "extract error: cannot determine CUE location for JSON Schema location id=urn:uuid:deadbeef-1234-ff00-00ff-4321feebdaed#something: anchors (something) not supported (and 1 more errors)"
1062+
"v2": "extract error: cannot determine CUE location for JSON Schema location id=urn:uuid:deadbeef-1234-ff00-00ff-4321feebdaed#something: anchors (something) not supported (and 3 more errors)",
1063+
"v3": "extract error: cannot determine CUE location for JSON Schema location id=urn:uuid:deadbeef-1234-ff00-00ff-4321feebdaed#something: anchors (something) not supported (and 3 more errors)"
10641064
},
10651065
"tests": [
10661066
{

encoding/jsonschema/testdata/external/tests/draft2020-12/anchor.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
}
1313
},
1414
"skip": {
15-
"v2": "extract error: cannot determine CUE location for JSON Schema location id=https://cue.jsonschema.invalid#foo: anchors (foo) not supported (and 1 more errors)",
16-
"v3": "extract error: cannot determine CUE location for JSON Schema location id=https://cue.jsonschema.invalid#foo: anchors (foo) not supported (and 1 more errors)"
15+
"v2": "extract error: cannot determine CUE location for JSON Schema location id=https://cue.jsonschema.invalid#foo: anchors (foo) not supported (and 3 more errors)",
16+
"v3": "extract error: cannot determine CUE location for JSON Schema location id=https://cue.jsonschema.invalid#foo: anchors (foo) not supported (and 3 more errors)"
1717
},
1818
"tests": [
1919
{
@@ -50,8 +50,8 @@
5050
}
5151
},
5252
"skip": {
53-
"v2": "extract error: cannot determine CUE location for JSON Schema location id=http://localhost:1234/draft2020-12/bar#foo: anchors (foo) not supported (and 1 more errors)",
54-
"v3": "extract error: cannot determine CUE location for JSON Schema location id=http://localhost:1234/draft2020-12/bar#foo: anchors (foo) not supported (and 1 more errors)"
53+
"v2": "extract error: cannot determine CUE location for JSON Schema location id=http://localhost:1234/draft2020-12/bar#foo: anchors (foo) not supported (and 3 more errors)",
54+
"v3": "extract error: cannot determine CUE location for JSON Schema location id=http://localhost:1234/draft2020-12/bar#foo: anchors (foo) not supported (and 3 more errors)"
5555
},
5656
"tests": [
5757
{
@@ -93,8 +93,8 @@
9393
}
9494
},
9595
"skip": {
96-
"v2": "extract error: cannot determine CUE location for JSON Schema location id=http://localhost:1234/draft2020-12/nested.json#foo: anchors (foo) not supported (and 1 more errors)",
97-
"v3": "extract error: cannot determine CUE location for JSON Schema location id=http://localhost:1234/draft2020-12/nested.json#foo: anchors (foo) not supported (and 1 more errors)"
96+
"v2": "extract error: cannot determine CUE location for JSON Schema location id=http://localhost:1234/draft2020-12/nested.json#foo: anchors (foo) not supported (and 3 more errors)",
97+
"v3": "extract error: cannot determine CUE location for JSON Schema location id=http://localhost:1234/draft2020-12/nested.json#foo: anchors (foo) not supported (and 3 more errors)"
9898
},
9999
"tests": [
100100
{
@@ -141,8 +141,8 @@
141141
"$ref": "child1#my_anchor"
142142
},
143143
"skip": {
144-
"v2": "extract error: cannot determine CUE location for JSON Schema location id=http://localhost:1234/draft2020-12/child1#my_anchor: anchors (my_anchor) not supported (and 1 more errors)",
145-
"v3": "extract error: cannot determine CUE location for JSON Schema location id=http://localhost:1234/draft2020-12/child1#my_anchor: anchors (my_anchor) not supported (and 1 more errors)"
144+
"v2": "extract error: keyword \"$anchor\" not yet implemented (and 5 more errors)",
145+
"v3": "extract error: keyword \"$anchor\" not yet implemented (and 5 more errors)"
146146
},
147147
"tests": [
148148
{

encoding/jsonschema/testdata/external/tests/draft2020-12/dynamicRef.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
}
6464
},
6565
"skip": {
66-
"v2": "extract error: keyword \"$dynamicRef\" not yet implemented (and 1 more errors)",
67-
"v3": "extract error: keyword \"$dynamicRef\" not yet implemented (and 1 more errors)"
66+
"v2": "extract error: keyword \"$dynamicRef\" not yet implemented (and 3 more errors)",
67+
"v3": "extract error: keyword \"$dynamicRef\" not yet implemented (and 3 more errors)"
6868
},
6969
"tests": [
7070
{
@@ -343,8 +343,8 @@
343343
}
344344
},
345345
"skip": {
346-
"v2": "extract error: keyword \"$dynamicRef\" not yet implemented (and 3 more errors)",
347-
"v3": "extract error: keyword \"$dynamicRef\" not yet implemented (and 3 more errors)"
346+
"v2": "extract error: keyword \"$anchor\" not yet implemented (and 5 more errors)",
347+
"v3": "extract error: keyword \"$anchor\" not yet implemented (and 5 more errors)"
348348
},
349349
"tests": [
350350
{
@@ -388,8 +388,8 @@
388388
}
389389
},
390390
"skip": {
391-
"v2": "extract error: keyword \"$dynamicAnchor\" not yet implemented (and 3 more errors)",
392-
"v3": "extract error: keyword \"$dynamicAnchor\" not yet implemented (and 3 more errors)"
391+
"v2": "extract error: keyword \"$dynamicAnchor\" not yet implemented (and 5 more errors)",
392+
"v3": "extract error: keyword \"$dynamicAnchor\" not yet implemented (and 5 more errors)"
393393
},
394394
"tests": [
395395
{
@@ -434,8 +434,8 @@
434434
}
435435
},
436436
"skip": {
437-
"v2": "extract error: keyword \"$dynamicAnchor\" not yet implemented (and 5 more errors)",
438-
"v3": "extract error: keyword \"$dynamicAnchor\" not yet implemented (and 5 more errors)"
437+
"v2": "extract error: keyword \"$dynamicAnchor\" not yet implemented (and 7 more errors)",
438+
"v3": "extract error: keyword \"$dynamicAnchor\" not yet implemented (and 7 more errors)"
439439
},
440440
"tests": [
441441
{
@@ -562,8 +562,8 @@
562562
}
563563
},
564564
"skip": {
565-
"v2": "extract error: keyword \"$dynamicAnchor\" not yet implemented (and 3 more errors)",
566-
"v3": "extract error: keyword \"$dynamicAnchor\" not yet implemented (and 3 more errors)"
565+
"v2": "extract error: keyword \"$dynamicAnchor\" not yet implemented (and 5 more errors)",
566+
"v3": "extract error: keyword \"$dynamicAnchor\" not yet implemented (and 5 more errors)"
567567
},
568568
"tests": [
569569
{

encoding/jsonschema/testdata/external/tests/draft2020-12/optional/anchor.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
]
3535
},
3636
"skip": {
37-
"v2": "extract error: cannot determine CUE location for JSON Schema location id=https://cue.jsonschema.invalid#my_anchor: anchors (my_anchor) not supported (and 1 more errors)",
38-
"v3": "extract error: cannot determine CUE location for JSON Schema location id=https://cue.jsonschema.invalid#my_anchor: anchors (my_anchor) not supported (and 1 more errors)"
37+
"v2": "extract error: keyword \"$anchor\" not yet implemented (and 3 more errors)",
38+
"v3": "extract error: keyword \"$anchor\" not yet implemented (and 3 more errors)"
3939
},
4040
"tests": [
4141
{

encoding/jsonschema/testdata/external/tests/draft2020-12/ref.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -818,8 +818,8 @@
818818
}
819819
},
820820
"skip": {
821-
"v2": "extract error: cannot determine CUE location for JSON Schema location id=https://example.com/draft2020-12/ref-and-id2/base.json#bigint: anchors (bigint) not supported (and 1 more errors)",
822-
"v3": "extract error: cannot determine CUE location for JSON Schema location id=https://example.com/draft2020-12/ref-and-id2/base.json#bigint: anchors (bigint) not supported (and 1 more errors)"
821+
"v2": "extract error: cannot determine CUE location for JSON Schema location id=https://example.com/draft2020-12/ref-and-id2/base.json#bigint: anchors (bigint) not supported (and 5 more errors)",
822+
"v3": "extract error: cannot determine CUE location for JSON Schema location id=https://example.com/draft2020-12/ref-and-id2/base.json#bigint: anchors (bigint) not supported (and 5 more errors)"
823823
},
824824
"tests": [
825825
{
@@ -1059,8 +1059,8 @@
10591059
}
10601060
},
10611061
"skip": {
1062-
"v2": "extract error: cannot determine CUE location for JSON Schema location id=urn:uuid:deadbeef-1234-ff00-00ff-4321feebdaed#something: anchors (something) not supported (and 1 more errors)",
1063-
"v3": "extract error: cannot determine CUE location for JSON Schema location id=urn:uuid:deadbeef-1234-ff00-00ff-4321feebdaed#something: anchors (something) not supported (and 1 more errors)"
1062+
"v2": "extract error: cannot determine CUE location for JSON Schema location id=urn:uuid:deadbeef-1234-ff00-00ff-4321feebdaed#something: anchors (something) not supported (and 3 more errors)",
1063+
"v3": "extract error: cannot determine CUE location for JSON Schema location id=urn:uuid:deadbeef-1234-ff00-00ff-4321feebdaed#something: anchors (something) not supported (and 3 more errors)"
10641064
},
10651065
"tests": [
10661066
{

0 commit comments

Comments
 (0)