-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Shouldn't this test suite follow the VC data model specification?
This test checks for subsequent items to be strings, however in the spec it allows for objects:
it('credential "@context" items MUST be strings.', async function() {
this.test.cell = {
columnId: name,
rowId: this.test.title
};
const body = createRequestBody({issuer});
const invalidContextTypes = [{foo: true}, 4, false, null];
for(const invalidContextType of invalidContextTypes) {
body.credential['@context'] = invalidContextType;
const {result, error} = await issuer.post({json: {...body}});
shouldThrowInvalidInput({result, error});
}
});
The spec reads:
Subsequent items in the array MUST express context information and be composed of any combination of URIs or objects.
Metadata
Metadata
Assignees
Labels
No labels