@wrecking-ball-software/moleculer-schema-adapter
v0.1.4
Published
An adapter that allows events and actions parameters to be validated against JSON schemas
Downloads
4
Readme
moleculer-schema-adapter (MSA)
Table of Contents
Requirements
MSA assumes that you are using the Moleculer microservice framework.
How it works
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.
Usage
- Require the package;
- Add the middleware to the service configuration;
- Add the mixin to the service;
Distribution
- Via NPM