bcherny/json-schema-to-typescript

Enhance tsEnumNames

Open

#21 创建于 2016年9月9日

在 GitHub 查看
 (4 评论) (0 反应) (0 负责人)TypeScript (449 fork)github user discovery
enhancementhelp wanted

仓库指标

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

描述

There are some points where tsEnumNames could be enhanced:

  • JSON is usually often snake_case. Allow ts_enum_names.
  • JSON Editor uses enum_titles for a similar scenario. Allow both or adopt.
  • Space characters will lead to invalid TS. Sanitize or explain in docs.

贡献者指南