by pharmakom · 3y ago · 0 comments
But this turns out to support OP's point. JSON is good enough, and there are many alternatives that we are debating and don't agree on.
So if you have to pick something, and I have to pick something, since we don't agree, we will fallback on JSON.
Cool indeed. I wonder how you can supply it with types from the program that consumes the config.
My Gradle config is in Kotlin these days. Kotlin, besides being a full blown prog lang, has nice features for config specs (map/list literals, typed, eDSL syntax). Though it is an enormous dependency (way to big for a project that just needs a config file format).
If your language has an OpenAPI library, you can create a hello-world web app that exposes your configuration object as an HTTP endpoint, and generate Dhall types from that.