Skip to content

feat: add input-config JSON schemas with editor association - #946

Merged
ivan-aksamentov merged 2 commits into
rustfrom
feat/config-input-schemas
Sep 1, 2026
Merged

feat: add input-config JSON schemas with editor association#946
ivan-aksamentov merged 2 commits into
rustfrom
feat/config-input-schemas

Conversation

@ivan-aksamentov

Copy link
Copy Markdown
Member
  • Add draft 2020-12 config schemas for each command and the pipeline under packages/schemas, named input-config-<command-or-flavor>
  • Accept a top-level $schema key in per-command configs, stripping it before the strict merge and declaring it in the generated command schemas so editors do not flag it
  • Guard the committed schemas against drift with a regeneration test
  • Reference each example config's schema with a yaml-language-server modeline pointing at the rust branch, with the $schema key documented for JSON configs
  • Rewrite the data/README.md and packages/schemas editor-support docs for the modeline

- Commit draft 2020-12 schemas for each command config and the pipeline under `packages/schemas`, named `input-config-<command-or-flavor>` so the category is legible and inputs and outputs can follow the same scheme.
- Accept a top-level `$schema` association key in a per-command config: the loader strips it before the strict merge, and the generated command schema declares it so an editor validating a config that carries it does not flag it against `additionalProperties: false`.
- Guard the committed schemas against drift by regenerating them in a test and comparing.
Add a `yaml-language-server` modeline to each example pointing at its committed schema on the `rust` branch, so an editor gives completion, hover documentation, and inline validation. A JSON config, which cannot carry a comment, uses a top-level `$schema` key with the same URL instead.
@ivan-aksamentov
ivan-aksamentov merged commit 59d5327 into rust Sep 1, 2026
9 checks passed
@ivan-aksamentov
ivan-aksamentov deleted the feat/config-input-schemas branch September 1, 2026 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant