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

- This change isn't changing any of the existing behavior by default. - When enabled however, it'll generate integers with no 'maximum' property as 'bigint'. Why? While JSON supports big...

If root node is not plain object type, `unreachableDefinitions` doesn't work and unreached definitions is not exported. Calling: `json2ts -i test.schema.json -o test.d.ts --unreachableDefinitions` Package version: 10.1.5 Node version: 17.3.1...

bug
help wanted

Similar to #259 this change adds `isObjectType` in front of an `'maxItems' in schema` and `'minItems' in schema` checks to avoid errors when dealing with boolean schemas.

solves #324 - fixed error of resolving relative paths in schemas - added launch.json that includes debuggable tests in vs code - unified imports. no more require used in project...

I have something like this: ``` { "$schema": "http://json-schema.org/draft-07/schema#", "title": "QueryMsg", "oneOf": [ { "description": "This is variant 1", "type": "object", "required": [ "kind" ], "properties": { "kind": { "type":...

A schema of: ```json { "type": "object", "properties": { "$schema": { "description": "The JSON schema reference.", "type": "string" }, }, "additionalProperties": { "type": "object" } } ``` resolves to: ```ts...

bug
external

```sh > tsc --strictNullChecks Broken.d.ts Broken.d.ts:11:3 - error TS2411: Property 'message' of type 'string | undefined' is not assignable to string index type 'string'. ``` Generated via v10.0.0: ```ts ......

bug
in discussion

A `$ref` breaks when used on the root object ## Example A Non-working example: ```json { "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "$ref": "#/definitions/anatomic-location", "definitions": { "anatomic-location": { "description": "thing", "properties": {...

enhancement
help wanted

Could you please add support for the types `date-time`, `date`, and `time`?

enhancement
help wanted
good first issue

#238 is adding the ability to specify multiple file input for this library. An additional feature would be to allow the user to specify a single file output for a...