aboutsummaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/har-validator/node_modules/ajv/lib/compile/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/har-validator/node_modules/ajv/lib/compile/rules.js')
-rw-r--r--deps/npm/node_modules/har-validator/node_modules/ajv/lib/compile/rules.js40
1 files changed, 0 insertions, 40 deletions
diff --git a/deps/npm/node_modules/har-validator/node_modules/ajv/lib/compile/rules.js b/deps/npm/node_modules/har-validator/node_modules/ajv/lib/compile/rules.js
deleted file mode 100644
index 39b1708d96..0000000000
--- a/deps/npm/node_modules/har-validator/node_modules/ajv/lib/compile/rules.js
+++ /dev/null
@@ -1,40 +0,0 @@
-'use strict';
-
-var ruleModules = require('./_rules')
- , toHash = require('./util').toHash;
-
-module.exports = function rules() {
- var RULES = [
- { type: 'number',
- rules: [ 'maximum', 'minimum', 'multipleOf'] },
- { type: 'string',
- rules: [ 'maxLength', 'minLength', 'pattern', 'format' ] },
- { type: 'array',
- rules: [ 'maxItems', 'minItems', 'uniqueItems', 'items' ] },
- { type: 'object',
- rules: [ 'maxProperties', 'minProperties', 'required', 'dependencies', 'properties' ] },
- { rules: [ '$ref', 'enum', 'not', 'anyOf', 'oneOf', 'allOf' ] }
- ];
-
- var ALL = [ 'type', 'additionalProperties', 'patternProperties' ];
- var KEYWORDS = [ 'additionalItems', '$schema', 'id', 'title', 'description', 'default' ];
- var TYPES = [ 'number', 'integer', 'string', 'array', 'object', 'boolean', 'null' ];
- RULES.all = toHash(ALL);
-
- RULES.forEach(function (group) {
- group.rules = group.rules.map(function (keyword) {
- ALL.push(keyword);
- var rule = RULES.all[keyword] = {
- keyword: keyword,
- code: ruleModules[keyword]
- };
- return rule;
- });
- });
-
- RULES.keywords = toHash(ALL.concat(KEYWORDS));
- RULES.types = toHash(TYPES);
- RULES.custom = {};
-
- return RULES;
-};