provide JSON Schema to allow validating config file
We now have a sample config, which helps users get going to tweak their own setup. To further facilitate this, it would be nice to offer a corresponding JSON Schema file. This would then enable validating checks for the config, including by LSP language servers for TOML such as taplo.
It should be possible to generate this using say schemars.
Can confirm, I get
No configured profile with the name "<username>" in .config/iamb/config.json
and no clue what to do.
@JIbald as per your specific configuration issue, you may consider what i used there (click to expand), but yeah some systematic feedback mechanism would be nicer.
default_profile = "foo"
# if not specified uses "default"
[profiles.foo]
user_id = "..."
url = "..."
...
Thanks for the quick response. I started my own little config, based on your snippet and it worked like a charm. Once again building from the ground up instead of copy 🍝 helps. Thanks.