bcherny/json-schema-to-typescript

Enhance tsEnumNames

Open

#21 aperta il 9 set 2016

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)TypeScript (449 fork)github user discovery
enhancementhelp wanted

Metriche repository

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

Descrizione

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.

Guida contributor