An open API service indexing awesome lists of open source software.

https://github.com/joeferner/tst-reflect-json-schema-generator

Generate JSON schema from tst-reflect types
https://github.com/joeferner/tst-reflect-json-schema-generator

Last synced: 11 months ago
JSON representation

Generate JSON schema from tst-reflect types

Awesome Lists containing this project

README

          

# Install

- See [tst-reflect: How To Start](https://github.com/Hookyns/tst-reflect#how-to-start) to get runtime type information.
- Run `pnpm install tst-reflect-json-schema-generator`

# Usage

```
import { createJsonSchema } from "tst-reflect-json-schema-generator";

export interface MyData {
propA: number;
propB: number;
propC: string;
}

const schema = createJsonSchema(getType());
```