TL;DR caddy-json-schema can give you an IDE-like experience when working with Caddy JSON and YAML config.
When Caddy v2 was announced, one of the most notable changes is the use of JSON as the native configuration language.
While some people are not open to the change and will rather keep using Caddyfile, there are others like me who wants to give JSON config a shot but somehow did not find it as easy as desired.
I took some time out to make the experience better for myself and other Caddy enthusiasts and I came up with caddy-json-schema. A JSON schema generator for Caddy v2 that can be integrated with editors to get suggestions and documentation.
Here is a demo of it in action.
I have only tested it with the editors I use personally, VSCode and Vim (with coc-json plugin). But I expect it to work with any editor that supports the use of JSON schema for intellisense.
Looking forward to hearing feedbacks from those that tried it out.
I found out JSON schemas can also be used for YAML files and the project docs have been updated to reflect it.