jsonschema

package
v0.0.0-...-2263012 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dereference

func Dereference(anyVal interface{}, opts DereferenceOptions) (interface{}, error)

func Loader

func Loader(path string) gojsonschema.JSONLoader

Load a JSON Schema with or without a path prefix

func Validate

func Validate(schemaPath string, documentPath string) (*gojsonschema.Result, error)

Validate the input object against the schema

Types

type DereferenceOptions

type DereferenceOptions struct {
	Client *restclient.MassdriverClient
	Cwd    string
	Fs     afero.Fs
}

Jump to

Keyboard shortcuts

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