Skip to content

Commit

Permalink
Adjusted some settings to incopatibility with the new version of the …
Browse files Browse the repository at this point in the history
…AVJ library
  • Loading branch information
markducks committed Sep 20, 2024
1 parent cd972a6 commit 611dc82
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 17 deletions.
5 changes: 3 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ var cert = properties.path.cert;
var servicesConfig = require("./config/services.json");

// This function validates the JSON schemas
var Ajv = require("ajv");
var Ajv = require("ajv");
const addFormats = require("ajv-formats");
validateJsonSchemas();

// Prepare the languages array to give to the clients
Expand Down Expand Up @@ -187,8 +188,8 @@ function validateSchema(jsonPath, schemaPath) {
// Config
var ajv = new Ajv({
allErrors: true,
jsonPointers: true,
});
addFormats(ajv);

// Compiling the schema
var compiledSchema = ajv.compile(schema);
Expand Down
2 changes: 1 addition & 1 deletion config/services-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
"title": "Executor path.",
"description": "This property indicates the executor path relative to its URL.",
"type": "string",
"_comment": "Add the pattern to match with the 'path'."
"$comment": "Add the pattern to match with the 'path'."
},
"port": {
"title": "Connection port number.",
Expand Down
31 changes: 17 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
},
"dependencies": {
"ajv": "^8.17.1",
"ajv-formats": "^3.0.1",
"json-pointer": "^0.6.2",
"socket.io": "^4.7.5",
"websocket": "^1.0.35"
Expand Down

0 comments on commit 611dc82

Please sign in to comment.