Skip to content

Commit

Permalink
Added missing schema files to the ActivityConfigValidator.
Browse files Browse the repository at this point in the history
  • Loading branch information
barnettwilliam committed Feb 6, 2024
1 parent 4a4ded4 commit 42e7a86
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion platform/src/ActivityConfigValidator.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@ const schemaActivtyConfig = require('../schemas/activity-config.schema.json');
const schemaLayout = require('../schemas/layout.schema.json');
const schemaAction = require('../schemas/action.schema.json');
const schemaPanel = require('../schemas/panel.schema.json');
const schemaButton = require( '../schemas/button.schema.json');
const schemaRef = require( '../schemas/ref.schema.json');


class ActivityConfigValidator {

validate;

constructor() {
const schemaValidator = new Ajv({allErrors: true, schemas: [schemaActivtyConfig, schemaLayout, schemaAction, schemaPanel]});
const schemaValidator = new Ajv({allErrors: true, schemas: [schemaActivtyConfig, schemaLayout, schemaAction, schemaPanel, schemaButton, schemaRef]});
this.validate = schemaValidator.getSchema("https://mde-network.com/ep/activity-config.schema.json"); // id from local schema file
}

Expand Down

0 comments on commit 42e7a86

Please sign in to comment.