Sanity Library Reference Docs
    Preparing search index...

    Type Alias ValidateDefinitionResult

    ValidateDefinitionResult:
        | { definition: WorkflowDefinition; valid: true }
        | { error: string; valid: false }

    Per-definition result inside ValidateDefinitionsResult. On valid: true, definition is the desugared form that would deploy (defaults filled, sugar expanded); on valid: false, error is the aggregated, path-prefixed list of problems.