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

Remove danubech dependency from credential package 1/2 #249

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

nitro-neal
Copy link
Contributor

@nitro-neal nitro-neal commented Feb 16, 2024

Overview

Remove danubech dependency from credential package and use our own Vc Data Model

Description

  • Removed danubech dependency for VcDataModel (danubech is still in gradle for VpDataModel. That change is next)
  • Added our own VcDataModel to replace danubech
  • Created toJson and toMap functions from jackson mapper impl
  • Updated tests

This change allows us to have full control over our VcDataModel from danubech. This will allow us to easily upgrade to create a 2.0 data model and beyond and make sure we are compliant with our other sdks.

Copy link

codecov bot commented Feb 16, 2024

Codecov Report

Merging #249 (14cd2ed) into main (87760e4) will increase coverage by 0.45%.
Report is 1 commits behind head on main.
The diff coverage is 82.69%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #249      +/-   ##
==========================================
+ Coverage   75.78%   76.24%   +0.45%     
==========================================
  Files          43       45       +2     
  Lines        1900     2029     +129     
  Branches      342      361      +19     
==========================================
+ Hits         1440     1547     +107     
- Misses        313      321       +8     
- Partials      147      161      +14     
Components Coverage Δ
credentials 81.36% <82.69%> (+0.36%) ⬆️
crypto 44.11% <ø> (ø)
dids 86.54% <ø> (ø)
common 66.29% <ø> (ø)

web5-spec Outdated Show resolved Hide resolved
@nitro-neal nitro-neal changed the title Remove danubech dependency from credential package Remove danubech dependency from credential package 1/2 Mar 5, 2024
Copy link
Contributor

@jiyoontbd jiyoontbd left a comment

Choose a reason for hiding this comment

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

🥇

@jiyoontbd
Copy link
Contributor

it seems like we originally had updated to BitstringStatus thing but walked that back after clarifying the spec wording. could you remove the reference to Bitstring thingamabob in the original PR description markdown?

private var id: URI? = null
private var context: MutableList<URI> = mutableListOf()
private var type: MutableList<String> = mutableListOf()
private lateinit var id: URI
Copy link
Contributor

Choose a reason for hiding this comment

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

could u explain why lateinit was added?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yea it was a kotlin thing giving me compile time errors, it wont allow non nullable properties to be left uninitialized. I could be using Kotlin feature wrong? but it seems like this is the only way to use the builder this way

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.

Handroll replacement for com.danubetech:verifiable-credentials-java
2 participants