@hyperjump/json-schema 1.16.5 → 1.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +100 -11
- package/annotations/annotated-instance.js +1 -1
- package/draft-04/format.js +31 -0
- package/draft-04/index.js +3 -1
- package/draft-06/format.js +34 -0
- package/draft-06/index.js +3 -1
- package/draft-07/format.js +42 -0
- package/draft-07/index.js +3 -1
- package/draft-2019-09/format-assertion.js +44 -0
- package/draft-2019-09/format.js +44 -0
- package/draft-2019-09/index.js +5 -1
- package/draft-2020-12/format-assertion.js +43 -0
- package/draft-2020-12/index.js +6 -2
- package/formats/handlers/date-time.js +7 -0
- package/formats/handlers/date.js +7 -0
- package/formats/handlers/draft-04/hostname.js +7 -0
- package/formats/handlers/duration.js +7 -0
- package/formats/handlers/email.js +7 -0
- package/formats/handlers/hostname.js +7 -0
- package/formats/handlers/idn-email.js +7 -0
- package/formats/handlers/idn-hostname.js +7 -0
- package/formats/handlers/ipv4.js +7 -0
- package/formats/handlers/ipv6.js +7 -0
- package/formats/handlers/iri-reference.js +7 -0
- package/formats/handlers/iri.js +7 -0
- package/formats/handlers/json-pointer.js +7 -0
- package/formats/handlers/regex.js +7 -0
- package/formats/handlers/relative-json-pointer.js +7 -0
- package/formats/handlers/time.js +7 -0
- package/formats/handlers/uri-reference.js +7 -0
- package/formats/handlers/uri-template.js +7 -0
- package/formats/handlers/uri.js +7 -0
- package/formats/handlers/uuid.js +7 -0
- package/formats/index.js +12 -0
- package/formats/lite.js +43 -0
- package/lib/configuration.js +7 -2
- package/lib/experimental.d.ts +8 -0
- package/lib/experimental.js +1 -0
- package/lib/keywords/dynamicRef.js +1 -1
- package/lib/keywords/format.js +35 -2
- package/lib/keywords.js +25 -3
- package/openapi-3-0/index.js +1 -1
- package/package.json +8 -5
- package/v1/extension-tests/conditional.json +289 -0
- package/v1/extension-tests/itemPattern.json +462 -0
- package/{stable → v1}/index.d.ts +2 -2
- package/{stable → v1}/index.js +25 -30
- package/{stable → v1}/meta/applicator.js +1 -3
- package/{stable → v1}/meta/content.js +1 -3
- package/{stable → v1}/meta/core.js +5 -4
- package/v1/meta/format.js +8 -0
- package/{stable → v1}/meta/meta-data.js +1 -3
- package/{stable → v1}/meta/unevaluated.js +1 -3
- package/{stable → v1}/meta/validation.js +1 -3
- package/v1/schema.js +24 -0
- package/stable/meta/format-annotation.js +0 -10
- package/stable/meta/format-assertion.js +0 -10
- package/stable/validation.js +0 -24
package/v1/schema.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"$schema": "https://json-schema.org/v1",
|
|
3
|
+
"$vocabulary": {
|
|
4
|
+
"https://json-schema.org/v1/vocab/core": true,
|
|
5
|
+
"https://json-schema.org/v1/vocab/applicator": true,
|
|
6
|
+
"https://json-schema.org/v1/vocab/unevaluated": true,
|
|
7
|
+
"https://json-schema.org/v1/vocab/validation": true,
|
|
8
|
+
"https://json-schema.org/v1/vocab/meta-data": true,
|
|
9
|
+
"https://json-schema.org/v1/vocab/format": true,
|
|
10
|
+
"https://json-schema.org/v1/vocab/content": true
|
|
11
|
+
},
|
|
12
|
+
"title": "Core and Validation specifications meta-schema",
|
|
13
|
+
|
|
14
|
+
"$dynamicAnchor": "meta",
|
|
15
|
+
|
|
16
|
+
"allOf": [
|
|
17
|
+
{ "$ref": "/v1/meta/core" },
|
|
18
|
+
{ "$ref": "/v1/meta/applicator" },
|
|
19
|
+
{ "$ref": "/v1/meta/validation" },
|
|
20
|
+
{ "$ref": "/v1/meta/meta-data" },
|
|
21
|
+
{ "$ref": "/v1/meta/format" },
|
|
22
|
+
{ "$ref": "/v1/meta/content" }
|
|
23
|
+
]
|
|
24
|
+
};
|
package/stable/validation.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
"$schema": "https://json-schema.org/validation",
|
|
3
|
-
"$vocabulary": {
|
|
4
|
-
"https://json-schema.org/vocab/core": true,
|
|
5
|
-
"https://json-schema.org/vocab/applicator": true,
|
|
6
|
-
"https://json-schema.org/vocab/unevaluated": true,
|
|
7
|
-
"https://json-schema.org/vocab/validation": true,
|
|
8
|
-
"https://json-schema.org/vocab/meta-data": true,
|
|
9
|
-
"https://json-schema.org/vocab/format-annotation": true,
|
|
10
|
-
"https://json-schema.org/vocab/content": true
|
|
11
|
-
},
|
|
12
|
-
"title": "Core and Validation specifications meta-schema",
|
|
13
|
-
|
|
14
|
-
"$dynamicAnchor": "meta",
|
|
15
|
-
|
|
16
|
-
"allOf": [
|
|
17
|
-
{ "$ref": "meta/core" },
|
|
18
|
-
{ "$ref": "meta/applicator" },
|
|
19
|
-
{ "$ref": "meta/validation" },
|
|
20
|
-
{ "$ref": "meta/meta-data" },
|
|
21
|
-
{ "$ref": "meta/format-annotation" },
|
|
22
|
-
{ "$ref": "meta/content" }
|
|
23
|
-
]
|
|
24
|
-
};
|