schema

package
v0.38.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TemplateConfigSchema string

TemplateConfigSchema is the embedded JSON Schema for tag.template.json validation.

Functions

This section is empty.

Types

type ValidationError

type ValidationError struct {
	Errors []string
}

ValidationError represents a schema validation error with details.

func (*ValidationError) Error

func (e *ValidationError) Error() string

type Validator

type Validator struct {
	// contains filtered or unexported fields
}

Validator validates JSON documents against the embedded schema.

func NewValidator

func NewValidator() (*Validator, error)

NewValidator creates a new schema validator using the embedded schema.

func (*Validator) Validate

func (v *Validator) Validate(data []byte) error

Validate validates JSON data against the tag.template.json schema. Returns nil if validation passes, or a ValidationError with details if it fails.

Jump to

Keyboard shortcuts

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