X-Git-Url: https://git.josue.xyz/?p=dotfiles%2F.git;a=blobdiff_plain;f=.config%2Fcoc%2Fextensions%2Fnode_modules%2Fcoc-prettier%2Fnode_modules%2Fajv%2Flib%2Fdotjs%2Fnot.js;h=f50c93785b7129b8de3c1429d25199f3e32a9b41;hp=6aea6599144f8fbfe89a45f5f2d193decdddfbb7;hb=4d07c77cf4d78cab8639e13ddc3c22495e585b0b;hpb=b3950616b54221c40a7dab9099bda675007e5b6e diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/ajv/lib/dotjs/not.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/ajv/lib/dotjs/not.js index 6aea6599..f50c9378 100644 --- a/.config/coc/extensions/node_modules/coc-prettier/node_modules/ajv/lib/dotjs/not.js +++ b/.config/coc/extensions/node_modules/coc-prettier/node_modules/ajv/lib/dotjs/not.js @@ -12,7 +12,7 @@ module.exports = function generate_not(it, $keyword, $ruleType) { var $it = it.util.copy(it); $it.level++; var $nextValid = 'valid' + $it.level; - if ((it.opts.strictKeywords ? typeof $schema == 'object' && Object.keys($schema).length > 0 : it.util.schemaHasRules($schema, it.RULES.all))) { + if ((it.opts.strictKeywords ? (typeof $schema == 'object' && Object.keys($schema).length > 0) || $schema === false : it.util.schemaHasRules($schema, it.RULES.all))) { $it.schema = $schema; $it.schemaPath = $schemaPath; $it.errSchemaPath = $errSchemaPath;