Skip to content

Generate thin model classes over a hand-written runtime #51

Open

Description

@OmarAlJarrah

Problem

Inlining forward-compat machinery (additionalProperties, validate/validity, dual accessors) into every generated class doesn't scale — the reference SDK is ~850k lines across ~1,100 model files, which would blow our coverage floor and binary-compat baseline.

Proposed change

Push the invariant machinery into the runtime (the four-state field model) and emit only the field list + accessors per model (≈<100 lines each). Decide up front to exclude generated modules from the aggregate Kover floor and give them a separate .api baseline.

Acceptance

  • Generated models are thin
  • Coverage + binary-compat strategy for generated code documented

Depends on the four-state field model.

Dependencies


Priority: highest · Effort: large

Activity

  1. added
    codegen
    tech-debt
    on Jun 10, 2026
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

    codegentech-debt

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions