You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think I stumbled across a bug in generating JSONTypes - some fields where identified as Int64 instead of as Float64.
The file to generate JSONTypes from is "infra_0.json". The errors occurred at fields "kmA", "kmB" and "length" where all values are written as floats (including a . inside the figure) and at "distanceFromA" where, admittedly, there is inconsistency in that some values are written as floats (with . included), but others as integers (no . included). In the case of "kmA", "kmB", "length" this seems to definitely be a bug; in the case of "distanceFromA" at least the ambiguity was not reported.
This leads to argument errors when parsing the file via JSON3.read("infra_0.json", JSONTypes.Root).
I include the original autogenerated JSONTypes in "json_types_Bug.jl", the corrected JSONTypes in "json_types.jl", and the difference in "json_types.diff".
I think I stumbled across a bug in generating JSONTypes - some fields where identified as Int64 instead of as Float64.
The file to generate JSONTypes from is "infra_0.json". The errors occurred at fields "kmA", "kmB" and "length" where all values are written as floats (including a . inside the figure) and at "distanceFromA" where, admittedly, there is inconsistency in that some values are written as floats (with . included), but others as integers (no . included). In the case of "kmA", "kmB", "length" this seems to definitely be a bug; in the case of "distanceFromA" at least the ambiguity was not reported.
This leads to argument errors when parsing the file via JSON3.read("infra_0.json", JSONTypes.Root).
I include the original autogenerated JSONTypes in "json_types_Bug.jl", the corrected JSONTypes in "json_types.jl", and the difference in "json_types.diff".
The files are provided in JSONTypes_Bug.zip.
Best regards,
zechenhund
JSONTypes_Bug.zip
The text was updated successfully, but these errors were encountered: