glideapps/quicktype
Voir sur GitHubDuplicate overloads in C# from multiple Schema top-levels
Open
#726 ouverte le 1 avr. 2018
C#buggood first issue
Métriques du dépôt
- Stars
- (10 867 stars)
- Métriques de merge PR
- (Aucune PR mergée en 30 j)
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);
}