An adapter that connects to a Schema service, allowing you to verify and validate communication between services.
MSA assumes that you are using the Moleculer microservice framework, and have a moleculer Schema service. This service should provide valid JSON Schemas via an action (default name: fetch
), by id
where id
should be the name of the schema. MSA is flexible, allowing the developer to set:
- Name of the Schema service, default lookup:
schema
- Name of the action, default lookup:
fetch
- Wait time (dependency timeout), default value:
10000
(in ms)
- Require the package
- Add the middleware to the service configuration
- Add the mixin to the service
- Via NPM