hilalhakla / Json2CSharpCodeGenerator

Microsoft Reciprocal License
308 stars 85 forks source link

can't generate JSON to Python class #123

Open wongsatornm opened 6 days ago

wongsatornm commented 6 days ago

Oops! Houston we have a problem. Looks like there's an unhandled error or your input is not properly formatted. You can report it to the developer by clicking on the "Report To Dev" button. Or you can report it on Github using "Report An Issue". Exception: System.NotSupportedException: Unsupported json type: NullableDate at Xamasoft.JsonClassGenerator.CodeWriters.PythonCodeWriter.GetTypeName(JsonType type) in C:\Users\Hilal\OneDrive\Desktop\Json2CSharpCodeGenerator\JsonClassGeneratorLib\CodeWriters\PythonCodeWriter.cs:line 54 at Xamasoft.JsonClassGenerator.JsonType.GetTypeName() in C:\Users\Hilal\OneDrive\Desktop\Json2CSharpCodeGenerator\JsonClassGeneratorLib\JsonType.cs:line 157 at Xamasoft.JsonClassGenerator.CodeWriters.PythonCodeWriter.WriteClassMembers(StringBuilder sw, JsonType type, String prefix) in C:\Users\Hilal\OneDrive\Desktop\Json2CSharpCodeGenerator\JsonClassGeneratorLib\CodeWriters\PythonCodeWriter.cs:line 142 at Xamasoft.JsonClassGenerator.CodeWriters.PythonCodeWriter.WriteClass(StringBuilder sw, JsonType type) in C:\Users\Hilal\OneDrive\Desktop\Json2CSharpCodeGenerator\JsonClassGeneratorLib\CodeWriters\PythonCodeWriter.cs:line 95 at Xamasoft.JsonClassGenerator.CodeWriters.PythonCodeWriter.WriteClassesToFile(StringBuilder sw, IEnumerable`1 types, Boolean rootIsArray) in C:\Users\Hilal\OneDrive\Desktop\Json2CSharpCodeGenerator\JsonClassGeneratorLib\CodeWriters\PythonCodeWriter.cs:line 122 at Xamasoft.JsonClassGenerator.JsonClassGenerator.GenerateClasses(String jsonInput, String& errorMessage) in C:\Users\Hilal\OneDrive\Desktop\Json2CSharpCodeGenerator\JsonClassGeneratorLib\JsonClassGenerator.cs:line 78

wongsatornm commented 6 days ago

image