schema

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package schema holds the JSON Schema of hearth's app manifest, format major 1, and the validation that a manifest passes before an app or lodge reads it.

The schema's own bytes are the contract; docs/specs/manifest.md describes the format in prose.

Index

Constants

View Source
const File = "schema/manifest-v1.json"

File is the schema's path in this repository.

View Source
const ID = "https://raw.githubusercontent.com/frostyard/hearth/main/schema/manifest-v1.json"

ID is the schema's $id: the URL that the schema publishes itself under.

Variables

This section is empty.

Functions

func Bytes

func Bytes() []byte

Bytes returns a copy of the schema's bytes.

func Validate

func Validate(data []byte) error

Validate checks data, a manifest in JSON, against the manifest format's schema. The error of an invalid manifest is 1 line: the location of the first problem and what the problem is.

Types

This section is empty.

Jump to

Keyboard shortcuts

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