3 ms·
Dhall [1] [2] looks promising to me. [1] http://dhall-lang.org/ http://dhall-lang.org/ [2] https://github.com/dhall-lang/dhall-lang https://github.com/dhall-l
by tromp 5y ago
Dhall [1] [2] looks promising to me.
[1] http://dhall-lang.org/ http://dhall-lang.org/
[2] https://github.com/dhall-lang/dhall-lang https://github.com/dhall-lang/dhall-lang
- corysama 5y agoDoes anyone know if using Dhall to generate JSON that is validated using Cue a sensical idea? I don't know enough about them to be sure.
- kevinmgranger 5y agodhall serves as the validation layer itself. Unless you're already consuming some other API that publishes Cue validation, in which case dhall is just the templating language.
- mplanchard 5y agoWe have a little dhall at work. We use it to generate JSON dynamically from env vars. The tooling is great, and the error messages are great. It’s a bit “functional”, so it will strike some as unfamiliar, but I have really liked using it so far. We will probably extend our use of it to generate json schema documents, since it allows us much better code commenting and structure reuse, even across files.