Unlock seamless workflows and faster delivery with our latest releases- get the details

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...

1 replies
Last updated: Jan 17, 2021
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?
Jan 17, 2021, 12:01 AM
Could be some bug in the schema validation - I'll see if I can reproduce.
You can't combine
type: 'string'
with
fields
, though - are you looking for
type: 'object'
?
Jan 17, 2021, 1:56 AM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?