From 0836ba2f8fb4386b8223953a2ab0c59e9fc17325 Mon Sep 17 00:00:00 2001 From: Hayleigh Thompson Date: Sat, 8 Aug 2026 09:48:48 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Handle=20both=20regular=20?= =?UTF-8?q?and=20at://-style=20handles.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/at/did_document.gleam | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/at/did_document.gleam b/src/at/did_document.gleam index 8fae7ce..43cf81b 100644 --- a/src/at/did_document.gleam +++ b/src/at/did_document.gleam @@ -116,7 +116,7 @@ pub fn decoder() -> Decoder(DidDocument) { decode.list(did.decoder()) }) use also_known_as <- decode.optional_field("alsoKnownAs", [], { - decode.list(handle.at_decoder()) + decode.list(decode.one_of(handle.at_decoder(), [handle.decoder()])) }) use verification_method <- decode.optional_field("verificationMethod", [], { decode.list(embedded_verification_method_decoder()) -- 2.51.2