An adapter that allows events and actions parameters to be validated against JSON schemas.
MSA assumes that you are using the Moleculer microservice framework.
When MSA
loads, it reads the schema directory, validating and caching all schemas. Subsequently, MSA
chooses the schema to use based on the name of the event or action.
- Require the package;
- Add the middleware to the service configuration;
- Add the mixin to the service;
- Via NPM