How to access other field?
takumi-hatta-vhr opened this issue · comments
Hello, I would like to access to other filed such as following code.
export const ExampleSchema = object(
{
status: union(
[literal('10'), literal('11'), literal('12'), literal('13')],
),
content: string([
minLength(1, '...'),
maxLength(1000, '....'),
]),
xxxxx: string(
custom((input) => {
// I would like to access to `status` here.
})
),
};
Do you have any ideas?
Other information
I'm using Valibot with React Hook Form.
Have a look at the examples of forward
: https://valibot.dev/api/forward/#examples
Thank you for answering !