Description
TypeSchema is a JSON specification for describing data models in a format that does not depend on any programming language. You write a model once and generate code from it, with generators for many languages, including C#, Go, GraphQL, HTML, Java, JSON Schema, Kotlin, Markdown, PHP, Protobuf, Python, Ruby, Rust, Swift, TypeScript and Visual Basic. The site describes it as optimized for code generation, and it is meant to be a portable way to share data models across languages. The generated output is intended to be clean, simple DTOs, and the specification handles more advanced ideas such as inheritance, polymorphism and generics. You can use reflection to turn an existing class into a TypeSchema specification, and you can write your own code generator. The site has a specification page, a sandbox for trying the format, an examples page with sample output for each language, and an integration section that covers the wider Apioo ecosystem. TypeSchema is part of the Apioo project, alongside TypeAPI, Fusio and PSX. The source is on GitHub at apioo/typeschema, and the project has a Discord server.…
Highlights
- Language-neutral JSON data model specification
- Generators for many languages
- Inheritance, polymorphism and generics
- Reflection from existing classes
- Write your own code generator
Ratings & Reviews
No ratings yet
Be the first to rate TypeSchema.
People also visit

openapi-to-typescript
Converts OpenAPI 3.0 JSON/YAML to TypeScript interfaces and type guards
TypeSchema FAQ
What is TypeSchema?
A JSON specification for describing data models in a format that is neutral to programming languages.
Which languages can it generate code for?
C#, Go, GraphQL, HTML, Java, JSON Schema, Kotlin, Markdown, PHP, Protobuf, Python, Ruby, Rust, Swift, TypeScript and Visual Basic, according to the examples page.
Can I try it without installing?
Yes. The site has a sandbox for trying the specification.
Can I write my own generator?
Yes. The site says it is easy to implement your own code generator.
Does it handle inheritance?
Yes. It handles inheritance, polymorphism and generics.
Where is the source?
On GitHub at apioo/typeschema, as part of the Apioo project.
What are the best TypeSchema alternatives?
Popular alternatives to TypeSchema include Quicktype, Skir and JSONFictor. See all TypeSchema alternatives











