bcherny/json-schema-to-typescript

Enhance tsEnumNames

Open

#21 aberto em 9 de set. de 2016

Ver no GitHub
 (4 comments) (0 reactions) (0 assignees)TypeScript (449 forks)github user discovery
enhancementhelp wanted

Métricas do repositório

Stars
 (3.302 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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.

Guia do colaborador