Sanity Library Reference Docs
    Preparing search index...
    • The required input entries initialFields fails to provide — the pure predicate behind RequiredFieldNotProvidedError: an entry counts as required when it is required AND input-sourced (the only combination deploy admits), and as provided when a supplied value matches its name AND kind with a real (non-null) value. Keys on the same name+type as the input read during input resolution, but is stricter: a present-but-null/ undefined value counts as absent here (a required field needs a real value), whereas input resolution passes a null fill straight through. Exported so pre-flight validators (e.g. mapping validation) share the engine's own rule instead of mirroring it.

      Parameters

      Returns {
          name: string;
          type:
              | "string"
              | "number"
              | "boolean"
              | "object"
              | "actor"
              | "datetime"
              | "array"
              | "text"
              | "url"
              | "doc.ref"
              | "doc.refs"
              | "subject"
              | "release.ref"
              | "progress"
              | "date"
              | "dueDate"
              | "dueDatetime"
              | "assignee"
              | "assignees";
      }[]