validator

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateConfig

func ValidateConfig(path, flavor string) error

ValidateConfig uses ValidateFile and to check config for a given directory is valid config.

func ValidateFile

func ValidateFile(path string, schema *gojsonschema.Schema) (map[string]interface{}, error)

ValidateFile checks the file exists and is valid yaml, then returns the unmarshalled data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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