Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: handle non-exteral submission edge cases #160

Conversation

TimoGlastra
Copy link
Contributor

Discovered some issues when integrating the multi-vp support into the OID4VP library.

Mainly it didn't handle correctly when non-external presentation submissions were used, and the submission thus didn't use nested paths. We now handle this based on the presentationSubmissionLocation.

Also added some tests covering these cases

Copy link
Contributor

@nklomp nklomp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks mostly good to me. Have a question about a comment and suggest to simply implement the guard/assertion for the TODO, as it would be simple enough and very helpfull in preventing bugs for implementers

lib/evaluation/evaluationClientWrapper.ts Show resolved Hide resolved
message: `VP format ${vp.format} is not supported`,
});
continue;
// TODO: check that not longer than 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest to add it immediately. It is easy to implement and would prevent a implementer from making mistakes that are hard to track down

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes sorry that is sloppy of me, meant to do that before opening the PR. will fix

@nklomp nklomp merged commit 270ca38 into Sphereon-Opensource:develop Aug 29, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants