The "min_value" action is not supported on type "integer" #1338
Answered
by
fabian-hiller
stefanprobst
asked this question in
Q&A
-
|
i see a import { toJsonSchema } from "@valibot/to-json-schema";
import * as v from "valibot";
const schema = v.pipe(v.number(), v.integer(), v.minValue(1));
console.log(toJsonSchema(schema, { errorMode: "warn" }));Output: |
Beta Was this translation helpful? Give feedback.
Answered by
fabian-hiller
Oct 20, 2025
Replies: 1 comment 2 replies
-
|
This seems like a bug. Feel free to create an issue and I will fix it with the next version. In the meantime as a workaround you can use the override config of |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
stefanprobst
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This seems like a bug. Feel free to create an issue and I will fix it with the next version. In the meantime as a workaround you can use the override config of
toJsonSchemato "fix" it.