validator

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: GPL-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShouldNotValidate

func ShouldNotValidate(actual interface{}, _ ...interface{}) string

func ShouldValidate

func ShouldValidate(actual interface{}, _ ...interface{}) string

ShouldValidate validates result signature uses interface{} and unused parmeter because this method is also used in tests with Convey

func ValidateDirectory

func ValidateDirectory(directoryPath string, schemaPath string) ([]*gojsonschema.Result, error)

func ValidateFile

func ValidateFile(filePath string, schemaPath string) (*gojsonschema.Result, error)

ValidateFile validates the contents of filePath with the schema

func ValidateFileWithInput added in v1.2.0

func ValidateFileWithInput(filePath string, schema []byte) (*gojsonschema.Result, error)

ValidateFileWithInput validates the contents of filePath with the given schema file content

Types

This section is empty.

Jump to

Keyboard shortcuts

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