Joi extensions for extra string rules.
Lead Maintainer: Kyle Laverty
This extention is focused on adding the ability to split strings into arrays so that they can be used with the rest of the joi ecosystem as if they were arrays.
Usage is a two steps process. First, a schema is constructed using the provided types and constraints:
const BaseJoi = require('joi');
const Extension = require('joi-array-extension');
const Joi = BaseJoi.extend(Extension);
const schema = Joi.array().separator(',').items(...);
See the API Reference.