Documentation
¶
Overview ¶
Package datatype holds utilities for working with different data formats.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JSONSchemaValidator ¶ added in v0.8.6
type JSONSchemaValidator struct {
// contains filtered or unexported fields
}
JSONSchemaValidator is entity that has ability to validate data against JSON schema.
func NewDefaultJSONSchemaValidator ¶ added in v0.8.6
func NewDefaultJSONSchemaValidator(schemasDir string) JSONSchemaValidator
func NewJSONSchemaValidator ¶ added in v0.8.6
func (JSONSchemaValidator) Validate ¶ added in v0.8.6
func (jsv JSONSchemaValidator) Validate(document, schemaPath string) error
Validate validates document against JSON schema located in schemaPath. schemaPath may be URL or relative/full path to json schema on user OS
Click to show internal directories.
Click to hide internal directories.