Skip to content

0.5.0

Compare
Choose a tag to compare
@b4rtaz b4rtaz released this 01 Jul 13:34
· 37 commits to main since this release
9fd55a8

The DefinitionValidator class supports the validation of the whole definition. Use the validate method to validate a definition deeply. This method will validate all steps in the definition at once. Now you may easily validate a definition in the back-end before saving it to the storage.

const validator = DefinitionValidator.create(definitionModel, definitionWalker);
if (validator.validate(definition)) {
  throw new Error('Invalid definition');
}

Breaking changes:

  • Renamed the ModelValidator class to DefinitionValidator.