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
- Host: GitHub
- URL: https://github.com/joeferner/tst-reflect-json-schema-generator
- Owner: joeferner
- License: mit
- Created: 2022-05-07T12:57:14.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-28T13:51:14.000Z (about 4 years ago)
- Last Synced: 2025-06-20T07:49:38.984Z (about 1 year ago)
- Language: TypeScript
- Size: 247 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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());
```