Initial commit
[yaffs-website] / node_modules / js-yaml / lib / js-yaml / schema / json.js
1 // Standard YAML's JSON schema.
2 // http://www.yaml.org/spec/1.2/spec.html#id2803231
3 //
4 // NOTE: JS-YAML does not support schema-specific tag resolution restrictions.
5 // So, this schema is not such strict as defined in the YAML specification.
6 // It allows numbers in binary notaion, use `Null` and `NULL` as `null`, etc.
7
8
9 'use strict';
10
11
12 var Schema = require('../schema');
13
14
15 module.exports = new Schema({
16   include: [
17     require('./failsafe')
18   ],
19   implicit: [
20     require('../type/null'),
21     require('../type/bool'),
22     require('../type/int'),
23     require('../type/float')
24   ]
25 });