glideapps/quicktype

Duplicate overloads in C# from multiple Schema top-levels

クローズ

#726 opened on 2018/04/01

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)TypeScript (968 件のフォーク)batch import
C#buggood first issue

Repository metrics

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

説明

{
    "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);
    }

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