jsonschema

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

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

func ExtractProperty(url string, s json.RawMessage) (map[string][]string, error)

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

Jump to

Keyboard shortcuts

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