Nice, then I’m looking forward the hackage like documentation for dhall as we could also extract the attribute description from the json schemas.
Note that I investigated a couple more procedures to generate schemas:
- Using
dhall-kubernetes-generator
to process the OpenShift openapi swagger file: dhall-openshift. That worked out of the box.
- Parsing golang struct to create Tekton CRD binding: dhall-tekton. That is still very hacky as I don’t know golang, but given enough workaround, parsing the struct directly from the source code may be viable too. Before doing that, I tried using the
dhall-kubernetes-generator --crd
toggle, but that didn’t worked and the openAPIV3Schema
got removed anyway, see this commit.