Sanity Library Reference Docs
    Preparing search index...

    Interface ReleaseMetadataConfigBeta

    The part of the sanity.releaseMetadata object type a workspace or plugin configures. The core fields (title, description, releaseType, intendedPublishAt and cardinality) always come first and can't be redeclared: a field with one of those names is dropped with a warning.

    Plugins and the root config are merged in order: a later field, fieldset or group with the same name replaces the earlier one, with a warning, and every config's validation applies.

    defineConfig({
    releases: {
    metadata: {
    fieldsets: [{name: 'review', title: 'Review'}],
    fields: [defineField({name: 'legalReview', type: 'string', fieldset: 'review'})],
    },
    },
    })
    interface ReleaseMetadataConfig {
        fields?: FieldDefinition[];
        fieldsets?: FieldsetDefinition[];
        groups?: FieldGroupDefinition[];
        validation?: SchemaValidationValue;
    }
    Index

    Properties

    fields?: FieldDefinition[]
    fieldsets?: FieldsetDefinition[]