validator

package
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package validator checks env values against the manifest spec.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Level string // MISSING | TYPE | FORMAT | VALUE | LENGTH
	Key   string
	Msg   string
}

Error represents a single validation failure.

func Validate

func Validate(m *manifest.Manifest, env map[string]string) []Error

Validate checks a map of env values against the manifest spec. Returns a slice of errors; empty slice means valid.

func (Error) String

func (e Error) String() string

Jump to

Keyboard shortcuts

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