This repository has been archived by the owner on Nov 18, 2021. It is now read-only.
Replies: 2 comments 2 replies
-
This works for me:
Can you describe the exact steps that lead to your error? |
Beta Was this translation helpful? Give feedback.
2 replies
-
This discussion has been migrated to cue-lang/cue#821. 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
-
Howdy folks, I'm trying to create a "list" that is optional. Running vet on a json document that contains null where the cue spec defines a list gives me a type mismatch error that I'm confused about how to resolve. For example:
In cue, while the json has
How can I have process either conform to the definition OR be null in order to get null to pass?
If I change the cue to look like so:
Then the error I receive is
conflicting values null and [...string] (mismatched types null and list)
.Beta Was this translation helpful? Give feedback.
All reactions