glideapps/quicktype

Duplicate overloads in C# from multiple Schema top-levels

Fechada

#726 aberto em 1 de abr. de 2018

 (1 comentário) (0 reação) (0 responsável)TypeScript (968 forks)batch import
C#buggood first issue

Métricas do repositório

Stars
 (10.867 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

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