bcherny/json-schema-to-typescript

Add option for failing on unknown JSON Schema type

Open

#471 创建于 2022年7月28日

在 GitHub 查看
 (3 评论) (2 反应) (0 负责人)TypeScript (449 fork)github user discovery
enhancementgood first issuehelp wanted

仓库指标

Star
 (3,302 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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.

贡献者指南