From 9b0ef9159a696e3ff4da9165774e991949641783 Mon Sep 17 00:00:00 2001 From: Artem Date: Wed, 26 May 2021 16:24:17 +0300 Subject: [PATCH 1/2] error in the text --- docs/guide/managing-schemas.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/managing-schemas.md b/docs/guide/managing-schemas.md index b584af739..0a4326864 100644 --- a/docs/guide/managing-schemas.md +++ b/docs/guide/managing-schemas.md @@ -106,7 +106,7 @@ You can load all schemas and add them to Ajv instance in a single `validation` m ```javascript -const Ajv = require("ajv").defalt +const Ajv = require("ajv").default const schema_user = require("./schema_user.json") const schema_document = require("./schema_document.json") const ajv = exports.ajv = new Ajv() From f5bbd237b58e2cab680b192daac0f817f68f7c09 Mon Sep 17 00:00:00 2001 From: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com> Date: Sun, 6 Jun 2021 12:44:34 +0100 Subject: [PATCH 2/2] remove .default from example --- docs/guide/managing-schemas.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/managing-schemas.md b/docs/guide/managing-schemas.md index 0a4326864..eb007b539 100644 --- a/docs/guide/managing-schemas.md +++ b/docs/guide/managing-schemas.md @@ -106,7 +106,7 @@ You can load all schemas and add them to Ajv instance in a single `validation` m ```javascript -const Ajv = require("ajv").default +const Ajv = require("ajv") const schema_user = require("./schema_user.json") const schema_document = require("./schema_document.json") const ajv = exports.ajv = new Ajv()