21 lines
577 B
Go
21 lines
577 B
Go
// Package glossary composes and projects shared glossary documents.
|
|
package glossary
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"gitea.maximumdirect.net/eric/narratio/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)
|
|
}
|