I used https://github.com/snowplow/schema-guru to generate a json schema file for a json dataset we have.
If I add that schema to my json file, see https://stackoverflow.com/a/55114015/1817610 , I get autocompletion in the vscode editor
However read-json now refuses to read my json file.
Dataset name '$schema' in JSON does not match 'ScreenDefinition'. (15375)
Is there a way to add this info to the json file so that it will work for vscode, eclipse, etc. and still be readable by OpenEdge ?
Those file are generally handwritten so I'm not so much concerned with the write-json part of the story.
Maybe I should have tried a bit longer. I found a solution that seems to work, at least for vscode.
put $schema after the dataset instead of before.
The read-json error is gone and vscode still has autocompletion, see screenshot