-
-
Notifications
You must be signed in to change notification settings - Fork 796
Closed
Description
Steps to reproduce
It would be great if getValidator would support also supports TUnion<TObject[]>
For example when having a schema like this:
export const userActionSchema = Type.Union([
Type.Object({
action: Type.Literal('verifySignup'),
payload: Type.Object({
verifyToken: Type.String(),
}),
}),
Type.Object({
action: Type.Literal('resendVerifySignup'),
payload: Type.Object({
email: Type.String({ format: 'email' }),
}),
}),
]);Module versions (especially the part that's not working):
5.0.8
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels