Overview

Literal Schema

s.literal(string)

Literal value type. This is mainly used together with unions. It is rendered as a dropdown menu in the UI

Methods:
.validate: method

Custom validation function

Example:
Example
s.union(s.literal("primary"), s.literal("secondary"))