Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

Validation doesn't seem to work on lists #425

Closed
n87 opened this issue Jun 15, 2020 · 4 comments
Closed

Validation doesn't seem to work on lists #425

n87 opened this issue Jun 15, 2020 · 4 comments
Labels
roadmap/evaluator Specific tag for roadmap issue #338

Comments

@n87
Copy link

n87 commented Jun 15, 2020

$ head list.{cue,json}
==> list.cue <==
[]

==> list.json <==
[]

$ cue vet list.{cue,json}
conflicting values {[], } and [] (mismatched types struct and list)

$ cue version
cue version 0.2.0 linux/amd64

Is it possible to validate a list of objects?

@verdverm
Copy link
Contributor

verdverm commented Jun 15, 2020

I think your Cue is not what you want or expect it to be. Join slack to get faster help with syntax and semantics, see the community page on the website for a link.

Looks like you're new around Cue too? Welcome!

@mpvl mpvl added the roadmap/evaluator Specific tag for roadmap issue #338 label Jun 16, 2020
@mpvl
Copy link
Contributor

mpvl commented Jun 16, 2020

This does seem like an issue. Marked it to be included the evaluator release, although this may be a "tooling glue" issue.

@roman-mazur
Copy link

I wonder if it's related to #427

@cueckoo
Copy link

cueckoo commented Jul 3, 2021

This issue has been migrated to cue-lang/cue#425.

For more details about CUE's migration to a new home, please see cue-lang/cue#1078.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
roadmap/evaluator Specific tag for roadmap issue #338
Projects
None yet
Development

No branches or pull requests

5 participants