config.toml vs config.json + JSON Schema vs config.yaml + JSON Schema? #541
HEIGE-PCloud
started this conversation in
Ideas
Replies: 1 comment
-
Looks something like this in VS Code |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
With more and more options added to the config.toml, issues related to misconfiguration have increased a lot. JSON Schema is something that can validate a JSON file and has a very wide editor support. It can be used to validate a config file and throw error message in the editor without running Hugo. It also makes auto-complete for options possible in some editors.
As far as I know, TOML Schema is still a proposal and has no editor support now.
YAML can use the JSON schema https://json-schema-everywhere.github.io/yaml But I am not sure whether it works in editors other than VS Code.
JSON is just not very user friendly in terms of config files comparing to YAML or TOML.
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions