schema

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileSystem

func FileSystem() http.FileSystem

FileSystem returns an in-memory filesystem including the schema files. The schema files are located at the root directory.

Types

type Validator

type Validator string

Validator wraps a media type string identifier and implements validation against a JSON schema.

const (
	ValidatorMediaTypeModelConfig Validator = v1.MediaTypeModelConfig
)

Media types for the model-spec related formats

func (Validator) Validate

func (v Validator) Validate(src io.Reader) error

Validate validates the given reader against the schema of the wrapped media type.

Jump to

Keyboard shortcuts

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