xnotifications-schema

0.0.3 • Public • Published

X-Notifications Schema

const { 
    Schema,
    DefaultSchema, 
    JoiSchema,
    SchemaBundle
} = require('xnotifications-schema')

const notifications = requir('xnotifications')(SchemaBundle)

app.use(notifications)

// for joi schemas this might come in handy
const USD = [
    'any.required',
    'string.empty',
    'boolean.base',
    'number.base',
    'number.integer',
    'array.base',
    'string.email'
]
        
const MSD = [
    'string.min',
    'string.max',
    'any.only'
]

Readme

Keywords

none

Package Sidebar

Install

npm i xnotifications-schema

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

8.27 kB

Total Files

8

Last publish

Collaborators

  • chen7david