Rui Araújo

Results 27 comments of Rui Araújo

Hum, I saw some issues where people were throwing inside `custom`. Imagine this scenario, how can I achieve the same result without throwing in custom? ```ts codOutrasNacionalidades: v.array(v.string([v.minLength(1, 'required.otherNationalities')]), [...

> I would return `false` instead of throwing and error and add the error message as the second parameter to `custom`. But currently there is no way to return multiple...

> No, but that's an interesting idea! I think so, in my current implementation, this is important to select the duplicated option, and with the code that I've shared [here](https://github.com/fabian-hiller/valibot/issues/487#issuecomment-2007792952),...

Although it's not recommended, I'll let `v.custom` with `throw` as it is working as I need, I'll come here again when the rewrite is done to update it. And perhaps...

Hi @fabian-hiller I saw your comment on the rewrite PR, I was thinking about testing the new implementation of `pipe` in this context, do you have any suggestion on where...

Thanks. I'll try that, do you plan on implementing it in valibot?

The only one that I could think of is `iterate`.

I was thinking, it would be nice if the callback had 2 or 3 arguments `(item, index, items) => boolean`. With that we could create validations based on other items,...