jsonschema

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONSchema

type JSONSchema struct {
	Ref    string                 `json:"ref"`
	Schema map[string]interface{} `json:"schema"`
}

type JSONSchemaList

type JSONSchemaList []JSONSchema

func (JSONSchemaList) ToString

func (l JSONSchemaList) ToString() (string, error)

type JSONSchemaResolver

type JSONSchemaResolver struct {
	// contains filtered or unexported fields
}

func NewJSONSchemaResolver

func NewJSONSchemaResolver(loaderConfig *lsjsonschema.LoaderConfig, maxRefDepth int) *JSONSchemaResolver

func (*JSONSchemaResolver) Resolve

returns a list of jsonschemas. the first element in the list is the initial jsonschema itself. all subsequent schemas in the list are the resolved schemas that are referenced via "$ref".

Jump to

Keyboard shortcuts

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