Friction

Feature request · Customization · Blocks work

Default values defined once on a custom type

2 source threads · first seen 2018-04 · last seen 2019-10

Summary

Fields of a custom type with a constant default must have the initial value repeated in every document type that uses them; asks for defaults on the type itself.

Affects
schema developers
Workaround
Repeat initialValue in each document or export and merge initial values.

Evidence

Excerpts are copied word for word from the source; follow the link to read it in full.

“I have to respecify those defaults in every document that uses it”

“Right now there's not way to specify default values in sanity”

Report this item