json-schema-to-typescript icon indicating copy to clipboard operation
json-schema-to-typescript copied to clipboard

Compile JSON Schema to TypeScript type declarations

Results 212 json-schema-to-typescript issues
Sort by recently updated
recently updated
newest added

When [modeling inheritance](https://json-schema.org/blog/posts/modelling-inheritance), we can use `$ref` to point to an existing definition and extend it. e.g.: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "Sample", "type": "object", "additionalProperties": false, "properties": { "neighborhood":...

bug
help wanted

https://npmgraph.js.org/?q=cli-color - 14 dependencies https://npmgraph.js.org/?q=picocolors - 0 dependencies

Closes https://github.com/bcherny/json-schema-to-typescript/issues/623 I can't reopen the previous PR, so creating this as a new one

Incorrect Generation if oneOf is used mixed with properties. Exemple bellow : ```json { "$id": "http://dc.exail.com/schema-json/message_envelop", "title": "Generic Message Envelop", "description": "Generic message envelop", "type": "object", "properties": { "id": {...

`glob` is responsible for 26 out of 37 dependencies for this library: https://npmgraph.js.org/?q=json-schema-to-typescript. I'd love to see if we can find a way to reduce that. A few options I...

enhancement
in discussion

When i tried convert openapi schema 3.0 or 3.1 what i generate by spotlight, i got empty type like: ``` export interface Sandbox { [k: string]: unknown; } ``` Schema...

in discussion

Hello everyone, i have the below schema: ```json { "$schema": "http://json-schema.org/draft-06/schema#", "description": "Card Data Response", "type": "object", "properties": { "cardDataResponse": { "type": "object", "properties": { "candidateList": { "description": "a list...

This would be nice to ensure i don't accidentally try playing with values from responses but create my own local copy instead Example: ``` start "" json2ts -i "schemas/pietsmiet.de/*.schema.json" -o...

enhancement
help wanted
good first issue

resolves: https://github.com/bcherny/json-schema-to-typescript/issues/631 Current changes accept `$refOptions` argument as JSON string from command line. Those options are then being **merged** with default value for `$refOptions`. Even if current default value `{}`...

**a.json** ```json { "$schema": "http://json-schema.org/draft-07/schema#", "oneOf": [ { "$ref": "b.json" } ] } ``` **b.json** ```json { "$schema": "http://json-schema.org/draft-07/schema#", "oneOf": [ { "type": "string" }, { "type": "array", "items": {...

bug
help wanted
good first issue