glideapps/quicktype

Translate invalid name characters into equivalent names

クローズ

#631 opened on 2018/03/06

 (3 件のコメント) (1 件のリアクション) (0 人の担当者)TypeScript (968 件のフォーク)batch import
good first issuenaming

Repository metrics

Stars
 (10,867 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

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