validate

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetValidationMode

func GetValidationMode(validationFlag string) (bool, bool, error)

GetValidationMode converts validation mode flags to validation process flags.

func MtaYaml

func MtaYaml(projectPath, mtaFilename string,
	validateSchema, validateSemantic, strict bool, exclude string) (warning string, err error)

MtaYaml validates an MTA.yaml file.

func Mtaext added in v0.0.6

func Mtaext(projectPath, extPath string,
	validateSchema, validateSemantic, strict bool, exclude string) (warning string, err error)

Mtaext validates an MTA extension file.

Types

type YamlCheck

type YamlCheck func(yNode, yParentNode *yaml.Node, path []string) YamlValidationIssues

YamlCheck - validation check function type

type YamlValidationIssue

type YamlValidationIssue struct {
	// Msg - message content
	Msg string
	// Line - line number indicating issue
	Line int
}

YamlValidationIssue - specific issue

type YamlValidationIssues

type YamlValidationIssues []YamlValidationIssue

YamlValidationIssues - list of issue's

func (YamlValidationIssues) Sort added in v0.0.6

func (issues YamlValidationIssues) Sort()

Sort sorts the validation issues by line number

func (YamlValidationIssues) String

func (issues YamlValidationIssues) String() string

Jump to

Keyboard shortcuts

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