w3c-ccg / vp-request-spec

Specification for a query language to request Verifiable Presentations from wallets etc.

Home Page:https://w3c-ccg.github.io/vp-request-spec/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

dlongley opened this issue · comments

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"
    { ... }
  ]
}