Skip to content

Proposal: Auto-generate Type Definitions from JSON Schema #222

Description

@HideBa

Problem

CJSeq (Rust) and cjio (Python) each implement their own CityJSON data structures. Other languages would need to recreate these manually, leading to code duplication, inconsistencies, and maintenance overhead.

Solution

Auto-generate strongly-typed data structures for multiple programming languages using CityJSON's existing JSON Schema.

Target languages: TypeScript, Python, Rust, C++, Go, Java

Implementation

Use existing tools like https://github.com/bcherny/json-schema-to-typescript to create a CI pipeline that generates type definition.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions