typescript-json-schema
typescript-json-schema copied to clipboard
Generate json-schema from your Typescript sources
When trying to use [`typescript-json-schema`](https://github.com/YousefED/typescript-json-schema) `programatically` I stubled across some weird behaviour that did not match the `cli` output. I build a minimal example to reproduce this issue fast: https://github.com/lukas-runge/tjs-bug-demo....
We'd like to generate schemas from our interfaces and also include functions and their respective parameters, as well as their corresponding types. Do you plan to support such a scenario?...
TypeScript 5 has been out for a while and TypeScript 5.1 is almost here, so we should update to latest if we can One of the deprecations from TypeScript 4...
Bumps [semver](https://github.com/npm/node-semver) from 5.7.1 to 5.7.2. Release notes Sourced from semver's releases. v5.7.2 5.7.2 (2023-07-10) Bug Fixes 2f8fd41 #585 better handling of whitespace (#585) (@joaomoreno, @lukekarrys) Changelog Sourced from semver's...
Sorry if this behavior already exists, I've reviewed the docs and am pretty sure it doesn't. I'm transferring ts -> json schema and then json schema -> pydantic. In this...
When I am trying to generate the schema, I am getting the following error. ``` Cannot find type definition file for 'moment'. The file is in the program because: Entry...
Please: - [x] Make your pull request atomic, fixing one issue at a time unless there are many relevant issues that cannot be decoupled. - [x] Provide a test case...
https://json-schema.org/understanding-json-schema/reference/generic.html?highlight=readonly We can add a flag to output readonly variable for the properties only when the flag is used. We can change the files here to add support https://github.com/YousefED/typescript-json-schema/pull/235 I...
Hey there! I have 2 files in a structure like this: - schemas - types-a.ts - types-b.ts **types-a.ts** ``` import type { TypeB } from './types-b' export type TypeA {...
When using Omit to extend a class, e.g. `export interface Obj extends Omit {` The JSON generated is basically empty: `{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "patternProperties": { "^[0-9]+$": {} },...