0.0.3 • Published 4 years ago

xnotifications-schema v0.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

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'
]
0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago

0.0.0

4 years ago