@hyperjump/json-schema 1.16.5 → 1.17.1

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.
Files changed (61) hide show
  1. package/README.md +99 -11
  2. package/annotations/annotated-instance.js +1 -1
  3. package/draft-04/format.js +31 -0
  4. package/draft-04/index.js +3 -1
  5. package/draft-06/format.js +34 -0
  6. package/draft-06/index.js +3 -1
  7. package/draft-07/format.js +42 -0
  8. package/draft-07/index.js +3 -1
  9. package/draft-2019-09/format-assertion.js +44 -0
  10. package/draft-2019-09/format.js +44 -0
  11. package/draft-2019-09/index.js +5 -1
  12. package/draft-2020-12/format-assertion.js +43 -0
  13. package/draft-2020-12/format.js +44 -0
  14. package/draft-2020-12/index.js +6 -2
  15. package/formats/handlers/date-time.js +7 -0
  16. package/formats/handlers/date.js +7 -0
  17. package/formats/handlers/draft-04/hostname.js +7 -0
  18. package/formats/handlers/duration.js +7 -0
  19. package/formats/handlers/email.js +7 -0
  20. package/formats/handlers/hostname.js +7 -0
  21. package/formats/handlers/idn-email.js +7 -0
  22. package/formats/handlers/idn-hostname.js +7 -0
  23. package/formats/handlers/ipv4.js +7 -0
  24. package/formats/handlers/ipv6.js +7 -0
  25. package/formats/handlers/iri-reference.js +7 -0
  26. package/formats/handlers/iri.js +7 -0
  27. package/formats/handlers/json-pointer.js +7 -0
  28. package/formats/handlers/regex.js +7 -0
  29. package/formats/handlers/relative-json-pointer.js +7 -0
  30. package/formats/handlers/time.js +7 -0
  31. package/formats/handlers/uri-reference.js +7 -0
  32. package/formats/handlers/uri-template.js +7 -0
  33. package/formats/handlers/uri.js +7 -0
  34. package/formats/handlers/uuid.js +7 -0
  35. package/formats/index.js +11 -0
  36. package/formats/lite.js +38 -0
  37. package/lib/configuration.js +7 -2
  38. package/lib/experimental.d.ts +11 -2
  39. package/lib/experimental.js +1 -0
  40. package/lib/index.d.ts +2 -0
  41. package/lib/index.js +3 -1
  42. package/lib/keywords/dynamicRef.js +1 -1
  43. package/lib/keywords/format.js +35 -2
  44. package/lib/keywords.js +25 -3
  45. package/openapi-3-0/index.js +1 -1
  46. package/package.json +8 -5
  47. package/v1/extension-tests/conditional.json +289 -0
  48. package/v1/extension-tests/itemPattern.json +462 -0
  49. package/{stable → v1}/index.d.ts +2 -2
  50. package/{stable → v1}/index.js +25 -30
  51. package/{stable → v1}/meta/applicator.js +1 -3
  52. package/{stable → v1}/meta/content.js +1 -3
  53. package/{stable → v1}/meta/core.js +5 -4
  54. package/v1/meta/format.js +8 -0
  55. package/{stable → v1}/meta/meta-data.js +1 -3
  56. package/{stable → v1}/meta/unevaluated.js +1 -3
  57. package/{stable → v1}/meta/validation.js +1 -3
  58. package/v1/schema.js +24 -0
  59. package/stable/meta/format-annotation.js +0 -10
  60. package/stable/meta/format-assertion.js +0 -10
  61. 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
+ };
@@ -1,10 +0,0 @@
1
- export default {
2
- "$schema": "https://json-schema.org/validation",
3
- "title": "Format vocabulary meta-schema for annotation results",
4
-
5
- "$dynamicAnchor": "meta",
6
-
7
- "properties": {
8
- "format": { "type": "string" }
9
- }
10
- };
@@ -1,10 +0,0 @@
1
- export default {
2
- "$schema": "https://json-schema.org/validation",
3
- "title": "Format vocabulary meta-schema for assertion results",
4
-
5
- "$dynamicAnchor": "meta",
6
-
7
- "properties": {
8
- "format": { "type": "string" }
9
- }
10
- };
@@ -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
- };