Json2CSharp / Json2CSharpCodeGenerator

Microsoft Reciprocal License
305 stars 83 forks source link

Truncating class name #74

Open HaroldTexas opened 2 years ago

HaroldTexas commented 2 years ago

When generating c# classes the class name for OpenCloses is being truncated to OpenClos.

{"items":[{"stops":[{"serviceableStopInfo":{"timeWindowDetails":{"openCloses":[{"startTimeOfDay":"","endTimeOfDay":""}]}}}]}]}

// Root myDeserializedClass = JsonConvert.DeserializeObject(myJsonResponse); public class OpenClos { public string startTimeOfDay { get; set; } public string endTimeOfDay { get; set; } }

Json2CSharp commented 2 years ago

Ahh because It's thinking that OpenCloses is plural and trying to make it singular. I'll think of a fix for that