Henning Dieterichs il y a 11 mois
Parent
commit
1693f99f92

+ 3 - 3
website/src/website/data/playground-samples/extending-language-services/configure-json-defaults/sample.js

@@ -9,7 +9,7 @@ monaco.languages.json.jsonDefaults.setDiagnosticsOptions({
 	validate: true,
 	schemas: [
 		{
-			uri: "http://myserver/foo-schema.json", // id of the first schema
+			uri: "https://myserver/foo-schema.json", // id of the first schema
 			fileMatch: [modelUri.toString()], // associate with our model
 			schema: {
 				type: "object",
@@ -18,13 +18,13 @@ monaco.languages.json.jsonDefaults.setDiagnosticsOptions({
 						enum: ["v1", "v2"],
 					},
 					p2: {
-						$ref: "http://myserver/bar-schema.json", // reference the second schema
+						$ref: "https://myserver/bar-schema.json", // reference the second schema
 					},
 				},
 			},
 		},
 		{
-			uri: "http://myserver/bar-schema.json", // id of the second schema
+			uri: "https://myserver/bar-schema.json", // id of the second schema
 			schema: {
 				type: "object",
 				properties: {