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(backport 0.3.x): align with DIDComm v2.1 spec for service endpoints #78

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.