Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Validate ¶ added in v0.7.0
func Validate(dataFile, schemaFile string, opts *ValidateOptions) (ok bool, err error)
Validate validates the given data file against the specified schema file with the provided options.
func ValidateCode ¶
func ValidateCode(data, code string, opts *ValidateOptions) (ok bool, err error)
func ValidateCodeFile ¶ added in v0.8.0
func ValidateCodeFile(dataFile, data, code string, opts *ValidateOptions) (ok bool, err error)
Types ¶
type ValidateOptions ¶
type ValidateOptions struct { Schema string // The schema to validate against. AttributeName string // The attribute name to validate. Format string // The format of the data. }
ValidateOptions represents the options for the Validate function.
Click to show internal directories.
Click to hide internal directories.