Skip to content

[codegen] Add Ability to Use an Existing Go or TypeScript Type for Fields in Spec/Status #375

Open
@IfSentient

Description

@IfSentient

It would be nice to have a way to tell the codegen to use an existing go type (such as a kubernetes type) for a field in the spec or status when generating code. The CUE source would still need to define the type properly for OpenAPI generation, but could reference an existing type to use for the generated go or TypeScript, perhaps with something like @app-sdk(gotype="repo/pkg.Type").

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