-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add ability to pass in additional-properties in vc create #399
Add ability to pass in additional-properties in vc create #399
Conversation
let's gooo |
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.
can you post some example output?
₿ cargo run -p web5_cli -- vc create did:dht:36xw3konj1pdd93axsn9p3a58a83uatcgx1nsjud97d91dtr56ry \
--issuer did:dht:36xw3konj1pdd93axsn9p3a58a83uatcgx1nsjud97d91dtr56ry \
--no-indent \
--additional-property "role:engineer" \
--additional-property "clearance:level5" \
| jq .
{
"@context": [
"https://www.w3.org/2018/credentials/v1"
],
"id": "urn:uuid:6e4bb08c-cd40-4981-ab7a-d5d7b4d8ba5d",
"type": [
"VerifiableCredential"
],
"issuer": "did:dht:36xw3konj1pdd93axsn9p3a58a83uatcgx1nsjud97d91dtr56ry",
"credentialSubject": {
"id": "did:dht:36xw3konj1pdd93axsn9p3a58a83uatcgx1nsjud97d91dtr56ry",
"role": "engineer",
"clearance": "level5"
},
"issuanceDate": "2024-10-21T23:49:57Z"
} |
@nitro-neal is there anything else that you need? |
Following up on this - @nitro-neal @KendallWeihe - is there anything else needed here to close out this PR? Given that this is the final week of Hacktoberfest, I want to make sure our contributors get their PRs accepted, and contributions count ahead of that deadline! Please review, accept and merge the task, then label it |
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.
well done!
oh wait..could we resolve the merge conflicts? @w3irdrobot so that we can get this merged. |
97e8c7d
to
d51459b
Compare
@blackgirlbytes i cleaned it up |
d51459b
to
70d803f
Compare
What type of PR is this? (check all applicable)
Description
This PR adds ability to pass in additional-properties in
vc create
.I changed the command's method to take ownership of
self
since it simplified my handling of the values being passed in. This change required updating of a few other parts of the code to act on the values directly instead of through references.Related Tickets & Documents
Resolves #326
Mobile & Desktop Screenshots/Recordings
Added code snippets?
Added tests?
No tests? Add a note
Added to documentation?
No docs? Add a note
[optional] Are there any post-deployment tasks we need to perform?
No
[optional] What gif best describes this PR or how it makes you feel?