Skip to content

openapi-to-dhall generates deeply nested objects from CRDs #2330

Open
@BrianHicks

Description

@BrianHicks

Hey there! I'm trying to generate Dhall APIs for some Kubernetes CRDs, specifically these:

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 Nones 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:

  1. Is this something folks have dealt with before? It seems like it should be possible to flatten the objects down to single-level records.
  2. Is this something that openapi-to-dhall could do for me someday?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions