massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / table / node_modules / ajv / lib / vocabularies / dynamic / dynamicAnchor.ts
index b3e2063984677cddddf46eef197f3d88d1f00f4a..ca1adb912af0347a3bb8e18ca50cf51405f2ba1f 100644 (file)
@@ -22,7 +22,8 @@ export function dynamicAnchor(cxt: KeywordCxt, anchor: string): void {
 function _getValidate(cxt: KeywordCxt): Code {
   const {schemaEnv, schema, self} = cxt.it
   const {root, baseId, localRefs, meta} = schemaEnv.root
-  const sch = new SchemaEnv({schema, root, baseId, localRefs, meta})
+  const {schemaId} = self.opts
+  const sch = new SchemaEnv({schema, schemaId, root, baseId, localRefs, meta})
   compileSchema.call(self, sch)
   return getValidate(cxt, sch)
 }