typescript-json-schema
typescript-json-schema copied to clipboard
Generate json-schema from your Typescript sources
By default, --noExtraProps should always be true, why? Think that developers are using it to create APIs (with Fastify), and this creates a false sense of security, because they're validating...
```ts interface Something { [value: number]: any; } ``` Generates ```json "patternProperties": { "^[0-9.]+$": { ... } } ``` The regex `^[0-9.]+$` does not account for decimals or other valid...
I was searching on the examples and tried some things on my code about a annotation for **maxProperties** property and found nothing. Already tried: - @TJS-maxProperties - @maxProperties - @items.maxProperties
Hey there, I've recently found this package and so far it works very nice. One thing I would really love would be something to be added to the generated schema...
I am experiencing some behavior that I am unsure if it is a feature or a bug. If I run multiple calls to `getSchemaForSymbol` I am not guaranteed to get...
I have an interface like: ```ts interface Thing { love: boolean } interface Container{ /** * Rad array of things * @item.minimum 1 */ things: Thing[] } ``` Because `@items`...
When using the latest version `0.52.0` I get the following error: > (node:24128) UnhandledPromiseRejectionWarning: Error: type IProcedureDefinition not found By switching back to `0.51.0` I do not get this. Generating...
It would help dependent packages greatly if you could maintain a list of at least breaking changes between versions, either in a dedicated CHANGELOG.txt or via GitHub’s Releases page.
I've been using this module quite successfully for a long time. I finally hit an issue with some naming conflicts and was very happy to discover the uniqueNames option. However...
ts file content ```typescript // a.ts import * as https from 'https'; import * as http from 'http'; export interface UserConfig { name: string; http: http.ServerOptions; // https: https.ServerOptions; }...