schema

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package schema exposes the normative LogSchema JSON Schema documents.

Index

Constants

View Source
const (
	// CoreV1DefinitionsID identifies the LogSchema core v1 definitions.
	CoreV1DefinitionsID = "https://tkuchiki.github.io/logschema/schema/core/v1/definitions.schema.json"
	// HTTPV1RequestID identifies the LogSchema HTTP request v1 schema.
	HTTPV1RequestID = "https://tkuchiki.github.io/logschema/schema/http/v1/request.schema.json"
	// SQLV1QueryID identifies the LogSchema SQL query v1 schema.
	SQLV1QueryID = "https://tkuchiki.github.io/logschema/schema/sql/v1/query.schema.json"
)

Variables

FS contains the catalog and the core, HTTP, and SQL JSON Schema documents.

Functions

func Read

func Read(id string) ([]byte, error)

Read returns an embedded schema resource by its identifier. It returns an error matching fs.ErrNotExist when the identifier is unknown.

Types

type Resource

type Resource struct {
	ID   string
	Path string
}

Resource associates a schema identifier with its embedded file path.

func Resources

func Resources() []Resource

Resources returns the schema resources that consumers should register with their validator before compiling a schema that contains external references.

Jump to

Keyboard shortcuts

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