Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 484 Bytes

API.md

File metadata and controls

20 lines (14 loc) · 484 Bytes

1.1.2 API Reference

Rules

array.continuous(comparator, limit)

Specifies the allowed date format:

  • comparator - string or func that should check continuous or not.
  • limit - integer or ref the value of comparator should be start. Default 0
const schema = Joi.array().items({
    idx: Joi.number().integer()
}).continuous('idx', 1);