Updated
On this page
Package validate provides the strict validation engine for pgdesign schemas, operating on the resolved IR to detect rule violations and anti-patterns.
#internal/validate
#internal/validate
Package validate provides the strict validation engine for pgdesign schemas, operating on the resolved IR to detect rule violations and anti-patterns.
#Config
go
type Config structConfig controls which rules run and their parameters.
#SuppressedDiagnostic
go
type SuppressedDiagnostic structSuppressedDiagnostic pairs a diagnostic with the reason it was suppressed.
#DefaultConfig
go
func DefaultConfig() *ConfigDefaultConfig returns a Config with sensible defaults.
#Validate
go
func Validate(schema *model.Schema, config *Config) ([]diagnostic.Diagnostic, []SuppressedDiagnostic)Validate runs all validation rules against the schema and returns active and suppressed diagnostics.