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
IssueCredentialResponse does not allow for metadata #291
Comments
+1 we should do this. In our Issuer implementation (https://uniissuer.io/), we've had this In our design, we modeled it to be roughly similar to the DID Resolution outputs:
And we invented an input option |
The group discussed this on the 2022-05-10 call. Manu and Markus provided some background. Danube Tech has already implemented this in their API and it's aligned with the way the DID Resolution API operates. They have two buckets of data about issuing/verifying process, then something about the document itself. There was discussion about the number of metadata buckets. @dlongley noted that we might want to do this in a two-step process... support The group did not object to the following VC API change process for breaking changes: Raise a PR that makes a breaking change to the VC API, ensure there are no objections to the breaking change and then merge, if the change breaks implementations, warn in the test suite output that implementations are catching up. Do not version... yet. Next step: Create a PR that adds the |
I think there will be an obvious lag in the test suite to the spec at any rate - writing a test to match the spec will always take time. If the test suite has a "last updated" field to indicate its status vs. the spec this will provide good information on the status of the test and integrated vendor implementations. I wouldn't let the test suite stop us from moving the spec forward. And +1 to this change; allowing for more meta-data to be returned with the credential data will be very useful. |
PR #313 addressed this issue. Closing. |
When issuing a Verifiable Credential, the response object is the VC itself. This means that the API is not capable of returning any metadata that might be important to the issuance request (such as URLs that can be used to further manage the VC, profiling/debugging information on how long it took to create the VC, and other metadata that would be useful when issuing.
https://github.com/w3c-ccg/vc-api/blob/main/issuer.yml#L68-L69
The suggested fix to this is to add
verifiableCredential
as an encapsulating object on the return value so that we can provide "other data" in the future. The rest of the API calls should probably follow this pattern as well.The text was updated successfully, but these errors were encountered: