Open rycee opened 3 years ago
@rycee nice catch, thank you! This broke all the way back in 7f52c107b61980629c4c0d6751386a8ce360ddb9.
This is a blocker for something I'm trying to do, so I'd like to try fixing it. Seems like it's a regression in the new runtime introduced with v0.3?
If someone can give me a pointer of where to start looking in the code base that would be appreciated!
What version of CUE are you using (
cue version
)?Does this issue reproduce with the latest release?
Yeah
What did you do?
I want to export an OpenAPI file with an optional field whose name is created by interpolation. Specifically, I would like to accomplish something like in this reproducer:
What did you expect to see?
The output of
stdout.golden
above.What did you see instead?
The output claims that "hello" is a required field:
Changing
test.cue
to just containproduces the output I expected.