lbovet / typson

Converts TypeScript to JSON-schema

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generate typescript interfaces from jsonschema

JeroMiya opened this issue · comments

This is probably out of scope for typson, but it would be incredibly useful to have a typeson mode or related project that does the reverse of what typson does - i.e. convert jsonschema into a set of TypeScript interfaces, possibly with some configuration to customize the mapping (since TypeScript -> jsonschema is lossy).

I wouldn't mind if you had to use anonymous structural types in the generated TypeScript declarations, as seems likely.

Yep, this is out of scope for Typson. The motivation for this project was mainly because handwritten json-schema is a tedious task, wheras writing typescript is easy and tool-supported.
I expected to see this happen in the typescript community