We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a form like this:
const MyForm = v.object({ items: v.array( v.object({ foo: v.string() }) ), }) type MyForm = v.InferInput<typeof MyForm> const formStore = useFormStore<MyForm>({ fieldArray: ['items'], loader: { value: { items: [] } }, validate: valiForm$(MyForm), })
When I submit the form with the empty items field, the validation won't pass.
items
The text was updated successfully, but these errors were encountered:
Can you provide a minimal reproduction via StackBlitz? Here is a template: https://stackblitz.com/edit/modular-forms-qwik?file=src/routes/todos/index.tsx
Sorry, something went wrong.
@fabian-hiller here's the reproduction. by clicking the submit button, this error shows up:
Thank you! Does this workaround work for you?
const FormSchema = v.object({ heading: v.string(), todos: v.optional( v.array( v.object({ label: v.string(), deadline: v.string(), }) ) ), });
fabian-hiller
No branches or pull requests
I have a form like this:
When I submit the form with the empty
items
field, the validation won't pass.The text was updated successfully, but these errors were encountered: