Indicio-tech / pydid

Python library for validating, constructing, and representing DIDs and DID Documents
Apache License 2.0
11 stars 12 forks source link

fix: align with DIDComm v2.1 spec for service endpoints #77

Closed dbluhm closed 12 months ago

dbluhm commented 12 months ago

Version 2.1 of the spec defines the expected value for serviceEndpoint as:

... a serviceEndpoint MUST contain an object or an array of objects.

This differs from 2.0 in that a list of objects was previously required. This PR adjusts the validator for DIDComm v2 service objects accordingly.

TheTechmage commented 12 months ago

This looks right to me. Good improvement!