Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupportedSchemaType = fmt.Errorf("analysis: unsupported schema type")
ErrUnsupportedSchemaType is returned when a schema is given that is unsupported by average.
Functions ¶
func CompliantData ¶
CompliantData returns whether the given data complies to the schema. If the data has a field that is in the schema but does not match the type specified in the schema, then it is considered invalid. If there is a field in the data that is missing, (is present in the schema but not in the data), the data is still considered valid. If there is a field in the schema that is missing, but is present in the data, the data is still considered valid.
Types ¶
type Data ¶
type Data map[string]interface{}
Data provides a type for data, a map of key names to their values.
Click to show internal directories.
Click to hide internal directories.