Overview
String Schema
s.string()
Use the s.string() schema to represent text. You can use the render method to change how strings are represented in the UI.
Methods:
.validate: method
Custom validation function
.maxLength(n): method
Maximum length validation
.minLength(n): method
Minimum length validation
.regex(pattern): method
Regex pattern validation
s.string().regex(/Example/)
.render: method
Change how this string is rendered in Val Studio. Options include:
textarea- Multi-line text inputcode- Code editor with syntax highlighting (requireslanguageoption)