schema

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RecordTypeManifestVersion = coreschema.RecordTypeManifestVersion
	RecordTypeManifestPath    = coreschema.RecordTypeManifestPath
)

Variables

This section is empty.

Functions

func ValidateJSON

func ValidateJSON(schemaPath string, data []byte) error

ValidateJSON validates JSON bytes against a JSON schema file.

func ValidateJSONFile

func ValidateJSONFile(schemaPath, jsonPath string) error

ValidateJSONFile validates a JSON file against a JSON schema file.

func ValidateJSONL

func ValidateJSONL(schemaPath string, data []byte) error

ValidateJSONL validates each non-empty JSONL line against a schema.

func ValidateJSONLFile

func ValidateJSONLFile(schemaPath, jsonlPath string) error

ValidateJSONLFile validates each non-empty line in a JSONL file against a schema.

Types

type RecordTypeDefinition added in v0.6.0

type RecordTypeDefinition = coreschema.RecordTypeDefinition

Portable custom record type APIs are re-exported from the compatibility schema package for callers that historically imported proof/schema.

type RecordTypeManifest added in v0.6.0

type RecordTypeManifest = coreschema.RecordTypeManifest

func ParseRecordTypeManifest added in v0.6.0

func ParseRecordTypeManifest(raw []byte) (RecordTypeManifest, error)

type Registry added in v0.6.0

type Registry = coreschema.Registry

func LoadRecordTypeManifest added in v0.6.0

func LoadRecordTypeManifest(raw []byte, schemaFiles map[string][]byte) (*Registry, error)

func LoadRecordTypeManifestWithResources added in v0.6.0

func LoadRecordTypeManifestWithResources(raw []byte, schemaFiles map[string][]byte) (*Registry, error)

func NewRegistry added in v0.6.0

func NewRegistry() *Registry

func NewScopedRegistry added in v0.6.0

func NewScopedRegistry() *Registry

Jump to

Keyboard shortcuts

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