validate

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultSchema   *jsonschema.Schema
	DefaultCompiler *jsonschema.Compiler
)

Functions

func Json

func Json(data []byte) error

Json validates a given data in JSON format against the DefaultSchema.

func Report

func Report(err error, detailed bool) string

Report converts given error to Json format.

func Spec

func Spec(o *spec.Extendable[spec.OpenAPI]) error

Spec validates a given spec against the DefaultSchema.

func Yaml

func Yaml(data []byte) error

Yaml validates a given data in YAML format against the DefaultSchema.

Types

This section is empty.

Jump to

Keyboard shortcuts

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