glideapps/quicktype

Translate invalid name characters into equivalent names

Open

#631 aperta il 6 mar 2018

Vedi su GitHub
 (3 commenti) (1 reazione) (0 assegnatari)TypeScript (968 fork)batch import
good first issuenaming

Metriche repository

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

Descrizione

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; }
}

Guida contributor