definition_schema.js 872 B

12345678910111213141516171819202122232425262728293031323334353637
  1. 'use strict';
  2. var metaSchema = require('./refs/json-schema-draft-07.json');
  3. module.exports = {
  4. $id: 'https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js',
  5. definitions: {
  6. simpleTypes: metaSchema.definitions.simpleTypes
  7. },
  8. type: 'object',
  9. dependencies: {
  10. schema: ['validate'],
  11. $data: ['validate'],
  12. statements: ['inline'],
  13. valid: {not: {required: ['macro']}}
  14. },
  15. properties: {
  16. type: metaSchema.properties.type,
  17. schema: {type: 'boolean'},
  18. statements: {type: 'boolean'},
  19. dependencies: {
  20. type: 'array',
  21. items: {type: 'string'}
  22. },
  23. metaSchema: {type: 'object'},
  24. modifying: {type: 'boolean'},
  25. valid: {type: 'boolean'},
  26. $data: {type: 'boolean'},
  27. async: {type: 'boolean'},
  28. errors: {
  29. anyOf: [
  30. {type: 'boolean'},
  31. {const: 'full'}
  32. ]
  33. }
  34. }
  35. };