-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
encoding/openapi: Duplicate enumeration values generated #3596
Comments
Here's a testscript reproducer of a slightly more minimal example:
This fails with:
It's clear that the @inksnw As a workaround until this gets fixed, would it be possible for you to For example:
FWIW it's generally considered to be better for schemas to be "pure" (i.e. avoid defining any regular fields or defaults),
and the defaults in a separate field, e.g.
|
Thanks for your reply. I'll give the workaround a try. |
What version of CUE are you using (
cue version
)?Does this issue reproduce with the latest stable release?
yes
What did you do?
If I set ExpandReferences to false, it works, but it will generate links like "$ref": "#/components/schemas/xxx"
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: