glideapps/quicktype

Translate invalid name characters into equivalent names

Fechada

#631 aberto em 6 de mar. de 2018

 (3 comentários) (1 reação) (0 responsável)TypeScript (968 forks)batch import
good first issuenaming

Métricas do repositório

Stars
 (10.867 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

Demonstrated by NotExecutable on Reddit:

{"#": "foo", "##": "bar" }

produces this type with strange propery names in C#:

public partial class Root
{
    public string Empty { get; set; }
    public string Purple { get; set; }
}

This would be nicer:

public partial class Root
{
    public string Hash { get; set; }
    public string HashHash { get; set; }
}

Guia do colaborador