Skip to content

Code generation: spec v1.0 support (multilang, type-range, UI annotations) #24

Open

Description

@simontaurus

Extend generator.py to handle all spec v1.0 features: multilang properties, type-range, UI annotations in generated Pydantic classes. Fix partial $ref TODO in utils/codegen.py.

Acceptance Criteria

  • Generator handles multilang properties
  • Generator handles type-range
  • Generator handles UI annotations
  • Partial $ref TODO in utils/codegen.py fixed

Activity

  1. self-assigned this
    on Jun 5, 2026
  2. raederan commented on Nov 18, 2026

    @raederan
    Member

    Moving the last criterion of #26, "Code generation tests for spec v1.0 patterns", to this
    issue, because those tests depend on the generator work here.

    Finding (95bdbcd, v2.3.2 plus open PRs #180 to #182): generator.py:165 reads only the legacy
    "range" key. With "x-oold-range" a property generates as str | None instead of
    Organization | None (pydantic v1 and v2), and on array items the range is lost entirely.

    Proposed criterion for this issue:

    • Generator tests for spec v1.0 patterns (x-oold-range next to legacy range)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

M2Core Features Complete

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions