2.0.0 • Published 7 years ago

joi-manager v2.0.0

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

joi-manager · npm

Manage Joi schemas with joy.

API

new JoiManager([defaultOptions])

Arguments

  • [defaultOptions] (Object): Optional. Options that will be passed to Joi.validate.

Returns

JoiManager instance.


JoiManager

Methods

  • add(schemaName, schema)this: Adds a new schema to the list.
  • get(schemaName)schema: Retrieves a schema from the list by its name.
  • validate(schemaName, value, [options])*: Validates a value according to schema that was added with the add method. options are merged with defaultOptions.
2.0.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago

1.0.0-alpha.6

7 years ago

1.0.0-alpha.5

7 years ago

1.0.0-alpha.4

7 years ago

1.0.0-alpha.3

7 years ago

1.0.0-alpha.2

7 years ago

1.0.0-alpha.1

7 years ago