Skip to content

Commit 05b1c5c

Browse files
committed
Add missing simpleApplicator flags to draft-specific keywords
1 parent 38e7159 commit 05b1c5c

File tree

334 files changed

+3256
-1862
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

334 files changed

+3256
-1862
lines changed

bundle/generate-snapshots.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { writeFile, mkdir, rm } from "node:fs/promises";
22
import { isCompatible, md5, loadSchemas, testSuite, unloadSchemas } from "./test-utils.js";
3-
import { BASIC, compile, getSchema, Validation } from "../lib/experimental.js";
3+
import { DETAILED, compile, getSchema, Validation } from "../lib/experimental.js";
44
import "../stable/index.js";
55
import "../draft-2020-12/index.js";
66
import "../draft-2019-09/index.js";
@@ -30,7 +30,7 @@ const snapshotGenerator = async (version, dialect) => {
3030
const instance = Instance.fromJs(test.instance);
3131
const errors = [];
3232
const annotations = [];
33-
const context = { ast, dynamicAnchors: {}, errors, annotations, outputFormat: BASIC };
33+
const context = { ast, dynamicAnchors: {}, errors, annotations, outputFormat: DETAILED };
3434
const valid = Validation.interpret(schemaUri, instance, context);
3535

3636
const expectedOutput = { valid, errors, annotations };
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
{
22
"valid": true,
33
"errors": [],
4-
"annotations": [
5-
{
6-
"keyword": "https://json-schema.org/keyword/title",
7-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/string#/title",
8-
"instanceLocation": "#",
9-
"annotation": "String"
10-
}
11-
]
4+
"annotations": []
125
}

bundle/snapshots/0257ca47cb26d95af6cddee31dc7ad4c

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,23 @@
22
"valid": false,
33
"errors": [
44
{
5-
"keyword": "https://json-schema.org/keyword/type",
6-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/string#/type",
7-
"instanceLocation": "#/foo"
5+
"keyword": "https://json-schema.org/keyword/unevaluatedProperties",
6+
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/unevaluatedProperties",
7+
"instanceLocation": "#",
8+
"errors": [
9+
{
10+
"keyword": "https://json-schema.org/keyword/ref",
11+
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/unevaluatedProperties/$ref",
12+
"instanceLocation": "#/foo",
13+
"errors": [
14+
{
15+
"keyword": "https://json-schema.org/keyword/type",
16+
"absoluteKeywordLocation": "https://bundler.hyperjump.io/string#/type",
17+
"instanceLocation": "#/foo"
18+
}
19+
]
20+
}
21+
]
822
}
923
],
1024
"annotations": []

bundle/snapshots/05009caa10a942d85c5fe0515b7eb0d9

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,30 @@
22
"valid": false,
33
"errors": [
44
{
5-
"keyword": "https://json-schema.org/keyword/type",
6-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/string#/type",
7-
"instanceLocation": "#/foo"
5+
"keyword": "https://json-schema.org/keyword/properties",
6+
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/properties",
7+
"instanceLocation": "#",
8+
"errors": [
9+
{
10+
"keyword": "https://json-schema.org/keyword/ref",
11+
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/properties/foo/$ref",
12+
"instanceLocation": "#/foo",
13+
"errors": [
14+
{
15+
"keyword": "https://json-schema.org/keyword/ref",
16+
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/$defs/string/$ref",
17+
"instanceLocation": "#/foo",
18+
"errors": [
19+
{
20+
"keyword": "https://json-schema.org/keyword/type",
21+
"absoluteKeywordLocation": "https://bundler.hyperjump.io/string#/type",
22+
"instanceLocation": "#/foo"
23+
}
24+
]
25+
}
26+
]
27+
}
28+
]
829
}
930
],
1031
"annotations": []
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
{
22
"valid": true,
33
"errors": [],
4-
"annotations": [
5-
{
6-
"keyword": "https://json-schema.org/keyword/title",
7-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/string#/title",
8-
"instanceLocation": "#/foo",
9-
"annotation": "String"
10-
}
11-
]
4+
"annotations": []
125
}
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
{
22
"valid": true,
33
"errors": [],
4-
"annotations": [
5-
{
6-
"keyword": "https://json-schema.org/keyword/title",
7-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/string#/title",
8-
"instanceLocation": "#/foo",
9-
"annotation": "String"
10-
}
11-
]
4+
"annotations": []
125
}

bundle/snapshots/09b5adea8278afad071a2d7b5ac4fc81

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,16 @@
22
"valid": false,
33
"errors": [
44
{
5-
"keyword": "https://json-schema.org/keyword/type",
6-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/string#/type",
7-
"instanceLocation": "#/foo"
5+
"keyword": "https://json-schema.org/keyword/patternProperties",
6+
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/patternProperties",
7+
"instanceLocation": "#",
8+
"errors": [
9+
{
10+
"keyword": "https://json-schema.org/keyword/type",
11+
"absoluteKeywordLocation": "https://bundler.hyperjump.io/string#/type",
12+
"instanceLocation": "#/foo"
13+
}
14+
]
815
}
916
],
1017
"annotations": []

bundle/snapshots/09ecbfa9dbd81a38f0984dba2c5dba2f

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,30 @@
22
"valid": false,
33
"errors": [
44
{
5-
"keyword": "https://json-schema.org/keyword/type",
6-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/string#/type",
7-
"instanceLocation": "#/foo"
5+
"keyword": "https://json-schema.org/keyword/properties",
6+
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/properties",
7+
"instanceLocation": "#",
8+
"errors": [
9+
{
10+
"keyword": "https://json-schema.org/keyword/ref",
11+
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/properties/foo/$ref",
12+
"instanceLocation": "#/foo",
13+
"errors": [
14+
{
15+
"keyword": "https://json-schema.org/keyword/ref",
16+
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/$defs/string/$ref",
17+
"instanceLocation": "#/foo",
18+
"errors": [
19+
{
20+
"keyword": "https://json-schema.org/keyword/type",
21+
"absoluteKeywordLocation": "https://bundler.hyperjump.io/string#/type",
22+
"instanceLocation": "#/foo"
23+
}
24+
]
25+
}
26+
]
27+
}
28+
]
829
}
930
],
1031
"annotations": []

bundle/snapshots/0a5429dfef8968c6bd88ac3922f55cbc

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,23 @@
22
"valid": false,
33
"errors": [
44
{
5-
"keyword": "https://json-schema.org/keyword/type",
6-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/string#/type",
7-
"instanceLocation": "#/0"
5+
"keyword": "https://json-schema.org/keyword/items",
6+
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/items",
7+
"instanceLocation": "#",
8+
"errors": [
9+
{
10+
"keyword": "https://json-schema.org/keyword/ref",
11+
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/items/$ref",
12+
"instanceLocation": "#/0",
13+
"errors": [
14+
{
15+
"keyword": "https://json-schema.org/keyword/type",
16+
"absoluteKeywordLocation": "https://bundler.hyperjump.io/string#/type",
17+
"instanceLocation": "#/0"
18+
}
19+
]
20+
}
21+
]
822
}
923
],
1024
"annotations": []

bundle/snapshots/0ada8a1e7e71d8771e5fefbf455bcb0d

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,16 @@
22
"valid": false,
33
"errors": [
44
{
5-
"keyword": "https://json-schema.org/keyword/type",
6-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/string#/type",
7-
"instanceLocation": "#/foo"
5+
"keyword": "https://json-schema.org/keyword/properties",
6+
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/properties",
7+
"instanceLocation": "#",
8+
"errors": [
9+
{
10+
"keyword": "https://json-schema.org/keyword/type",
11+
"absoluteKeywordLocation": "https://bundler.hyperjump.io/string#/type",
12+
"instanceLocation": "#/foo"
13+
}
14+
]
815
}
916
],
1017
"annotations": []

0 commit comments

Comments
 (0)