grafana-app-sdk's codegen pipeline supports cases where code is generated from a specific path within a cue file, while types relevant for the codegen are defined outside of that path:
schema: {
spec: { // ← codegen runs on this
title: string
origin: #Origin // ← "out of root" reference
}
#Origin: { creator: string }
}
Contributes to #408
grafana-app-sdk
's codegen pipeline supports cases where code is generated from a specific path within a cue file, while types relevant for the codegen are defined outside of that path: