Skip to content

Commit 5bcd959

Browse files
committed
Trim simple applicators from basic output
1 parent 080b77e commit 5bcd959

File tree

201 files changed

+59
-1782
lines changed

Some content is hidden

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

201 files changed

+59
-1782
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,12 @@ These are available from the `@hyperjump/json-schema/experimental` export.
530530
the instance value that is being validated and returns whether the
531531
value is valid or not. The other parameters are only needed for
532532
validating sub-schemas.
533+
* simpleApplicator?: boolean
534+
535+
Some applicator keywords just apply schemas and don't do any
536+
validation of its own. In these cases, it isn't helpful to include
537+
them in BASIC output. This flag is used to trim those nodes from the
538+
output.
533539
* collectEvaluatedProperties?: (compiledKeywordValue: any, instance: JsonNode, context: ValidationContext, isTop?: boolean) => Set\<string> | false
534540
535541
If the keyword is an applicator, it will need to implement this

bundle/snapshots/0257ca47cb26d95af6cddee31dc7ad4c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
{
22
"valid": false,
33
"errors": [
4-
{
5-
"keyword": "https://json-schema.org/keyword/unevaluatedProperties",
6-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/unevaluatedProperties",
7-
"instanceLocation": "#"
8-
},
9-
{
10-
"keyword": "https://json-schema.org/keyword/ref",
11-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/unevaluatedProperties/$ref",
12-
"instanceLocation": "#/foo"
13-
},
144
{
155
"keyword": "https://json-schema.org/keyword/type",
166
"absoluteKeywordLocation": "https://bundler.hyperjump.io/string#/type",

bundle/snapshots/05009caa10a942d85c5fe0515b7eb0d9

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
11
{
22
"valid": false,
33
"errors": [
4-
{
5-
"keyword": "https://json-schema.org/keyword/properties",
6-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/properties",
7-
"instanceLocation": "#"
8-
},
9-
{
10-
"keyword": "https://json-schema.org/keyword/ref",
11-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/properties/foo/$ref",
12-
"instanceLocation": "#/foo"
13-
},
14-
{
15-
"keyword": "https://json-schema.org/keyword/ref",
16-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/$defs/string/$ref",
17-
"instanceLocation": "#/foo"
18-
},
194
{
205
"keyword": "https://json-schema.org/keyword/type",
216
"absoluteKeywordLocation": "https://bundler.hyperjump.io/string#/type",

bundle/snapshots/09b5adea8278afad071a2d7b5ac4fc81

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
{
22
"valid": false,
33
"errors": [
4-
{
5-
"keyword": "https://json-schema.org/keyword/patternProperties",
6-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/patternProperties",
7-
"instanceLocation": "#"
8-
},
94
{
105
"keyword": "https://json-schema.org/keyword/type",
116
"absoluteKeywordLocation": "https://bundler.hyperjump.io/string#/type",

bundle/snapshots/09ecbfa9dbd81a38f0984dba2c5dba2f

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
11
{
22
"valid": false,
33
"errors": [
4-
{
5-
"keyword": "https://json-schema.org/keyword/properties",
6-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/properties",
7-
"instanceLocation": "#"
8-
},
9-
{
10-
"keyword": "https://json-schema.org/keyword/ref",
11-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/properties/foo/$ref",
12-
"instanceLocation": "#/foo"
13-
},
14-
{
15-
"keyword": "https://json-schema.org/keyword/ref",
16-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/$defs/string/$ref",
17-
"instanceLocation": "#/foo"
18-
},
194
{
205
"keyword": "https://json-schema.org/keyword/type",
216
"absoluteKeywordLocation": "https://bundler.hyperjump.io/string#/type",

bundle/snapshots/0a5429dfef8968c6bd88ac3922f55cbc

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
{
22
"valid": false,
33
"errors": [
4-
{
5-
"keyword": "https://json-schema.org/keyword/items",
6-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/items",
7-
"instanceLocation": "#"
8-
},
9-
{
10-
"keyword": "https://json-schema.org/keyword/ref",
11-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/items/$ref",
12-
"instanceLocation": "#/0"
13-
},
144
{
155
"keyword": "https://json-schema.org/keyword/type",
166
"absoluteKeywordLocation": "https://bundler.hyperjump.io/string#/type",

bundle/snapshots/0ada8a1e7e71d8771e5fefbf455bcb0d

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
{
22
"valid": false,
33
"errors": [
4-
{
5-
"keyword": "https://json-schema.org/keyword/properties",
6-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/properties",
7-
"instanceLocation": "#"
8-
},
94
{
105
"keyword": "https://json-schema.org/keyword/type",
116
"absoluteKeywordLocation": "https://bundler.hyperjump.io/string#/type",

bundle/snapshots/0ce5981a970aa2c374dc9921ca3e3745

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
{
22
"valid": false,
33
"errors": [
4-
{
5-
"keyword": "https://json-schema.org/keyword/additionalProperties",
6-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/additionalProperties",
7-
"instanceLocation": "#"
8-
},
94
{
105
"keyword": "https://json-schema.org/keyword/type",
116
"absoluteKeywordLocation": "https://bundler.hyperjump.io/string#/type",

bundle/snapshots/0dcb5cd590f2b70cd9ddbc0ad8f045ce

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
{
22
"valid": false,
33
"errors": [
4-
{
5-
"keyword": "https://json-schema.org/keyword/then",
6-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/then",
7-
"instanceLocation": "#"
8-
},
94
{
105
"keyword": "https://json-schema.org/keyword/maxLength",
116
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/then/maxLength",

bundle/snapshots/0e5d4e29ac0020de6434c0e6250738ec

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
11
{
22
"valid": false,
33
"errors": [
4-
{
5-
"keyword": "https://json-schema.org/keyword/properties",
6-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/properties",
7-
"instanceLocation": "#"
8-
},
9-
{
10-
"keyword": "https://json-schema.org/keyword/ref",
11-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/properties/foo/$ref",
12-
"instanceLocation": "#/foo"
13-
},
14-
{
15-
"keyword": "https://json-schema.org/keyword/ref",
16-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/$defs/string/$ref",
17-
"instanceLocation": "#/foo"
18-
},
194
{
205
"keyword": "https://json-schema.org/keyword/type",
216
"absoluteKeywordLocation": "https://bundler.hyperjump.io/string#/type",

bundle/snapshots/114681e245a0b42f2313fc2e0315a1e7

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
{
22
"valid": false,
33
"errors": [
4-
{
5-
"keyword": "https://json-schema.org/keyword/allOf",
6-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/allOf",
7-
"instanceLocation": "#"
8-
},
94
{
105
"keyword": "https://json-schema.org/keyword/type",
116
"absoluteKeywordLocation": "https://bundler.hyperjump.io/string#/type",

bundle/snapshots/120a1e86ded8c56db704fe602846c6b8

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
{
22
"valid": false,
33
"errors": [
4-
{
5-
"keyword": "https://json-schema.org/keyword/properties",
6-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/properties",
7-
"instanceLocation": "#"
8-
},
94
{
105
"keyword": "https://json-schema.org/keyword/type",
116
"absoluteKeywordLocation": "https://bundler.hyperjump.io/string#/type",

bundle/snapshots/12e5d143b07d6a7353a00207cb117789

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
{
22
"valid": false,
33
"errors": [
4-
{
5-
"keyword": "https://json-schema.org/keyword/properties",
6-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/properties",
7-
"instanceLocation": "#"
8-
},
9-
{
10-
"keyword": "https://json-schema.org/keyword/ref",
11-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/properties/foo/$ref",
12-
"instanceLocation": "#/foo"
13-
},
144
{
155
"keyword": "https://json-schema.org/keyword/type",
166
"absoluteKeywordLocation": "https://bundler.hyperjump.io/string#/type",

bundle/snapshots/1398f4f3aaf34a96688a7768cbf41ff0

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,6 @@
11
{
22
"valid": false,
33
"errors": [
4-
{
5-
"keyword": "https://json-schema.org/keyword/properties",
6-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/properties",
7-
"instanceLocation": "#"
8-
},
9-
{
10-
"keyword": "https://json-schema.org/keyword/ref",
11-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/properties/tree/$ref",
12-
"instanceLocation": "#/tree"
13-
},
14-
{
15-
"keyword": "https://json-schema.org/keyword/properties",
16-
"absoluteKeywordLocation": "https://test.json-schema.org/tree#/properties",
17-
"instanceLocation": "#/tree"
18-
},
19-
{
20-
"keyword": "https://json-schema.org/keyword/ref",
21-
"absoluteKeywordLocation": "https://test.json-schema.org/tree#/properties/branch/$ref",
22-
"instanceLocation": "#/tree/branch"
23-
},
244
{
255
"keyword": "https://json-schema.org/keyword/type",
266
"absoluteKeywordLocation": "https://test.json-schema.org/tree#/type",

bundle/snapshots/145eeaee28b6389d709d2c98e008a0da

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
{
22
"valid": false,
33
"errors": [
4-
{
5-
"keyword": "https://json-schema.org/keyword/properties",
6-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/properties",
7-
"instanceLocation": "#"
8-
},
9-
{
10-
"keyword": "https://json-schema.org/keyword/ref",
11-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/properties/foo/$ref",
12-
"instanceLocation": "#/foo"
13-
},
144
{
155
"keyword": "https://json-schema.org/keyword/type",
166
"absoluteKeywordLocation": "https://bundler.hyperjump.io/string#/type",

bundle/snapshots/14a1fe027d91308e0ad53459d6d36724

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
{
22
"valid": false,
33
"errors": [
4-
{
5-
"keyword": "https://json-schema.org/keyword/items",
6-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/items",
7-
"instanceLocation": "#"
8-
},
9-
{
10-
"keyword": "https://json-schema.org/keyword/ref",
11-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/items/$ref",
12-
"instanceLocation": "#/0"
13-
},
144
{
155
"keyword": "https://json-schema.org/keyword/type",
166
"absoluteKeywordLocation": "https://bundler.hyperjump.io/string#/type",

bundle/snapshots/16362d4681a7fc02b09b9af24ae23e82

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
{
22
"valid": false,
33
"errors": [
4-
{
5-
"keyword": "https://json-schema.org/keyword/unevaluatedItems",
6-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/unevaluatedItems",
7-
"instanceLocation": "#"
8-
},
9-
{
10-
"keyword": "https://json-schema.org/keyword/ref",
11-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/unevaluatedItems/$ref",
12-
"instanceLocation": "#/0"
13-
},
144
{
155
"keyword": "https://json-schema.org/keyword/type",
166
"absoluteKeywordLocation": "https://bundler.hyperjump.io/string#/type",

bundle/snapshots/164201e3f9fb61bd594cc5f47cb94d55

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
{
22
"valid": false,
33
"errors": [
4-
{
5-
"keyword": "https://json-schema.org/keyword/then",
6-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/then",
7-
"instanceLocation": "#"
8-
},
94
{
105
"keyword": "https://json-schema.org/keyword/maxLength",
116
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/then/maxLength",

bundle/snapshots/19c55f511be1beb3e693bac16d756f4a

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
11
{
22
"valid": false,
33
"errors": [
4-
{
5-
"keyword": "https://json-schema.org/keyword/properties",
6-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/properties",
7-
"instanceLocation": "#"
8-
},
9-
{
10-
"keyword": "https://json-schema.org/keyword/ref",
11-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/properties/tree/$ref",
12-
"instanceLocation": "#/tree"
13-
},
14-
{
15-
"keyword": "https://json-schema.org/keyword/properties",
16-
"absoluteKeywordLocation": "https://test.json-schema.org/tree#/properties",
17-
"instanceLocation": "#/tree"
18-
},
194
{
205
"keyword": "https://json-schema.org/keyword/draft-2020-12/dynamicRef",
216
"absoluteKeywordLocation": "https://test.json-schema.org/tree#/properties/branch/$recursiveRef",

bundle/snapshots/1a625d786c7bb443da8af47f719908da

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
{
22
"valid": false,
33
"errors": [
4-
{
5-
"keyword": "https://json-schema.org/keyword/allOf",
6-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/allOf",
7-
"instanceLocation": "#"
8-
},
9-
{
10-
"keyword": "https://json-schema.org/keyword/ref",
11-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/allOf/0/$ref",
12-
"instanceLocation": "#"
13-
},
144
{
155
"keyword": "https://json-schema.org/keyword/type",
166
"absoluteKeywordLocation": "https://bundler.hyperjump.io/string#/type",

bundle/snapshots/1b4dbf42e23483d5bd7ca98b00aaaee0

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
{
22
"valid": false,
33
"errors": [
4-
{
5-
"keyword": "https://json-schema.org/keyword/allOf",
6-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/allOf",
7-
"instanceLocation": "#"
8-
},
9-
{
10-
"keyword": "https://json-schema.org/keyword/ref",
11-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/allOf/0/$ref",
12-
"instanceLocation": "#"
13-
},
144
{
155
"keyword": "https://json-schema.org/keyword/type",
166
"absoluteKeywordLocation": "https://bundler.hyperjump.io/string#/type",

bundle/snapshots/1b50751e8a7dafa55c763c9aec465703

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
{
22
"valid": false,
33
"errors": [
4-
{
5-
"keyword": "https://json-schema.org/keyword/properties",
6-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/properties",
7-
"instanceLocation": "#"
8-
},
9-
{
10-
"keyword": "https://json-schema.org/keyword/ref",
11-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/properties/foo/$ref",
12-
"instanceLocation": "#/foo"
13-
},
144
{
155
"keyword": "https://json-schema.org/keyword/type",
166
"absoluteKeywordLocation": "https://bundler.hyperjump.io/string#/type",

bundle/snapshots/1b9f06a2dd38791a0f07e262b40986c0

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
{
22
"valid": false,
33
"errors": [
4-
{
5-
"keyword": "https://json-schema.org/keyword/properties",
6-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/properties",
7-
"instanceLocation": "#"
8-
},
94
{
105
"keyword": "https://json-schema.org/keyword/type",
116
"absoluteKeywordLocation": "https://bundler.hyperjump.io/number#/type",

bundle/snapshots/1c5b525dd9558bb3bd0db3a72cda5e5e

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
{
22
"valid": false,
33
"errors": [
4-
{
5-
"keyword": "https://json-schema.org/keyword/allOf",
6-
"absoluteKeywordLocation": "https://bundler.hyperjump.io/main#/allOf",
7-
"instanceLocation": "#"
8-
},
94
{
105
"keyword": "https://json-schema.org/keyword/type",
116
"absoluteKeywordLocation": "https://bundler.hyperjump.io/string#/type",

0 commit comments

Comments
 (0)