X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=.config%2Fcoc%2Fextensions%2Fnode_modules%2Fcoc-prettier%2Fnode_modules%2Ftable%2Fnode_modules%2Fajv%2Flib%2Fcompile%2Fvalidate%2Fkeyword.ts;h=f854aa71083ca28c01f8064fdca177a847e6f308;hb=3be0a9efc698a9570a44456009afc6014812625a;hp=50dcad17496f07143e3215214048c6b0aac6bfc6;hpb=3c06164f15bd10aed7d66b6314764a2961a14762;p=dotfiles%2F.git diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/table/node_modules/ajv/lib/compile/validate/keyword.ts b/.config/coc/extensions/node_modules/coc-prettier/node_modules/table/node_modules/ajv/lib/compile/validate/keyword.ts index 50dcad17..f854aa71 100644 --- a/.config/coc/extensions/node_modules/coc-prettier/node_modules/table/node_modules/ajv/lib/compile/validate/keyword.ts +++ b/.config/coc/extensions/node_modules/coc-prettier/node_modules/table/node_modules/ajv/lib/compile/validate/keyword.ts @@ -144,7 +144,7 @@ export function validSchemaType( } export function validateKeywordUsage( - {schema, opts, self}: SchemaObjCxt, + {schema, opts, self, errSchemaPath}: SchemaObjCxt, def: AddedKeywordDefinition, keyword: string ): void { @@ -161,7 +161,9 @@ export function validateKeywordUsage( if (def.validateSchema) { const valid = def.validateSchema(schema[keyword]) if (!valid) { - const msg = "keyword value is invalid: " + self.errorsText(def.validateSchema.errors) + const msg = + `keyword "${keyword}" value is invalid at path "${errSchemaPath}": ` + + self.errorsText(def.validateSchema.errors) if (opts.validateSchema === "log") self.logger.error(msg) else throw new Error(msg) }