Documentation ¶
Index ¶
- func ShouldNotValidate(actual interface{}, _ ...interface{}) string
- func ShouldValidate(actual interface{}, _ ...interface{}) string
- func ValidateDirectory(directoryPath string, schemaPath string) ([]*gojsonschema.Result, error)
- func ValidateFile(filePath string, schemaPath string) (*gojsonschema.Result, error)
- func ValidateFileWithInput(filePath string, schema []byte) (*gojsonschema.Result, error)
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.
Click to show internal directories.
Click to hide internal directories.