Files
narratio/internal/glossary/glossary.go
Eric Rakestraw 831665c913
All checks were successful
ci/woodpecker/tag/release Pipeline was successful
Align module path with Narratio v4 release
2026-12-03 02:01:48 +00:00

21 lines
580 B
Go

// Package glossary composes and projects shared glossary documents.
package glossary
import (
"fmt"
"gitea.maximumdirect.net/eric/narratio/v4/internal/domaininput"
)
// CatalogRevision identifies the selected synthetic catalog revision.
const CatalogRevision = "02dd53c6ea026347452d497350c40249c949f8ce"
// ValidateDocument validates a completed shared glossary mapping.
func ValidateDocument(value any) error {
document, ok := value.(map[string]any)
if !ok {
return fmt.Errorf("glossary document must be a mapping")
}
return domaininput.ValidateGlossary(document)
}