openwallet-foundation / bifold-wallet

Aries Mobile Agent React Native - Part of the Aries Bifold effort to provide SSI capabilities in a production ready app.
Apache License 2.0
146 stars 140 forks source link

feat: improving parseCredDefFromId function and CredentialCard11 attribute value #1155

Closed CarolineLCa closed 3 months ago

CarolineLCa commented 3 months ago

Summary of Changes

Expected behavior

Correct names of credentials in the proof request.

Current behavior

The credential does not come with the correct name since parseCredDefFromId was not updated to deal with this new credDefId format.

To fix

I added parseIndyCredentialDefinitionId and parseIndySchemaId.

Observation

For the CredentialCard11 attribute, I added a non-null validation because when the attribute has a value of 0 it was not considered in the proof request

Related Issues

N/A

Pull Request Checklist

Tick all boxes below to demonstrate that you have completed the respective task. If the item does not apply to your this PR check it anyway to make it apparent that there's nothing to do.

If you have any questions to any of the points above, just submit and ask! This checklist is here to help you, not to deter you from contributing!

Pro Tip 🤓

PR template adapted from the Python attrs project.

sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud