From 911ac263faaff5105afd45fef23b1ce2c05219e6 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 19 Aug 2025 11:32:41 +0200 Subject: [PATCH] :bug: Use ::sm/any instead of any for get-file-fragment rpc method schema The usage of `any?` predicate as-is uses the standard any generator that causes to generate java.lang.Character instances created that are not properly serialiable to JSON. The `::sm/any` schema delimits the generator to a commonly known serializable types on json. --- backend/src/app/rpc/commands/files.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/app/rpc/commands/files.clj b/backend/src/app/rpc/commands/files.clj index 5adef0050c..8916b74d9a 100644 --- a/backend/src/app/rpc/commands/files.clj +++ b/backend/src/app/rpc/commands/files.clj @@ -357,7 +357,7 @@ [:id ::sm/uuid] [:file-id ::sm/uuid] [:created-at ::ct/inst] - [:content any?]]) + [:content ::sm/any]]) (def schema:get-file-fragment [:map {:title "get-file-fragment"}