Skip to content

Lists of minimum or maximum size #401

Answered by cueckoo
cueckoo asked this question in General
Discussion options

You must be logged in to vote

Original reply by @mpvl in cuelang/cue#401 (comment)

There is a list.MaxItems in the list package. Builtin validators don't currently work correctly, however, as the evaluator doesn't handle non-monotonic constraints yet. This is addressed in the new evaluator work, which will handle such constraints.

Edit: this is now supported (updated to reflect new support in new evaluator)

Replies: 3 comments 5 replies

Comment options

cueckoo
Jul 3, 2021
Collaborator Author

You must be logged in to vote
0 replies
Comment options

cueckoo
Jul 3, 2021
Collaborator Author

You must be logged in to vote
0 replies
Comment options

cueckoo
Jul 3, 2021
Collaborator Author

You must be logged in to vote
5 replies
@cueckoo
Comment options

cueckoo Jul 3, 2021
Collaborator Author

@cueckoo
Comment options

cueckoo Jul 3, 2021
Collaborator Author

@cueckoo
Comment options

cueckoo Jul 3, 2021
Collaborator Author

@cueckoo
Comment options

cueckoo Jul 3, 2021
Collaborator Author

@jbcpollak
Comment options

Answer selected by cueckoo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants