validation

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 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
	Suggestion      string
	Status          Status
}

ConfigValidationError represents a validation error for a historical input.

func ValidateHistoryConfig

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

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

type Status added in v1.0.1

type Status int

Status represents the validation state of a historical input.

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

Validation status values.

Jump to

Keyboard shortcuts

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