schema

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExtensionSchemaURLs = map[string]string{}

ExtensionSchemaURLs maps Grove extension keys to the canonical URL of their JSON schema. Tools in the ecosystem publish their own schemas, and this manifest is used to compose them into a unified schema for validation and IDE support.

NOTE: For now using placeholder GitHub release URLs. In production, these should redirect through schemas.grove.sh for clean, versioned URLs.

Extension schemas are currently commented out for testing. Once schemas are published as GitHub release assets or through a schema hosting service, they can be uncommented.

Functions

This section is empty.

Types

type Validator

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

Validator validates configuration against the embedded JSON Schema.

func NewValidator

func NewValidator() (*Validator, error)

NewValidator creates a new schema validator, loading the embedded schema.

func (*Validator) Validate

func (v *Validator) Validate(configData interface{}) error

Validate validates configuration data against the schema. It expects the configData to be any struct that can be marshaled to JSON.

Jump to

Keyboard shortcuts

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