Define invalidResolutionOptions error
I believe we should add a invalidResolutionOptions error.
The specific case I am thinking of is when someone attempts to resolve a DID with both versionId and versionTime specified. These are intended to be mutually exclusive per the spec. Although that is currently only stated in section 12 - https://w3c.github.io/did-resolution/#versioning. Perhaps this should also be added to the definitions of these options.
As DID methods define and use other options this error could also apply.
I agree, this seems useful.
Wondering if this should be generalized. to INVALID_OPTIONS or INVALID_RESOLVER_OPTIONS.
This would the cover the dereferencing options too. Or we could add two errors. One for INVALID_DEREFERENCING_OPTIONS?
I don't have a strong opinion on this. I think a single error INVALID_OPTIONS would be fine.
Yep, I tend to agree. Updated PR #146 to include this option.
This has been addressed by https://github.com/w3c/did-resolution/pull/146