From e5fd3d3bab3a59b8adc830c0097c0129baf2e423 Mon Sep 17 00:00:00 2001 From: Snorre Eskeland Brekke Date: Sun, 20 Oct 2024 15:34:29 +0200 Subject: [PATCH] fix: adds purpose field to SanityCreateOptions --- packages/@sanity/types/src/schema/definition/type/common.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/@sanity/types/src/schema/definition/type/common.ts b/packages/@sanity/types/src/schema/definition/type/common.ts index 50e0dd90238..b970f82e3fe 100644 --- a/packages/@sanity/types/src/schema/definition/type/common.ts +++ b/packages/@sanity/types/src/schema/definition/type/common.ts @@ -32,6 +32,12 @@ export type FieldGroupDefinition = { export interface SanityCreateOptions { /** Set to true to exclude a type or field from appearing in Sanity Create */ exclude?: boolean + + /** + * A short description of what the type or field is used for. + * Purpose can be used to improve how and when content mapping uses the field. + * */ + purpose?: string } /**