bcherny/json-schema-to-typescript

Add option for failing on unknown JSON Schema type

Open

#471 aperta il 28 lug 2022

Vedi su GitHub
 (3 commenti) (2 reazioni) (0 assegnatari)TypeScript (449 fork)github user discovery
enhancementgood first issuehelp wanted

Metriche repository

Star
 (3302 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Currently, the generator defaults to type { [k: string]: unknown; } if JSON Schema type is not a valid type. It would be helpful to have an option to make this fail the generation, i.e. throw an error instead of using this default value.

Guida contributor