diff --git a/pydid/service.py b/pydid/service.py index fc79054..d7d53e6 100644 --- a/pydid/service.py +++ b/pydid/service.py @@ -17,7 +17,7 @@ class Service(Resource): """Representation of DID Document Services.""" id: DIDUrl - type: str + type: Union[str, List[str]] service_endpoint: Union[ EndpointStrings, List[Union[EndpointStrings, Mapping[str, Any]]], diff --git a/tests/test_service.py b/tests/test_service.py index f04530b..0a4ce84 100644 --- a/tests/test_service.py +++ b/tests/test_service.py @@ -63,6 +63,11 @@ "routingKeys": ["did:example:somemediator#somekey"], }, }, + { + "id": "did:web:example.com#linked-domain", + "type": ["LinkedDomains"], + "serviceEndpoint": "https://example.com", + }, ] INVALID_SERVICES = [