mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-04-23 19:42:23 -06:00
26 lines
586 B
JavaScript
26 lines
586 B
JavaScript
// Standard YAML's JSON schema.
|
|
// http://www.yaml.org/spec/1.2/spec.html#id2803231
|
|
//
|
|
// NOTE: JS-YAML does not support schema-specific tag resolution restrictions.
|
|
// So, this schema is not such strict as defined in the YAML specification.
|
|
// It allows numbers in binary notaion, use `Null` and `NULL` as `null`, etc.
|
|
|
|
|
|
'use strict';
|
|
|
|
|
|
var Schema = require('../schema');
|
|
|
|
|
|
module.exports = new Schema({
|
|
include: [
|
|
require('./failsafe')
|
|
],
|
|
implicit: [
|
|
require('../type/null'),
|
|
require('../type/bool'),
|
|
require('../type/int'),
|
|
require('../type/float')
|
|
]
|
|
});
|