Sanity Library Reference Docs
    Preparing search index...

    Interface ValidationMarker

    interface ValidationMarker {
        item?: ValidationError;
        message: string;
        path: Path;
    }
    Index

    Properties

    Properties

    use message instead

    message: string

    The validation message for this marker. E.g. "Must be greater than 0"

    path: Path

    The sanity path relative to the root of the current document to this marker.

    NOTE: Sanity paths may contain keyed segments (i.e. {_key: string}) that are not compatible with deep getters like lodash/get