schema

package
v0.14.2-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package schema embeds the hand-authored JSON Schema for the cascade manifest and exposes it to the CLI and to editors.

The canonical, authored schema lives at internal/schema/manifest.schema.json and is embedded into the binary. Two on-disk copies are kept byte-identical to it for distribution: schema/manifest.schema.json (a stable repo-root path) and docs/public/manifest.schema.json (served at the published $id URL). The drift test in this package asserts all three copies match, so a maintainer who edits one must sync the others.

To regenerate the published copies after editing the canonical schema:

cascade schema --output schema/manifest.schema.json
cp schema/manifest.schema.json docs/public/manifest.schema.json

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes() []byte

Bytes returns the embedded manifest JSON Schema as raw bytes.

func NewCommand

func NewCommand() *cobra.Command

NewCommand creates the schema command, which prints the embedded manifest JSON Schema. Editors can use the schema for autocomplete, type checking, and hover documentation while authoring a manifest.

func String

func String() string

String returns the embedded manifest JSON Schema as a string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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