Skip to content

An adapter that connects to a Schema service, allowing you to verify and validate communication between services.

License

Notifications You must be signed in to change notification settings

timsayshey/moleculer-schema-adapter

 
 

Repository files navigation

nodejs version status

moleculer-schema-adapter (MSA)

An adapter that connects to a Schema service, allowing you to verify and validate communication between services.

Table of Contents

  1. Requirements
  2. Usage
  3. Distribution

Requirements

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)

Usage

  • Require the package
  • Add the middleware to the service configuration
  • Add the mixin to the service

Distribution

About

An adapter that connects to a Schema service, allowing you to verify and validate communication between services.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%