From 0051a6faf75ebeb0a1c7cfdefb436d2ac42d5355 Mon Sep 17 00:00:00 2001
From: mkslanc
Date: Mon, 3 Apr 2023 17:16:35 +0400
Subject: [PATCH] fix bug with wrong API for example
---
samples/validation-against-json-schema/sample.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/samples/validation-against-json-schema/sample.js b/samples/validation-against-json-schema/sample.js
index 5e5ba33..9ced8af 100644
--- a/samples/validation-against-json-schema/sample.js
+++ b/samples/validation-against-json-schema/sample.js
@@ -55,6 +55,6 @@ provider.setGlobalOptions("json", {
});
provider.registerEditor(editor);
-provider.setOptions(editor.session, {schemaUri: "common.schema.json"});
+provider.setSessionOptions(editor.session, {schemaUri: "common.schema.json"});
//try to write something inside curly braces ->