Skip to content

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

@HideBa

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.

Metadata

Metadata

Assignees

No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions