Get a peek at our latest innovations at Sanity Product Day on Dec 8th →

Is it Possible to Set a Maximum Longevity on an Array Schema Type?

1 replies
Last updated: Sep 19, 2022

Hey! Is it possible to set a max length on an array schema type?

Sep 19, 2022, 2:17 AM

It is possible, yes. You can set

min
,
max
, or
length
requirements as part of the
Validation
. The array schema type documentation has some examples.

Sep 19, 2022, 3:32 AM

Sanity.io: Get the most out of your content

Sanity.io is a platform to build websites and applications. It comes with great APIs that let you treat content like data. Free to get started, and pay-as-you-go on all plans. Find out more.