This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-10-30
Channels
- # announcements (2)
- # babashka (37)
- # beginners (64)
- # biff (27)
- # cherry (7)
- # cider (19)
- # clj-kondo (10)
- # clojure-austin (4)
- # clojure-doc (18)
- # clojure-europe (72)
- # clojure-nl (1)
- # clojure-norway (13)
- # clojure-uk (5)
- # clojurescript (18)
- # data-science (28)
- # events (5)
- # graalvm (32)
- # hyperfiddle (6)
- # introduce-yourself (1)
- # jobs (4)
- # joyride (16)
- # juxt (6)
- # malli (7)
- # missionary (3)
- # off-topic (18)
- # pathom (15)
- # portal (14)
- # re-frame (14)
- # reitit (5)
- # releases (1)
- # rum (2)
- # sci (1)
- # shadow-cljs (102)
- # spacemacs (3)
- # sql (6)
- # web-security (2)
- # xtdb (10)
Hi I am new to malli. Could someone please help me in defining schema for below sample payload- here "some-dynamic-value" is dynamic string value { "some-dynamic-value": { "test": 0.07041698796202, "test2":1} }
Thank you @U0DSU64Q1 - I will try this.
@U0DSU64Q1 - I tried this , I am not getting any error but getting 200 OK with empty response {}
Also need help in defining schema for dynamic payload to same endpoint, my endpoint accepting two types of payload below, how can I define final schema? (def payload1 [:map [:test [:vector :int]] [:abc :string] [:params [:map [:one :string] [:two :string] [:three :string] ]]]) (def payload2 [:map [:test [:vector :int]] [:abc :string] [:params [:map [:testing :string] [:start_month :string] [:gender :string] ]]])