schema

package
v1.1.11 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Schema string

Functions

func GetErrorMessage added in v1.1.7

func GetErrorMessage(err *jsonschema.ValidationError) (string, string)

func GetJsonSchema added in v1.1.7

func GetJsonSchema() interface{}

func Validate

func Validate(config map[string]interface{}) error

Validate uses the jsonschema to validate the configuration

Types

type Item added in v1.1.7

type Item struct {
	Default     interface{}
	Required    bool
	Description string
	Items       Items
}

type Items added in v1.1.7

type Items map[string]Item

func GetSchema added in v1.1.7

func GetSchema() Items

Jump to

Keyboard shortcuts

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