validate

package
v0.10.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL