Documentation
¶
Overview ¶
Package validator provides validation for known data formats.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct{}
Service provides format validation for known data formats.
func (*Service) IsValidFormat ¶ added in v0.9.1
IsValidFormat checks if format is in the list of supported formats.
func (*Service) SupportedFormats ¶ added in v0.9.1
SupportedFormats returns the list of supported formats.
func (*Service) Validate ¶
Validate checks if value is valid for the given format. Returns nil for text, shell, or unknown formats (no validation). Returns descriptive error for invalid json, yaml, xml, toml, ini, hcl. Note: YAML is extremely permissive - almost any text parses as a valid string scalar.
Click to show internal directories.
Click to hide internal directories.