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 ¶
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.
Click to show internal directories.
Click to hide internal directories.