3.0.1 • Published 9 months ago

joi-strict v3.0.1

Weekly downloads
2,654
License
MIT
Repository
github
Last release
9 months ago

joi-strict

Build Status Test Coverage Dependabot Status Dependencies NPM Downloads Semantic-Release Gardener

Thin wrapper around joi that defaults to stricter validation.

Install

Install with npm:

$ npm install --save joi-strict

Changes from default

The following changes to the default joi behaviour were made:

  • Every entry is required unless explicitly marked as optional().
  • Unknown object keys are not allowed unless explicitly market unknown(true).
  • Additional function Joi.test(object, schema) to check if a schema matches an object
  • boolean() and number() automatically runs in strict() mode.

Usage

const Joi = require('joi-strict');

Joi.string().validate();
// => "value" is required

For more examples, please refer to the tests.

3.0.1

9 months ago

3.0.0

9 months ago

2.0.1

3 years ago

2.0.0

3 years ago

1.2.10

3 years ago

1.2.11

3 years ago

1.2.9

3 years ago

1.2.8

3 years ago

1.2.7

3 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.11

4 years ago

1.1.10

4 years ago

1.1.9

4 years ago

1.1.8

4 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago