Help us shape the future of Go! Take the 2026 Go Developer Survey

schemagen

command
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Command schemagen writes the JSON Schema of the Agent Wire Protocol from the wire package, which is the source of truth: every message type, its fields, their constraints and the doc comments come from there.

go run ./internal/schemagen            # writes schema/v0/awp.schema.json and schema.mdx
go run ./internal/schemagen -check     # fails if either file is stale

It must run from the repository root (go generate ./wire and make schema do), since the comments are read from the wire package's source.

Jump to

Keyboard shortcuts

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