Nullable

ReferenceSchema API

.nullable()

Makes a value optional: it may be null, and editors may leave it empty.

Use it for

  • Fields editors can skip
  • Optional images, links and sections

Nullable Method

.nullable()

schema

Makes any schema type nullable

In Val Studio

Example

Example

TypeScript
s.string().nullable()