@wrecking-ball-software/moleculer-schema-adapter

0.1.4 • Public • Published

nodejs version status

moleculer-schema-adapter (MSA)

An adapter that allows events and actions parameters to be validated against JSON schemas.

Table of Contents

  1. Requirements
  2. Usage
  3. Distribution

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

Package Sidebar

Install

npm i @wrecking-ball-software/moleculer-schema-adapter

Weekly Downloads

1

Version

0.1.4

License

MIT

Unpacked Size

12.5 kB

Total Files

9

Last publish

Collaborators

  • theenoahmason
  • wreckingballadm
  • thalesfsp
  • alexsante
  • neoramos