rivet icon indicating copy to clipboard operation
rivet copied to clipboard

[Feature]: general form validation as part of Node descriptions

Open codemile opened this issue 1 year ago • 1 comments

Feature Request

Can we add some kind of general form validation for inputs on Node properties. Things like URLs, input names, text prompts, etc. are used "as is" in the current setup.

When I say validation, I'm referring to tools like Joi Validation where the node description for the inputs would include a schema that can be used to give the user feedback.

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

codemile avatar Jan 02 '24 19:01 codemile

Most node inputs are passed through the coercion system so don't need to be validated but yeah, makes sense for those that aren't. Joi looks good, I've also used refine and like it a lot, but it doesn't have fancy validators like email built in.

abrenneke avatar Jan 02 '24 19:01 abrenneke