glideapps/quicktype

Translate invalid name characters into equivalent names

Open

#631 opened on 2018年3月6日

GitHub で見る
 (3 comments) (1 reaction) (0 assignees)TypeScript (968 forks)batch import
good first issuenaming

Repository metrics

Stars
 (10,867 stars)
PR merge metrics
 (30d に merged PR はありません)

説明

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

コントリビューターガイド