You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
872 B

  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. };