glideapps/quicktype

Duplicate overloads in C# from multiple Schema top-levels

Open

#726 geöffnet am 1. Apr. 2018

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (968 Forks)batch import
C#buggood first issue

Repository-Metriken

Stars
 (10.867 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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

Contributor Guide