👀 See Sanity in action: Watch product demo now →

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.io – build remarkable experiences at scale

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

Categorized in