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? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hey, you can simply ignore the trim action via the |
Beta Was this translation helpful? Give feedback.
Hey, you can simply ignore the trim action via the
ignoreActions: ['trim']option (second arg oftoJsonSchema) if you are ok with ignoring it.