Skip to content

Commit

Permalink
chore: document library need
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Moreau committed Jul 31, 2023
1 parent 98b09d6 commit 491c769
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ import { ActionDefinition, actionSchema } from '../actions/types/actions';
import { DynamicField, fieldActionSchema } from '../actions/types/fields';

const ajv = new Ajv({ allErrors: true });
ajvErrors(ajv);
ajvKeywords(ajv);
ajvErrors(ajv); // NOTICE: this library adds support for custom invalidity error messages.
// ex: errorMessage: 'should either by an array of string or a function' ;
ajvKeywords(ajv); // NOTICE: this library adds support for 'typeof' validation keyword, which allows
// to test if the objects passed are functions (ex: {typeof: 'function'})

export default class ActionValidator {
static validateActionConfiguration(name: string, action: ActionDefinition) {
Expand Down

0 comments on commit 491c769

Please sign in to comment.