Closed avivace closed 9 months ago
I don't have any experience writing formal json schema (seems like it would require some study to do it properly), but would something such as below be sufficient?
Use the -oj
argument to enable JSON output format
Invocation:./gbtoolsid -oj test/zgb_template_2022.0.gb
{
"file": "zgb_template_2022.0.gb",
"toolsName": "GBDK", "toolsVersion": "2020.4.1.0+",
"engineName": "ZGB", "engineVersion": "2022.0+",
"musicName": "hUGETracker", "musicVersion": "SuperDisk",
"soundfxName": null, "soundfxVersion": null
}
...Name
and ...Version
field names.
["toolsName", "engineName", "musicName", "soundfxName"]
["toolsVersion", "engineVersion", "musicVersion", "soundfxVersion"]
null
will be used for both the name and version field values.""
will be used for the version field value.null
){
"file": [<string quoted filename>],
"toolsName": [null, "GBDK", "Turbo Rascal Syntax Error"],
"toolsVersion": [null, "", "Unknown", "<various>"],
"engineName": [null, "GBStudio", "ZGB"],
"engineVersion": [null, "", "Unknown", "<various>"],
"musicName": [null, "GHX", "DevSound", "DevSound", "Visual Impact", "MusyX", "Freaq", "LSDJ", "hUGETracker", "Trackerboy engine", "Black Box Music Box", "Lemon", "GBT Player", "Carillon Player", "MPlay", "GBSoundSystem"],
"musicVersion": [null, "", "Unknown", "<various>"],
"soundfxName": [null, "FX Hammer", "CBT-FX", "VAL-FX", "VGM2GBSFX"],
"soundfxVersion": [null, "", "Unknown", "<various>"],
}
Closing this as resolved
It would be nice to have JSON schema describing the JSON output of the tool, with all the possible values