pycue icon indicating copy to clipboard operation
pycue copied to clipboard

Consider supporting expression arguments for vet

Open blotero opened this issue 1 year ago • 1 comments

By looking at the source code, I can see the pycue APIS are currently supporting the following arguments:

  • Schema source (cue file)
  • Target validation

However, there is a very useful argument from cue vet which is -d or --schema which allows evaluation of non cue files against a particular expression, for example:

cue vet schema.cue users.json -d "[...#User]"

Which is very useful in several use cases.

blotero avatar Sep 09 '24 14:09 blotero

Thanks. I'll have a look when I find some time. Note that this project is not well maintained. I suggest you'll look at https://github.com/cue-lang/cue-py which is maintained by the cue team.

tebeka avatar Sep 10 '24 13:09 tebeka