validator

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONSchemaValidator

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

JSONSchemaValidator is entity that has ability to validate data against JSON schema

func NewJSONSchemaValidator

func NewJSONSchemaValidator(schemasDir string) JSONSchemaValidator

func (JSONSchemaValidator) Validate

func (jsv JSONSchemaValidator) Validate(document, schemaPath string) error

type SchemaValidator

type SchemaValidator interface {
	// Validate validates something
	Validate(document, schemaPath string) error
}

SchemaValidator describes entity that can validate something

Jump to

Keyboard shortcuts

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