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

use array as preferred for credential types #628

Merged
merged 5 commits into from
Dec 11, 2024

Conversation

Ryanmtate
Copy link
Contributor

Description

Changes PREFER_ARRAY to true for RequiredType trait implementation for PresentationType.

Received verifiable presentation submission schema validation errors complaining about type property being a string instead of an array.

Tested

Tested using VC playground oid4vp in sprucekit-mobile.

@Ryanmtate Ryanmtate force-pushed the fix/preferred-presentation-types-array branch from 1fbc22c to cddcfb3 Compare November 13, 2024 22:35
Copy link
Contributor

@Joey-Silberman Joey-Silberman left a comment

Choose a reason for hiding this comment

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

LGTM!

Signed-off-by: Ryan Tate <ryan.tate@spruceid.com>
Co-Authored-By: Joey Silberman <joey.silberman@spruceid.com>
Signed-off-by: Ryan Tate <ryan.tate@spruceid.com>
@Ryanmtate Ryanmtate force-pushed the fix/preferred-presentation-types-array branch from cddcfb3 to bd607e6 Compare December 3, 2024 15:22
@Ryanmtate
Copy link
Contributor Author

Looking into the failing test.

Signed-off-by: Ryan Tate <ryan.tate@spruceid.com>
Signed-off-by: Ryan Tate <ryan.tate@spruceid.com>
Signed-off-by: Ryan Tate <ryan.tate@spruceid.com>
Copy link
Contributor

@timothee-haudebourg timothee-haudebourg left a comment

Choose a reason for hiding this comment

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

If the did:pkh test is happy, I'm happy.

@Ryanmtate Ryanmtate merged commit 6e7b3b1 into main Dec 11, 2024
3 checks passed
@Ryanmtate Ryanmtate deleted the fix/preferred-presentation-types-array branch December 11, 2024 18:07
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.

3 participants