Skip to content

Confusing error language in algorithms leading to misimplementation #240

@wip-abramson

Description

@wip-abramson

For example in the DID Resolution Algorithm see here

And specifically this text:

error object with type set to INVALID_DID

Which makes you think the type should be "INVALID_DID".

Only when you read the Errors section carefully:

The type value of the error object MUST be a URL. Where the values listed in the section below do not define a URL, the values MUST be prepended with the URL https://www.w3.org/ns/did#.

Do you realise type should be https://www.w3.org/ns/did#INVALID_DID.

In the test suite I wrote a wrong test for this, which passed against the universal resolver because it has a wrong implementation. Both of us misinterpreted the spec suggesting we might want to update the text maybe just to specify the full URL?

error object with type set to https://www.w3.org/ns/did#INVALID_DID

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions