-
Notifications
You must be signed in to change notification settings - Fork 10
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report
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
|
credentials/src/main/kotlin/web5/sdk/credentials/StatusListCredential.kt
Show resolved
Hide resolved
credentials/src/main/kotlin/web5/sdk/credentials/model/VcDataModel.kt
Outdated
Show resolved
Hide resolved
credentials/src/main/kotlin/web5/sdk/credentials/StatusListCredential.kt
Show resolved
Hide resolved
credentials/src/main/kotlin/web5/sdk/credentials/VerifiableCredential.kt
Show resolved
Hide resolved
credentials/src/main/kotlin/web5/sdk/credentials/model/BitstringStatusListEntry.kt
Outdated
Show resolved
Hide resolved
credentials/src/test/kotlin/web5/sdk/credentials/StatusListCredentialTest.kt
Outdated
Show resolved
Hide resolved
credentials/src/main/kotlin/web5/sdk/credentials/model/VcDataModel.kt
Outdated
Show resolved
Hide resolved
credentials/src/main/kotlin/web5/sdk/credentials/model/VcDataModel.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥇
credentials/src/main/kotlin/web5/sdk/credentials/model/VcDataModel.kt
Outdated
Show resolved
Hide resolved
credentials/src/main/kotlin/web5/sdk/credentials/model/VcDataModel.kt
Outdated
Show resolved
Hide resolved
credentials/src/test/kotlin/web5/sdk/credentials/StatusListCredentialTest.kt
Outdated
Show resolved
Hide resolved
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
Overview
Remove danubech dependency from credential package and use our own Vc Data Model
Description
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.