catalog-schemas

command
v0.9.21 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 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

catalog-schemas dumps JSON Schema files for every catalog wire kind, one file per kind under <out>/. The schemas are derived from the same Go types (app/manifest DTOs) the relay binary uses to parse YAMLs, so they stay in lockstep with the code by construction.

Usage:

catalog-schemas <out-dir>

Produces, e.g.:

<out>/Provider.schema.json
<out>/Host.schema.json
<out>/Model.schema.json
... and so on for every catalog kind.

Each file is self-contained: the root schema is the kind wrapper (apiVersion+kind+metadata+spec), and any referenced sub-types are inlined under $defs. Editors that understand the `# yaml-language-server: $schema=...` directive get autocomplete and inline diagnostics. CI uses check-jsonschema against the same files.

Run `make schemas` to regenerate; CI ensures `git diff --exit-code schemas/` so Go-type changes that affect the wire format land with their corresponding schema bump.

Jump to

Keyboard shortcuts

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