jsonschemax

package
v0.0.81 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: Apache-2.0 Imports: 5 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Path

type Path struct {
	// Name is the JSON path name.
	Name string

	// Default is the default value of that path.
	Default interface{}

	// Type is a prototype (e.g. float64(0)) of the path type.
	Type interface{}
}

Path represents a JSON Schema Path.

func ListPaths

func ListPaths(root string) ([]Path, error)

ListPaths lists all paths of a JSON Schema. Will return an error if circular dependencies are found.

func ListPathsBytes

func ListPathsBytes(root []byte) ([]Path, error)

ListPathsBytes lists all paths of a JSON Schema (typed as []byte). Will return an error if circular dependencies are found.

Jump to

Keyboard shortcuts

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