glideapps/quicktype

Duplicate overloads in C# from multiple Schema top-levels

Open

#726 建立於 2018年4月1日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)TypeScript (10,867 star) (968 fork)batch import
C#buggood first issue

描述

{
    "definitions": {
	"Foo": { "type": "number"},
	"Bar": { "type": "number"}
    }
}
./script/quickesttype --src-lang schema --lang csharp --add-schema-top-level /definitions/ /tmp/bla.schema 

Partial output:

    public static class Serialize
    {
        public static string ToJson(this double self) => JsonConvert.SerializeObject(self, QuickType.Converter.Settings);
        public static string ToJson(this double self) => JsonConvert.SerializeObject(self, QuickType.Converter.Settings);
    }

貢獻者指南