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.

貢獻者指南