Assert if response of issuance calls is a VC or a response json containing the verifiableCredential property, then ensures what is returned to the test suite is always a VC
Injects the implementation's id as an issuer or issuer.id value of the field is missing. If the field is present (negative testing), the field will be untouched.
The previous fix made it difficult to do negative tests about missing fields, for this purpose, I've introduced the NoIssuer credential type which is assessed by the request builder and will skip injecting the implementation's id if present.
This PR does the following:
verifiableCredential
property, then ensures what is returned to the test suite is always a VCissuer
orissuer.id
value of the field is missing. If the field is present (negative testing), the field will be untouched.NoIssuer
credential type which is assessed by the request builder and will skip injecting the implementation's id if present.