Getting Uncaught Error cannot create property ‘validation’ on string ‘string’ when I have fields property as well as a validation property. If I get rid of either of those it works, but together it’s causing problems. Any idea what gives?
You can't combine
type: 'string'with
fields, though - are you looking for
type: 'object'?
Was this answer helpful?
Sanity – Build the way you think, not the way your CMS thinks
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.