mirror of
https://github.com/penpot/penpot.git
synced 2026-09-12 23:19:28 +00:00
🐛 Fix tokens-lib encoding when value is nilable
This commit is contained in:
parent
974495e08f
commit
507bf7445b
@ -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
|
;; 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
|
;; function that is declared but not defined; so we need to pass
|
||||||
;; an anonymous function and delegate the resolution to runtime
|
;; an anonymous function and delegate the resolution to runtime
|
||||||
{:encode/json #(export-dtcg-json %)
|
{:encode/json #(some-> % export-dtcg-json)
|
||||||
:decode/json #(read-multi-set-dtcg %)
|
:decode/json #(some-> % read-multi-set-dtcg)
|
||||||
;; FIXME: add better, more reallistic generator
|
;; FIXME: add better, more reallistic generator
|
||||||
:gen/gen (->> (sg/small-int)
|
:gen/gen (->> (sg/small-int)
|
||||||
(sg/fmap (fn [_]
|
(sg/fmap (fn [_]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user