Documentation ¶
Index ¶
Constants ¶
View Source
const (
// RootKey is a reference point for building json schema, used internally
RootKey = "utaskRootKey"
)
Variables ¶
This section is empty.
Functions ¶
func ExtractProperty ¶
ExtractProperty extract possible variables from a json schema.
func NormalizeAndCompile ¶
func NormalizeAndCompile(url string, s json.RawMessage) (json.RawMessage, error)
NormalizeAndCompile normalizes the version and then compile the json schema.
Types ¶
type ValidateFunc ¶
type ValidateFunc func(interface{}) error
ValidateFunc is jsonschema validator
func Validator ¶
func Validator(url string, rawSchema json.RawMessage) ValidateFunc
Validator generates a ValidateFunc from a json Schema definition
Click to show internal directories.
Click to hide internal directories.