@hyperjump/json-schema 1.16.4 → 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.
Files changed (72) hide show
  1. package/README.md +105 -16
  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/index.js +6 -2
  14. package/formats/handlers/date-time.js +7 -0
  15. package/formats/handlers/date.js +7 -0
  16. package/formats/handlers/draft-04/hostname.js +7 -0
  17. package/formats/handlers/duration.js +7 -0
  18. package/formats/handlers/email.js +7 -0
  19. package/formats/handlers/hostname.js +7 -0
  20. package/formats/handlers/idn-email.js +7 -0
  21. package/formats/handlers/idn-hostname.js +7 -0
  22. package/formats/handlers/ipv4.js +7 -0
  23. package/formats/handlers/ipv6.js +7 -0
  24. package/formats/handlers/iri-reference.js +7 -0
  25. package/formats/handlers/iri.js +7 -0
  26. package/formats/handlers/json-pointer.js +7 -0
  27. package/formats/handlers/regex.js +7 -0
  28. package/formats/handlers/relative-json-pointer.js +7 -0
  29. package/formats/handlers/time.js +7 -0
  30. package/formats/handlers/uri-reference.js +7 -0
  31. package/formats/handlers/uri-template.js +7 -0
  32. package/formats/handlers/uri.js +7 -0
  33. package/formats/handlers/uuid.js +7 -0
  34. package/formats/index.js +12 -0
  35. package/formats/lite.js +43 -0
  36. package/lib/configuration.js +7 -2
  37. package/lib/experimental.d.ts +8 -0
  38. package/lib/experimental.js +1 -0
  39. package/lib/keywords/dynamicRef.js +1 -1
  40. package/lib/keywords/format.js +35 -2
  41. package/lib/keywords.js +25 -3
  42. package/openapi-3-0/index.js +1 -1
  43. package/openapi-3-1/index.d.ts +66 -17
  44. package/openapi-3-1/schema-draft-2019-09.js +1 -1
  45. package/openapi-3-1/schema-draft-2020-12.js +1 -1
  46. package/openapi-3-2/dialect/base.js +2 -2
  47. package/openapi-3-2/index.d.ts +326 -2
  48. package/openapi-3-2/index.js +2 -4
  49. package/openapi-3-2/meta/base.js +30 -5
  50. package/openapi-3-2/schema-base.js +2 -3
  51. package/openapi-3-2/schema-draft-04.js +2 -2
  52. package/openapi-3-2/schema-draft-06.js +2 -2
  53. package/openapi-3-2/schema-draft-07.js +2 -2
  54. package/openapi-3-2/schema-draft-2019-09.js +3 -3
  55. package/openapi-3-2/schema-draft-2020-12.js +3 -3
  56. package/openapi-3-2/schema.js +1661 -1
  57. package/package.json +9 -5
  58. package/v1/extension-tests/conditional.json +289 -0
  59. package/v1/extension-tests/itemPattern.json +462 -0
  60. package/{stable → v1}/index.d.ts +2 -2
  61. package/{stable → v1}/index.js +25 -30
  62. package/{stable → v1}/meta/applicator.js +1 -3
  63. package/{stable → v1}/meta/content.js +1 -3
  64. package/{stable → v1}/meta/core.js +5 -4
  65. package/v1/meta/format.js +8 -0
  66. package/{stable → v1}/meta/meta-data.js +1 -3
  67. package/{stable → v1}/meta/unevaluated.js +1 -3
  68. package/{stable → v1}/meta/validation.js +1 -3
  69. package/v1/schema.js +24 -0
  70. package/stable/meta/format-annotation.js +0 -10
  71. package/stable/meta/format-assertion.js +0 -10
  72. 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
- };