Conditional validation of string

Validate a field only if a sibling boolean type is set to true.
Go to Conditional validation of stringValidate a field only if a sibling boolean type is set to true.
Go to Conditional validation of stringSchemas for running a podcast backend on Sanity.io
Go to PodcastThis is a schema we've used to create accessbile bar charts, with human-readable text for each bar.
Go to Horizontal bar chartSchema for a text with a heading and a illustration with a caption.
Go to Heading, text, and illustrationA teeny-tiny 1-document-type schema
Go to Hello WorldGenerate a custom validator function for Portable Text fields using built-in routines
Go to Portable Text ValidatorA schema to bring greater transparency to food sourcing.
Go to Food Product IntegrityGet listed in Sanity.io, increase your work's visibility and help others.
Share your own snippet