validation

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package validation provides input validation and history-based suggestions for workflow inputs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigValidationError

type ConfigValidationError struct {
	HistoricalName  string
	HistoricalValue string
	Status          ValidationStatus
	Suggestion      string // Suggested input name for remapping
}

ConfigValidationError represents a validation error for a historical input.

func ValidateHistoryConfig

func ValidateHistoryConfig(entry *frecency.HistoryEntry, wf *workflow.WorkflowFile) []ConfigValidationError

ValidateHistoryConfig validates a historical configuration against current workflow inputs. Returns a list of validation errors, or nil if all inputs are valid.

type ValidationStatus

type ValidationStatus int

ValidationStatus represents the validation state of a historical input.

const (
	StatusValid          ValidationStatus = iota // Input is valid
	StatusMissing                                // Input name no longer exists
	StatusTypeChanged                            // Input type has changed
	StatusOptionsChanged                         // Value not in choice options
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL