Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't generate JSON to Python class #123

Open
wongsatornm opened this issue Nov 28, 2024 · 1 comment
Open

can't generate JSON to Python class #123

wongsatornm opened this issue Nov 28, 2024 · 1 comment

Comments

@wongsatornm
Copy link

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
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant