schema.json 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. {
  2. "$schema": "https://json-schema.org/draft/2019-09/schema",
  3. "$id": "https://json-schema.org/draft/2019-09/schema",
  4. "$vocabulary": {
  5. "https://json-schema.org/draft/2019-09/vocab/core": true,
  6. "https://json-schema.org/draft/2019-09/vocab/applicator": true,
  7. "https://json-schema.org/draft/2019-09/vocab/validation": true,
  8. "https://json-schema.org/draft/2019-09/vocab/meta-data": true,
  9. "https://json-schema.org/draft/2019-09/vocab/format": false,
  10. "https://json-schema.org/draft/2019-09/vocab/content": true
  11. },
  12. "$recursiveAnchor": true,
  13. "title": "Core and Validation specifications meta-schema",
  14. "allOf": [
  15. {"$ref": "meta/core"},
  16. {"$ref": "meta/applicator"},
  17. {"$ref": "meta/validation"},
  18. {"$ref": "meta/meta-data"},
  19. {"$ref": "meta/format"},
  20. {"$ref": "meta/content"}
  21. ],
  22. "type": ["object", "boolean"],
  23. "properties": {
  24. "definitions": {
  25. "$comment": "While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",
  26. "type": "object",
  27. "additionalProperties": {"$recursiveRef": "#"},
  28. "default": {}
  29. },
  30. "dependencies": {
  31. "$comment": "\"dependencies\" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to \"dependentSchemas\" and \"dependentRequired\"",
  32. "type": "object",
  33. "additionalProperties": {
  34. "anyOf": [{"$recursiveRef": "#"}, {"$ref": "meta/validation#/$defs/stringArray"}]
  35. }
  36. }
  37. }
  38. }