jsonschema

package
v9.9.9+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(fileName string, input string) error

Validate validates the input argument against JSON schema. If the input is not valid the error is returned. The first argument is the file name of the JSON schema. It is used to build file URI required to load the JSON schema. The second argument is the input string that is validated.

Types

type ValidationField

type ValidationField struct {
	Keyword      string
	KeywordValue interface{}
}

ValidationField is a struct used in JSON schema

Jump to

Keyboard shortcuts

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