schema

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ParseMessage

type ParseMessage func(interface{}) error

type Parser

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

Parser parses a given structure and validates it against a JSON Schema.

func NewParser

func NewParser(schema []byte) *Parser

NewParser creates a new Parser.

func (*Parser) Parse

func (p *Parser) Parse(data interface{}) error

Parse is the main function to parse a given structure and validate it against a JSON Schema. Implements ParseMessage.

Directories

Path Synopsis
asyncapi
v2
jsonschema
openapi
v2

Jump to

Keyboard shortcuts

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