Error: The "trim" action cannot be converted to JSON Schema. #1380
|
Hi 👋😊 Is this normal and expected? I want a way to simplify valibot schema to be able to pass it to an HTML form. Is there a better way to do this? A different library maybe? By being able to pass it to an HTML form, I mean things like, if a form input is required, min and max length and value, regex, etc (as attributes). The above plugin does so much that is not needed for input constraint attrs. Maybe valibot can build a lib to do that? Similar to the above one but spasific to this usecase? |
Answered by
fabian-hiller
Dec 29, 2025
Replies: 1 comment
|
Hey, you can simply ignore the trim action via the |
0 replies
Answer selected by
babakfp
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, you can simply ignore the trim action via the
ignoreActions: ['trim']option (second arg oftoJsonSchema) if you are ok with ignoring it.