daviduuang / ini-for-vscode

Provide outline view and section folding for INI file.
GNU General Public License v3.0
17 stars 7 forks source link

How about using a JSON Schema to validate ini files? #10

Open ssbarnea opened 3 years ago

ssbarnea commented 3 years ago

As for YAML files you can already use a JSON schema to validate them, it should be possible to perform some basic validation on ini files using the same kind of schema.

You could inspire from two other extensions that do add JSON schema based validation to other file formats:

EmilyGraceSeville7cf commented 2 years ago

I like this idea. But I don't know what to do with nesting sections. Wiki says that it depends on ini parser. So maybe it's better to support no nesting (just plain keys) out of the box. 🤔

ssbarnea commented 2 years ago

At least for start i would assume no nesting because original ini never supported nesting. Nesting should not be part of the "MVP".