Skip to content

Commit

Permalink
Update changelog and add commented code for future revision.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlongley committed Sep 20, 2024
1 parent ed30489 commit fd85e42
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# @digitalbazaar/oid4-client Changelog

## 3.8.0 - 2024-09-dd

### Added
- Accept `allOf` in combination with `contains` for array schemas.

## 3.7.0 - 2024-08-22

### Added
Expand Down
6 changes: 6 additions & 0 deletions lib/oid4vp.js
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,12 @@ export function _fromQueryByExampleQuery({credentialQuery, prefixJwtVcPath}) {
if(Array.isArray(value)) {
filter.type = 'array';
// FIXME: create `allOf`
/*filter.allOf = value.map(v => ({
contains: {
type: 'string',
const: v
}
}));*/
filter.contains = value.map(v => ({
type: 'string',
const: v
Expand Down

0 comments on commit fd85e42

Please sign in to comment.