This repository has been archived by the owner on Nov 18, 2021. It is now read-only.
List of String type enforcement and default #400
-
Can I somehow specify foo: []string | *[commonName] Usecase
And have the dnsNames be default to [commonName] if dnsNames is not passed. Is this doable? |
Beta Was this translation helpful? Give feedback.
Answered by
gogommartin
May 19, 2020
Replies: 2 comments
-
I'm new to Cue myself so this may not be correct, but I believe what you're looking for is:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mpvl
-
This discussion has been migrated to cue-lang/cue#400. For more details about CUE's migration to a new home, please see cue-lang/cue#1078. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm new to Cue myself so this may not be correct, but I believe what you're looking for is: