Replies: 3 comments 1 reply
-
@verdverm Have you tried |
Beta Was this translation helpful? Give feedback.
-
Like with bugs, it is always good to be very explicit about what you saw (you did) and what you expected to see. What do you mean with "expand fields as well"? Please note that the options specify both schema and final, which are a bit conflicting. In general, it is quite tricky to print in mixed mode, as it is prone to introducing infinite cycles. Furthermore, a CUE evaluation result has no references. The values still contain references to the original conjuncts, but they, in turn, do not have evaluated values. This strict separation has cleaned things up considerably, actually. So if you want something custom you could do what Joel suggests, using In the future I intend to have a separate package for creating CUE ast values from |
Beta Was this translation helpful? Give feedback.
-
This discussion has been migrated to cue-lang/cue#579. For more details about CUE's migration to a new home, please see cue-lang/cue#1078. |
Beta Was this translation helpful? Give feedback.
-
I'm attempting to print the following definition with all sub-definitions expanded as well, using the GoAPI
input:
code:
result:
How can I get fields to expand as well?
Example fields:
deploy.selector?: null | metav1.#LabelSelector
deploy.template.spec?: #PodSpec
deploy.strategy?: #DeploymentStrategy
Beta Was this translation helpful? Give feedback.
All reactions