Nicolas Morel

Results 175 comments of Nicolas Morel

Is it ok to chain end and destroy on a stream like that? I would expect destroy to be hooked to an event or something.

It is typescript's normal behavior, I don't see an obvious fix for this. You could put the `as const` on the whole array but you might run into other problems...

Mind being more specific than just the title?

That would be https://hapi.dev/api/?v=21.3.2#-request-event 2nd example I believe.

I know it's how some other frameworks deal with it, but I'm questioning whether it's even a good practice that should be encouraged. Shouldn't large payloads be streamed instead of...

This is not the place for this, so… Open only if you are interested in the previous post joi went through several changes of leadership over the years. Although I...

Hi, and sorry for the super late reply. I'm not entirely sure I understand your problem. `isStrict` is here to ensure that you have a schema for all the keys...

Optional doesn't mean they can be entirely absent from your schema. If it's part of the type, it should as well be part of the schema, otherwise you should omit...

Hi, Thanks for all those PRs, I'm a bit torn on this one though. `isStrict` has been so far used by many people to ensure the schema contains what the...

Wouldn't it work with a simple `.and('username', 'password').or('username', 'otp')`?