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 199 json-schema-to-typescript issues
Sort by recently updated
recently updated
newest added

Picking up where #312 left off. This PR adds a normalizer that converts `nullable: true` primitive types into `anyOf` types.

When running against the CircleCI configuration schema here, https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/circleciconfig.json a max call stack size error is thrown. This seems to be caused by the circular references on the `logical` definitions...

bug
help wanted

Allow user to generate custom/unknown jsonschema properties as JSDoc tags. It should (help? fully?) fixes #237 Example: ```jsonc // person.json { "title": "Person", "type": "object", "properties": { "firstName": { "type":...

Apologies if this has been asked before, I did a few searches but couldn't quite find this. I have a directory of schemas. Each of those schemas sometimes share references...

enhancement
help wanted

The following schema: ```json { "properties": { "s": { "type": "string"} }, "additionalProperties": { "properties": { "foo": {"type" : "string"} } } ``` produces this typing: ```ts /* tslint:disable */...

blocked
external

A quick fix for #299, #356 and #402. Given the schema ```json { "title": "AdditionalProperties", "type": "object", "properties": { "foo": { "type": "string" } }, "additionalProperties": { "type": "number" }...

Exposes the default value for `additionalProperties` on an `object` type as an option, implementing a repeatedly requested feature (#335, #346, #358). I've added the option to the appropriate interface, the...

What do you think about translating e.g. ```TypeScript { allOf: [ { type: 'object', properties: {a: {type: 'string'}, b: {type: 'integer'}}, additionalProperties: false, required: ['a', 'b'] }, {type: 'object', properties:...

This adds 'prepare' script that npm/yarn will run upon package installation in node_modules. Previously installation from GitHub would fail because dist is not committed to the repository but 'bin'->'json2ts' refers...