diff --git a/pkg/discovery/endpoint/restapi/operations.go b/pkg/discovery/endpoint/restapi/operations.go index 0ca888e2b..2762785c1 100644 --- a/pkg/discovery/endpoint/restapi/operations.go +++ b/pkg/discovery/endpoint/restapi/operations.go @@ -231,7 +231,7 @@ func (o *Operation) orbWebDIDHandler(rw http.ResponseWriter, r *http.Request) { return } - writeResponse(rw, result) + writeResponse(rw, result.Document) } // webDIDHandler swagger:route Get /.well-known/did.json discovery wellKnownDIDReq