Skip to content

viewConfigurationSchema

const viewConfigurationSchema: ZodObject<{ type: ZodEnum<{ board: "board"; calendar: "calendar"; chart: "chart"; dashboard: "dashboard"; form: "form"; gallery: "gallery"; list: "list"; map: "map"; table: "table"; timeline: "timeline"; }>; }, $catchall<ZodUnknown>>

Defined in: src/schemas/view.schema.ts:49

Configuration for a single view layout.

Notion has not confirmed the exact fields for each view type against a live response. Examples include the table column order and the board group-by property. This schema stays permissive. It tags the object by its type field and passes all other fields through without validation. As a result, unknown fields round-trip unchanged instead of the schema rejecting them.