stepschema

command
v0.8.2 Latest Latest
Warning

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

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

Documentation

Overview

Command stepschema writes a JSON Schema for every step's `with:` block, so a form can be generated from the same struct the step validates against.

**Generated, not hand-written** (#114). Every step already has a Go config struct with json tags, and CheckConfig already decodes strictly into it. A schema written beside that struct would be a second description of one thing, free to disagree — and it would disagree silently, because nothing fails when a form offers a field the step does not read.

**Generated at build time, not served from reflection.** The field descriptions are the Go doc comments, and reading those needs the source, which a container does not have. Committing the output also means the existing "Generated files are current" check catches a struct that changed without the schema following — the same bargain the CRDs already make.

Jump to

Keyboard shortcuts

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