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

I'm working on a custom RPC-like client-server communication layer, where I publish the back-end schema as JSON, and using this tool (thanks, BTW 🙂) I generate TypeScript for the frontend...

enhancement

Fixes https://github.com/bcherny/json-schema-to-typescript/issues/472. This isn't QUITE right yet because the comment isn't on the property...

I have an schema like: ```json { "title": "Person", "type": "object", "conditions": { "type": "object", "patternProperties": { "applies_to_(foo|bar)": { "type": "string" } } } } ``` This can be transferred...

Thank you for the great package. Could someone help me to confirm the below question related to the `engines.node` from v11.0.3 and later (from v11.0.5)? **My question is:** The current...

## Context: Boolean JSON schemas are `true` and `false`: - `true` passes the validation of any input. - `false` fails the validation of any input. Consider the specs as references:...

enhancement
help wanted
good first issue

Example: A rectangle schema with two corners. Both corners are the same type and most importantly share a `title`. I know this isn't an ideal schema (should ref in the...

enhancement
help wanted
good first issue

The latest spec allows support for named anchors: https://json-schema.org/understanding-json-schema/structuring.html#using-id-with-ref For example, named anchors would allow the following to compile: ```json { "$id": "#myName", "properties": { "myProp": { "$ref": "#myName" }...

enhancement
external

Readme specifies that you can run `json2ts foo.yaml foo.d.ts` but that doesn't work, because cli is not using `compileFromFile`: https://github.com/bcherny/json-schema-to-typescript/blob/master/src/cli.ts#L128-L131.

I'm trying to reproduce an inheritance schema like this: ``` Thing | Vehicle | \ Car Truck ``` Using the "allOf" keyword with a schema like this: ```json { "$schema":...

bug
help wanted

Added escape chars to avoid the `|` in type definition being interpreted as cell separator