Versions in this module Expand all Collapse all v2 v2.1.0 Apr 9, 2026 Changes in this version + var ErrNoSchema = errors.New("no schema declared") + func JSONSchemaValidate(schemaURL string, docJSON []byte) (bool, error) + func ValidateXSD(b []byte, schemaPath string) (bool, error) + type CsvValidator struct + func (CsvValidator) ValidateSyntax(b []byte) (bool, error) + type EditorConfigValidator struct + func (EditorConfigValidator) ValidateSyntax(b []byte) (bool, error) + type EnvValidator struct + func (EnvValidator) ValidateSyntax(b []byte) (bool, error) + type HclValidator struct + func (HclValidator) ValidateSyntax(b []byte) (bool, error) + type HoconValidator struct + func (HoconValidator) ValidateSyntax(b []byte) (bool, error) + type IniValidator struct + func (IniValidator) ValidateSyntax(b []byte) (bool, error) + type JSONMarshaler interface + MarshalToJSON func(b []byte) ([]byte, error) + type JSONValidator struct + func (JSONValidator) MarshalToJSON(b []byte) ([]byte, error) + func (JSONValidator) ValidateSchema(b []byte, filePath string) (bool, error) + func (JSONValidator) ValidateSyntax(b []byte) (bool, error) + type PlistValidator struct + func (PlistValidator) ValidateSyntax(b []byte) (bool, error) + type PropValidator struct + func (PropValidator) ValidateSyntax(b []byte) (bool, error) + type SarifValidator struct + func (SarifValidator) ValidateSchema(b []byte, _ string) (bool, error) + func (SarifValidator) ValidateSyntax(b []byte) (bool, error) + type SchemaErrors struct + Items []string + Prefix string + func (e *SchemaErrors) Error() string + func (e *SchemaErrors) Errors() []string + type SchemaValidator interface + ValidateSchema func(b []byte, filePath string) (bool, error) + type TomlValidator struct + func (TomlValidator) MarshalToJSON(b []byte) ([]byte, error) + func (TomlValidator) ValidateSchema(b []byte, filePath string) (bool, error) + func (TomlValidator) ValidateSyntax(b []byte) (bool, error) + type ToonValidator struct + func (ToonValidator) MarshalToJSON(b []byte) ([]byte, error) + func (ToonValidator) ValidateSchema(b []byte, filePath string) (bool, error) + func (ToonValidator) ValidateSyntax(b []byte) (bool, error) + type ValidationError struct + Column int + Err error + Line int + func (e *ValidationError) Error() string + func (e *ValidationError) Unwrap() error + type Validator interface + ValidateSyntax func(b []byte) (bool, error) + type XMLSchemaValidator interface + ValidateXSD func(b []byte, schemaPath string) (bool, error) + type XMLValidator struct + func (XMLValidator) ValidateSchema(b []byte, filePath string) (bool, error) + func (XMLValidator) ValidateSyntax(b []byte) (bool, error) + func (XMLValidator) ValidateXSD(b []byte, schemaPath string) (bool, error) + type YAMLValidator struct + func (YAMLValidator) MarshalToJSON(b []byte) ([]byte, error) + func (YAMLValidator) ValidateSchema(b []byte, filePath string) (bool, error) + func (YAMLValidator) ValidateSyntax(b []byte) (bool, error) Other modules containing this package github.com/Boeing/config-file-validator