-
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
Is there a way to ensure the lengths of two list arguments match? #381
Comments
Original reply by @verdverm in cuelang/cue#381 (comment) We generally answer questions in Slack. You can join from this link: https://cuelang.org/community You can with an extra field:
|
Original reply by @myitcv in cuelang/cue#381 (comment) @verdverm the check field should really be a definition to avoid it being emitted:
|
Original reply by @myitcv in cuelang/cue#381 (comment) I'll close this issue because we've address the direct question. There is also plans for a |
Original reply by @verdverm in cuelang/cue#381 (comment) @myitcv would hidden fields work equally as well? |
Originally opened by @riceluxs1t in cuelang/cue#381
Foo :: {
l1: [...string]
l2: [...string]
}
I want to make sure that instances of Foo have equal numbers of strings specified for l1 and l2. Is this possible to express in cuelang?
The text was updated successfully, but these errors were encountered: