loopback-mongo-validate-mixin

model validation for the mongodb connector

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
loopback-mongo-validate-mixin
001.0.46 years ago6 years agoMinified + gzip package size for loopback-mongo-validate-mixin in KB

Readme

loopback-mixin-mongo-validate
Converts loopback models with embedded models propertys to $jsonScheme validators
  • npm install loopback-mongo-validate-mixin --save

Setup

mixins:
  MongoValidate: true

or
mixins:
  MongoValidate:
    validationLevel: 'strict|moderate'
    validationAction: 'error|warn'

License: MIT