pgdesign v0.26.0 /internal/validate
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 go
type Config struct

Config controls which rules run and their parameters.

#SuppressedDiagnostic

Go go
type SuppressedDiagnostic struct

SuppressedDiagnostic pairs a diagnostic with the reason it was suppressed.

#DefaultConfig

Go go
func DefaultConfig() *Config

DefaultConfig returns a Config with sensible defaults.

#Validate

Go 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.

Search