Closed myxie closed 3 years ago
Hi @myxie ,
A few versions ago, we introduced a JSON schema to describe the expected structure of the JSON output (when saving, before translating etc)
This error message is meant to indicate that the JSON file produced when saving the graph was not valid when validated against the JSON schema. I probably should re-write the error to make it clearer.
I tried to reproduce your error, using both EAGLE from master, and the version of EAGLE at eagle.icrar.org (v3.0.4), but got a different (but related) error:
JSON Invalid, saving anyway data.nodeDataArray[38].inputAppFields[0].value should be string
This is still a useful error to catch, I'll add a fix, but I can't reproduce your error exactly.
My method was:
I was able to reproduce the error when saving the graph you attached to #8 . I'll look into it
This error was caused by accidentally setting a inputApplication name to undefined. Once set to undefined, it would not be written to JSON, which made the JSON validator fail.
Pushed a fix to master.
Hi @james-strauss-uwa,
Thank you for looking into this!
When saving the attached EAGLE graph, I receive the following pop up message:
When inspecting the file and loading it as a JSON file locally (i.e. deserialising it through Python), it appears to be fine. Running the DALiuGE translator on this using the following arguments works perfectly.
I am not sure if this means the produced LGT/PGTs are invalid, or if the error message is related to a UI component rather than the underlying data structure.
tmp_eagle.txt