I'm using the below json filespec for a search query with Jfrog CLI but it's ignoring the "include" part of the spec. There's no documentation on using include within a filespec, just straight AQL examples.
{
"files": [{
"aql": {
"items.find":{
"$and" : [
{"created" : {"$before" : "1y"}},
{"repo" : {"$match":"docker-local"}},
{"stat.downloads":{"$eq":null}},
{"name" : { "$nmatch" : "sha256*" }}
]
}
},
"sortBy":["created"],
"include":["path","name","created_by"]
}]
}
I'm pretty sure it's ignoring anything not in the "aql" object. I added a bunch of random entries like "foo":"bar"
under include
and sortBy
and no error was thrown, nor was it acknowledged in anyway.
My question is, where does the include fit into the spec.json file?