fake-joi

0.1.0 • Public • Published

fake-joi

Create a Joi schema as string

Usage

const Joi = require('fake-joi')
const schema = Joi.object({
  someKey: Joi.number().integer().required()
})
 
console.log(schema._) // returns schema as string
// Joi.object({"someKey": Joi.number().integer().required()})

Readme

Keywords

none

Package Sidebar

Install

npm i fake-joi

Weekly Downloads

0

Version

0.1.0

License

MPL-2.0

Unpacked Size

1.99 kB

Total Files

4

Last publish

Collaborators

  • mkg20001