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").
Related to this, it would be good to have codegen generate a set of common types, perhaps from a common.cue that could be referenced from all other Kinds, but would be generated into it's own separate package.
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")
.