summaryrefslogtreecommitdiff
path: root/node_modules/ajv-keywords/keywords/switch.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/ajv-keywords/keywords/switch.js')
-rw-r--r--node_modules/ajv-keywords/keywords/switch.js38
1 files changed, 0 insertions, 38 deletions
diff --git a/node_modules/ajv-keywords/keywords/switch.js b/node_modules/ajv-keywords/keywords/switch.js
deleted file mode 100644
index 5b0f3f83..00000000
--- a/node_modules/ajv-keywords/keywords/switch.js
+++ /dev/null
@@ -1,38 +0,0 @@
-'use strict';
-
-var util = require('./_util');
-
-module.exports = function defFunc(ajv) {
- if (ajv.RULES.keywords.switch && ajv.RULES.keywords.if) return;
-
- var metaSchemaRef = util.metaSchemaRef(ajv);
-
- defFunc.definition = {
- inline: require('./dotjs/switch'),
- statements: true,
- errors: 'full',
- metaSchema: {
- type: 'array',
- items: {
- required: [ 'then' ],
- properties: {
- 'if': metaSchemaRef,
- 'then': {
- anyOf: [
- { type: 'boolean' },
- metaSchemaRef
- ]
- },
- 'continue': { type: 'boolean' }
- },
- additionalProperties: false,
- dependencies: {
- 'continue': [ 'if' ]
- }
- }
- }
- };
-
- ajv.addKeyword('switch', defFunc.definition);
- return ajv;
-};