default_safe.js 601 B

12345678910111213141516171819202122232425262728
  1. // JS-YAML's default schema for `safeLoad` function.
  2. // It is not described in the YAML specification.
  3. //
  4. // This schema is based on standard YAML's Core schema and includes most of
  5. // extra types described at YAML tag repository. (http://yaml.org/type/)
  6. 'use strict';
  7. var Schema = require('../schema');
  8. module.exports = new Schema({
  9. include: [
  10. require('./core')
  11. ],
  12. implicit: [
  13. require('../type/timestamp'),
  14. require('../type/merge')
  15. ],
  16. explicit: [
  17. require('../type/binary'),
  18. require('../type/omap'),
  19. require('../type/pairs'),
  20. require('../type/set')
  21. ]
  22. });