🐛 Fix tokens-lib encoding when value is nilable

This commit is contained in:
Andrey Antukh 2025-12-12 09:52:33 +01:00
parent 974495e08f
commit 507bf7445b
1 changed files with 2 additions and 2 deletions

View File

@ -1410,8 +1410,8 @@ Will return a value that matches this schema:
;; NOTE: we can't assign statically at eval time the value of a
;; function that is declared but not defined; so we need to pass
;; an anonymous function and delegate the resolution to runtime
{:encode/json #(export-dtcg-json %)
:decode/json #(read-multi-set-dtcg %)
{:encode/json #(some-> % export-dtcg-json)
:decode/json #(some-> % read-multi-set-dtcg)
;; FIXME: add better, more reallistic generator
:gen/gen (->> (sg/small-int)
(sg/fmap (fn [_]