Open benborra opened 1 year ago
This can resolved by using a dictionnary like so, however not sure why its not detecting the ref property and its always null, so we can implement or an option to detect dictionaries when property names don't match c# like property names public class Root { public Dictionary<string, Schema> content { get; set; } public bool required { get; set; } }
public class Schema
{
[JsonProperty("#ref")]
public string Ref { get; set; }
}
Hi all
I've got a json that was generated using swagger. The classes that I got returned however contained a duplicate property in them. This because the json contained wild card parameters and a '+' sign which obviously cant build with C#
This is the snippet that contains the issue:
Perhaps a number can be appended, however wouldn't expect valid json to convert into invalid C#
Kind regards