validation

package
v0.0.0-...-be147c4 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadSchema

func LoadSchema(path, schemaid string)

LoadSchema loads a JSON Schema file from `path` and assigns it to the `schemaid`. Note that any error here is fatal.

func Validate

func Validate(schemaid string, rawdata interface{}) (bool, string)

Validate validates `rawdata` using the cached `schemaid` and returns a user-friendly error message (as a string) in case of any validation error

Types

This section is empty.

Jump to

Keyboard shortcuts

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