Nicolas Morel

Results 175 comments of Nicolas Morel

Sure! Be careful to target v17 branch, the main branch is currently in progress.

Do you mean an extension? That could have some unintended consequences. Depending on how it's implemented, you can maybe force this, but I'd rather have extension providers offer that option...

`convert: true` is the default, I'm still not sure what you mean.

This looks like a bug. You can work around it with this until I understand what's happening: ```js const schema = Joi.object({ id: Joi.number().required(), command: Joi.object({ command: Joi.string().valid('run', 'jump').required(), params:...

There is a way, but it's really not advised. If you can plan ahead, you'd better use [tailor](https://joi.dev/api/?v=17.8.3#anytailortargets) to do that.

Sure, would you submit a PR for that?

It's all in https://github.com/hapijs/joi/blob/master/API.md, joi.dev just aggregates this.

Buffers actually have a dedicated type for them: https://joi.dev/api/?v=17.8.3#binary Are you trying to do validate things that `binary` can't?

@jonathansamines is right, and even with that fix, I can't reproduce your issue. Can you please provide a reproducible case?

That's normal behavior, all possibilities will be attempted until a valid one is found, if none, there is no way to distinguish which one is the most likely, so this...