I was unaware of the usefulness of JSON Schema until recently I was writing some Vega Lite json specs in VS Code.
I don't have any relevant json extensions, but VS Code started auto-suggesting values for options (e.g. a drop down for whether the chart type is a 'bar', 'line', etc.) and pointing our mistakes like 'the size should be an integer not a percent'.
This was the lightbulb moment for me - as if by magic, my code editor was double checking my json document was valid and helping me write it. Amazing, and super useful.
It took me a while to work out how it was doing it, but all vega lite examples start with the magic:
I don't have any relevant json extensions, but VS Code started auto-suggesting values for options (e.g. a drop down for whether the chart type is a 'bar', 'line', etc.) and pointing our mistakes like 'the size should be an integer not a percent'.
This was the lightbulb moment for me - as if by magic, my code editor was double checking my json document was valid and helping me write it. Amazing, and super useful.
It took me a while to work out how it was doing it, but all vega lite examples start with the magic:
"$schema": "https://vega.github.io/schema/vega-lite/v2.json".