Skip to content

Commit

Permalink
feat: Add optional property to field. Partially fixes #150
Browse files Browse the repository at this point in the history
  • Loading branch information
nklomp committed Apr 24, 2024
1 parent 7455153 commit 1e1998d
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 41 deletions.
11 changes: 9 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
# Release Notes

## v3.3.2 - 2024-04-24

- Updated:
- Allow to use const boolean in filters.
- Allow to use 'optional' boolean in V2 Fields object. Please be aware we do not take that value into account yet.
We just added the field, so it doesn't fail validation
- Update to PEX models 2.2.4

## v3.3.1 - 2024-03-19

- Updated:
- Update sd-jwt packages to 0.6.1 from 0.3.0
- Update to latest @sphereon/ssi-types
- Move to pnpm from yarn, given our other libraries also use pnpm


## v3.3.0 - 2024-02-29

- Added:
Expand All @@ -17,7 +24,7 @@
- Expose jwt_vp_json format
- Updated:
- Update to PEX models 2.2.2

## v3.2.0 - 2024-02-05

- Added:
Expand Down
2 changes: 2 additions & 0 deletions lib/validation/core/presentationDefinitionSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,7 @@ export class PresentationDefinitionSchema {
},
purpose: { type: 'string' },
intent_to_retain: { type: 'boolean' },
optional: { type: 'boolean' },
filter: { $ref: 'http://json-schema.org/schema#' },
},
required: ['path'],
Expand All @@ -694,6 +695,7 @@ export class PresentationDefinitionSchema {
},
purpose: { type: 'string' },
intent_to_retain: { type: 'boolean' },
optional: { type: 'boolean' },
filter: { $ref: 'http://json-schema.org/schema#' },
predicate: {
type: 'string',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"@sd-jwt/decode": "^0.6.1",
"@sd-jwt/present": "^0.6.1",
"@sd-jwt/types": "^0.6.1",
"@sphereon/pex-models": "^2.2.2",
"@sphereon/pex-models": "^2.2.4",
"@sphereon/ssi-types": "0.22.0",
"ajv": "^8.12.0",
"ajv-formats": "^2.1.1",
Expand Down
48 changes: 10 additions & 38 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1e1998d

Please sign in to comment.