jsonhandle

package
v0.0.0-...-32049d6 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MIME is the JSON content type
	Content mxftest.CType = "application/json"
)

Variables

View Source
var DataIdentifier = mxftest.DataIdentifier{DataFunc: jSONIdentifier, ContentType: Content}

DataIdentifier is the JSON identifier function

Functions

func SchemaCheck

func SchemaCheck(sc mxftest.SniffContext, schemaFile []byte, key string) (mxftest.Sniffer, error)

SchemaCheck creates a sniffer test where the bytes are compared against a **local** schema. If the object passes it is returned with the field of "pass", otherwise an empty object is returned, with no inclination of why it failed the test.

This is quite a slow snifftest as it checks all the data is valid, so do not expect quick results for: - Large JSON files - Large and complex schemas

Types

This section is empty.

Jump to

Keyboard shortcuts

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