3 var util = require('./_util');
5 module.exports = function defFunc(ajv) {
6 if (ajv.RULES.keywords.switch && ajv.RULES.keywords.if) return;
8 var metaSchemaRef = util.metaSchemaRef(ajv);
10 defFunc.definition = {
11 inline: require('./dotjs/switch'),
26 'continue': { type: 'boolean' }
28 additionalProperties: false,
36 ajv.addKeyword('switch', defFunc.definition);