From 08eecf4cc8348a39c98ee268d3102a68f17801ad Mon Sep 17 00:00:00 2001 From: a1pcm Date: Thu, 9 Apr 2026 16:32:41 -0500 Subject: [PATCH] drime: fix User.EntryPermissions JSON unmarshalling `json:"entry_permissions"` is known to be either empty [] or of structure {string: boolean}. This may have been a breaking API change on Drime's side. Because EntryPermissions is not used, the type was changed to `any` to capture both cases, otherwise we could implement custom unmarshalling for that type. --- backend/drime/api/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/drime/api/types.go b/backend/drime/api/types.go index 579d84e14..64326dfb9 100644 --- a/backend/drime/api/types.go +++ b/backend/drime/api/types.go @@ -21,7 +21,7 @@ type User struct { Avatar string `json:"avatar"` ModelType string `json:"model_type"` OwnsEntry bool `json:"owns_entry"` - EntryPermissions []any `json:"entry_permissions"` + EntryPermissions any `json:"entry_permissions"` DisplayName string `json:"display_name"` }