Open
Description
Hey there! I'm trying to generate Dhall APIs for some Kubernetes CRDs, specifically these:
- https://github.com/argoproj/argo-cd/blob/master/manifests/crds/application-crd.yaml
- https://github.com/argoproj/argo-rollouts/blob/master/manifests/crds/rollout-crd.yaml
I'm having trouble, however, because openapi-to-dhall
generates deeply nested types. That means I only get the benefits of the defaults at the top level, and would have to specify the types in all the None
s forever after down the tree. I suspect that other folks have dealt with this before (e.g. by pulling out field names to separate objects in a preprocessing step.) So I've got two questons:
- Is this something folks have dealt with before? It seems like it should be possible to flatten the objects down to single-level records.
- Is this something that
openapi-to-dhall
could do for me someday?