validateService
validateService(
endpoint
):void
Performs sanity checks on service endpoint data, making sure that the following conditions are met:
- The
id
property is a string containing a valid URI fragment according to RFC#3986, not a complete DID URI. - If the
uris
property contains one or more strings, they must be valid URIs according to RFC#3986.
Parameters
• endpoint: DidServiceEndpoint
A service endpoint object to check.
Returns
void