Skip to content

Generate JSON schemas from Go structs #66

Open

Description

@David-Noble-at-work

Summary

Generate JSON schemas from Go struct definitions using invopop/jsonschema. This makes Go the single source of truth for configuration schemas.

Important: No Legacy

We have no legacy. We do not need aliases or any concern for backwards compatibility. We are in a period of rapid change. It is dangerous to leave anything that smacks of preserving legacy.

  • Delete manually-maintained schemas
  • Generate fresh from Go structs
  • No backwards compatibility with old schema formats

Background

Currently schemas are manually maintained in schema/ directory. They drift from actual Go code. With consolidated config types (#67), we can generate accurate schemas directly from Go structs.

Implementation

Use invopop/jsonschema:

  • Add jsonschema struct tags to config types
  • Generate schemas at build time or via go generate
  • Delete manually-maintained schema files

Blocked By

Related

Activity

  1. David-Noble-at-work commented on Nov 9, 2026

    @David-Noble-at-work
    ContributorAuthor

    star github triage sweep added this issue to Triage: devlore, for the rule it breaks:

    • no-evidence: no Evidence of completion section
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

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions