Skip to content

Document the machine-readable Wave diagnostic JSON contract #404

Closed

Description

@LunaStev

Why

wavec --error-format=json is regression-tested and useful to editors, Vex, and other tools, but its fields, output stream, exit behavior, and compatibility expectations are not documented for consumers.

Scope

  • Document how to select JSON errors and which commands honor the option.
  • Describe the current top-level fields with one short, real example.
  • State that diagnostics are emitted on stderr and normal command output remains on stdout.
  • Document exit-code categories already exposed by the CLI.
  • Explain which fields consumers may treat as stable and how new optional fields may be added.
  • Do not redesign the schema in this issue.

Likely references

  • src/errors.rs
  • src/main.rs
  • JSON diagnostic regressions in tests/codegen_regressions.rs

Completion criteria

  • The example parses as JSON.
  • Field descriptions match the implementation.
  • Human and JSON selection commands are shown.
  • Vex/editor authors can consume the contract without reading Rust source.

Activity

  1. added
    documentation
    good first issue
    on Aug 28, 2026
  2. added a commit that references this issue on Oct 22, 2026
    aef39a5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions