package
1.9.7
Repository: https://github.com/gdt-dev/gdt.git
Documentation: pkg.go.dev

# Functions

JSONFormatError returns an ErrFailure when a JSONFormat expression could not evaluate to a found element.
JSONFormatNotEqual returns an ErrFailure when a an element at a JSONPath was not in the expected format.
JSONPathConversionError returns an ErrFailure when a JSONPath expression evaluated to a found element but the expected and found value types were incomparable.
JSONPathInvalid returns an ErrParse when a JSONPath expression could not be parsed.
JSONPathInvalidNoRoot returns an ErrJSONPathInvalidNoRoot when a JSONPath expression does not start with '$'.
JSONPathValueNotEqual returns an ErrFailure when a JSONPath expression evaluated to a found element but the value did not match an expected string.
JSONPathNotFound returns an ErrFailure when a JSONPath expression could not evaluate to a found element.
JSONSchemaFileNotFound returns ErrJSONSchemaFileNotFound for a supplied path.
JSONSchemaInvalid returns an ErrFailure when some content could not be validated with a JSONSchema.
JSONSchemaValidateError returns an ErrFailure when a JSONSchema could not be parsed.
JSONUnmarshalError returns an ErrFailure when JSON content cannot be decoded.
New returns a `api.Assertions` that asserts various conditions about JSON content.
UnsupportedJSONSchemaReference returns ErrUnsupportedJSONSchemaReference for a supplied URL.

# Variables

ErrJSONFormatError returns an ErrFailure when a JSONFormat expression could not evaluate to a found element.
ErrJSONFormatNotEqual returns an ErrFailure when a an element at a JSONPath was not in the expected format.
ErrJSONPathConversionError returns an ErrFailure when a JSONPath expression evaluated to a found element but could not be converted to a string.
ErrJSONPathInvalid returns an ErrParse when a JSONPath expression could not be parsed.
ErrJSONPathInvalidNoRoot returns an ErrParse when a JSONPath expression does not start with '$'.
ErrJSONPathNotEqual returns an ErrFailure when a JSONPath expression evaluated to a found element but the value did not match an expected string.
ErrJSONPathNotFound returns an ErrFailure when a JSONPath expression could not evaluate to a found element.
ErrJSONSchemaFileNotFound indicates a specified JSONSchema file could not be found.
ErrJSONSchemaInvalid returns an ErrFailure when some content could not be validated with a JSONSchema.
ErrJSONSchemaValidateError returns an ErrFailure when a JSONSchema could not be parsed.
ErrJSONUnmarshalError is returned when JSON content cannot be decoded.
ErrUnsupportedJSONSchemaReference indicates that a specified JSONSchema file is referenced as an HTTP(S) URL instead of a file URI.

# Structs

Expect represents one or more assertions about JSON data responses.