jsonschema

package
v1.69.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package jsonschema builds the JSON Schema of the document `pista parse` writes. It reflects over parser.ParseResult, so the schema follows the structs rather than a description kept beside them.

Index

Constants

View Source
const ID = "https://winebarrel.github.io/pistachio/json/schema-" + Version + ".json"

ID is the URL the documentation site carries the schema at.

View Source
const Path = "docs/json/schema-" + Version + ".json"

Path is where the file sits in the repository and on the documentation site.

View Source
const Version = "1.0"

Version is the version the schema's file name and URL carry.

Variables

This section is empty.

Functions

func Build

func Build() (*jsonschema.Schema, error)

Build returns the schema of a `pista parse` document.

func Marshal

func Marshal() ([]byte, error)

Marshal returns the schema as the file holds it: indented, and with the trailing newline a text file ends on.

Types

This section is empty.

Jump to

Keyboard shortcuts

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