glideapps/quicktype

Duplicate overloads in C# from multiple Schema top-levels

Open

#726 aberto em 1 de abr. de 2018

Ver no GitHub
 (1 comment) (0 reactions) (0 assignees)TypeScript (968 forks)batch import
C#buggood first issue

Métricas do repositório

Stars
 (10.867 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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

Guia do colaborador