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

chore: map claims of CredentialSubject during SerDes #3700

Conversation

paullatzelsperger
Copy link
Member

What this PR changes/adds

This PR changes the serialization/deserialization of a CredentialSubject in that it avoids
serializing claims to a JSON claims object.

Why it does that

It is an implementation detail that the structure of the CredentialSubject is kept in a claims map. Java simply
does not handle dynamic types, and in it is not relevant for the serialized form.

Further notes

List other areas of code that have changed but are not necessarily linked to the main feature. This could be method
signature changes, package declarations, bugs that were encountered and were fixed inline, etc.

Linked Issue(s)

Closes # <-- insert Issue number if one exists

Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

@paullatzelsperger paullatzelsperger added enhancement New feature or request refactoring Cleaning up code and dependencies labels Dec 11, 2023
@paullatzelsperger paullatzelsperger force-pushed the chore/serialize_credentialSubject_directly branch from 49a7aec to 82ffa58 Compare December 11, 2023 16:51
@paullatzelsperger paullatzelsperger merged commit 07dfdcc into eclipse-edc:main Dec 11, 2023
17 checks passed
@paullatzelsperger paullatzelsperger deleted the chore/serialize_credentialSubject_directly branch December 11, 2023 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request refactoring Cleaning up code and dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants