w3c-ccg / vp-request-spec

Specification for a query language to request Verifiable Presentations from wallets etc.
https://w3c-ccg.github.io/vp-request-spec/
Other
9 stars 3 forks source link

Specify how "and" and "or" work with VPR #24

Closed dlongley closed 1 year ago

dlongley commented 1 year ago

Top-level queries are "and", so e.g.:

{
  query: [
    // "and"
    {
      type: 'APopularQueryType',
      // query details ...
    },
    // "and"
    {
      type: 'AnotherQueryType',
      // query details ...
    }
  ]
}

And "or" queries are possible within particular query types like this:

{
  "query": [
    // "and"
    {
      "type": "QueryByExample",
      "credentialQuery": [
        // "or"
        { ... },
        // "or"
        { ... }
      ]
    },
    // "and"
    { ... }
  ]
}