From 29ad99d685839880a917ed6859d4b67fd7eba891 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 3 Jun 2025 18:30:22 +0200 Subject: [PATCH] :bug: Fix incorrect declaration of tokens lib schema decoder --- backend/src/app/binfile/v3.clj | 2 +- common/src/app/common/types/tokens_lib.cljc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/app/binfile/v3.clj b/backend/src/app/binfile/v3.clj index ba97b6a76c..e28d07a765 100644 --- a/backend/src/app/binfile/v3.clj +++ b/backend/src/app/binfile/v3.clj @@ -157,7 +157,7 @@ (sm/decoder ::cty/typography sm/json-transformer)) (def decode-tokens-lib - (sm/decoder ::cto/tokens-lib sm/json-transformer)) + (sm/decoder cto/schema:tokens-lib sm/json-transformer)) (def decode-plugin-data (sm/decoder ::ctpg/plugin-data sm/json-transformer)) diff --git a/common/src/app/common/types/tokens_lib.cljc b/common/src/app/common/types/tokens_lib.cljc index 73c6c0dd18..a4d7229163 100644 --- a/common/src/app/common/types/tokens_lib.cljc +++ b/common/src/app/common/types/tokens_lib.cljc @@ -796,6 +796,7 @@ Will return a value that matches this schema: (declare parse-multi-set-dtcg-json) (declare export-dtcg-json) + (deftype TokensLib [sets themes active-themes] ;; NOTE: This is only for debug purposes, pending to properly ;; implement the toString and alternative printing.