aboutsummaryrefslogtreecommitdiff
path: root/node_modules/ajv/lib/dotjs/const.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/ajv/lib/dotjs/const.js')
-rw-r--r--node_modules/ajv/lib/dotjs/const.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/node_modules/ajv/lib/dotjs/const.js b/node_modules/ajv/lib/dotjs/const.js
index d19756e14..acad86f79 100644
--- a/node_modules/ajv/lib/dotjs/const.js
+++ b/node_modules/ajv/lib/dotjs/const.js
@@ -25,7 +25,7 @@ module.exports = function generate_const(it, $keyword, $ruleType) {
$$outStack.push(out);
out = ''; /* istanbul ignore else */
if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('const') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} ';
+ out += ' { keyword: \'' + ('const') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { allowedValue: schema' + ($lvl) + ' } ';
if (it.opts.messages !== false) {
out += ' , message: \'should be equal to constant\' ';
}