Valibot coerceFormValue return value is v.GenericSchema #1057
Unanswered
mnlfischer
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Additional info: When using const formData = await request.formData();
const submission = parseSubmission(formData);
// (property) payload: Record<string, FormValue<string | number | boolean | File | null>>
const result = v.safeParse(requestToolSchema, submission.payload);
// const result: v.SafeParseResult<v.GenericSchema>
if (!result.success) {
return report(submission, {
error: {
issues: result.issues,
},
});
}
const { from, to } = result.output; // (property) output: unknown |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
following this implementation: https://conform.guide/api/valibot/future/coerceFormValue#example
The type of schema is
v.GenericSchema
, the useForm schema expectsStandardSchemaV1
.Do I miss something here?
Beta Was this translation helpful? Give feedback.
All reactions