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 have 2 json schema. - types.json - elephant.json Elephant declare array of dogs and I am expecting the generated code to reflect that. However I don't get array of...

My use case is the following: 1. I'd like `schema_one.json` to depend on `schema_two.json` 2. Generated file `schema_two.ts` should reference generated filed `schema_two.ts` While testing `declareExternallyReferenced false` via the CLI,...

Hello! This PR adds an `exactOptionalPropertyTypes` option in an effort to support [TypeScript's exactOptionalPropertyTypes option](https://www.typescriptlang.org/tsconfig#exactOptionalPropertyTypes). P.S. sorry for PR spam, accidentally closed the first one with a force push. See...

Fixes https://github.com/bcherny/json-schema-to-typescript/issues/559 See issue for details. ## NOTE This is my first time contributing here! I must admit that I do not fully grok the intricacies around the type issues...

When generating for objects that have `patternProperties` with the `strictIndexSignatures` option, `json-schema-to-typescript` does not honor the `strictIndexSignatures` option. I traced this down to this area of code: https://github.com/bcherny/json-schema-to-typescript/blob/c82696300269e6de73818372b07d13a2f9ceeba7/src/parser.ts#L407-L427 Where it...

### About `anyOf` may be used on objects to define _at least one of these properties is required, but not all of them at the same time_, in this case...

bug
help wanted

For now schema ```json { "$schema": "http://json-schema.org/draft-07/schema#", "$id": "MyAPI.test.Params", "title": "Params", "description": "MyAPI.test() params", "type": "object", "properties": { }, "additionalProperties": false, "required": [] } ``` will be converted to ```ts...

in discussion

Fixes #279 and other issues relating to invalid characters in identifiers. It will cover the functionality of #538 This allows any type name that is valid in ES5 by removing...

Reopening #262 by forking and rebasing previous work by @cdietschrun. Should address #200

I'm trying to create a static typescipt typings base on this JSON schema from google: https://developers.google.com/actions/media/tools/schema_livetv.json In order to test things locally I've copy-pasted the content of this endpoint into...