2 ms·
For a serious take on configuration file format it might be worth checking out Dhall. Dhall has schemas, types, imports, and even functions (though it doesn’t
by strogonoff 8y ago
For a serious take on configuration file format it might be worth checking out Dhall.
Dhall has schemas, types, imports, and even functions (though it doesn’t let you write code that would e.g. loop infinitely).
You can even use an executable[0] to compile Dhall to YAML and JSON, excluding unsupported features such as functions.
[0] https://github.com/dhall-lang/dhall-lang/blob/master/README.md#json-and-yaml https://github.com/dhall-lang/dhall-lang/blob/master/README....