Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

joi + joi-date potential bug with number strings

node v12.22.12
version: 1.0.0
endpointsharetweet
const Joi = require('@hapi/joi') .extend(require('@hapi/joi-date')); const schema = Joi.date().format('YYYY-MM-DD'); Joi.assert('1', schema) Joi.assert('10', schema) Joi.assert('1000', schema)
Loading…

no comments

    sign in to comment