This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-10-05
Channels
- # announcements (14)
- # aws (7)
- # babashka (28)
- # beginners (16)
- # calva (2)
- # cider (1)
- # clj-commons (8)
- # clj-kondo (29)
- # clojure (213)
- # clojure-europe (39)
- # clojure-losangeles (2)
- # clojure-norway (9)
- # clojure-spec (2)
- # clojurescript (11)
- # community-development (1)
- # conjure (2)
- # cursive (6)
- # datalevin (2)
- # datomic (8)
- # emacs (29)
- # events (1)
- # fulcro (22)
- # graalvm (14)
- # improve-getting-started (1)
- # jobs (1)
- # lambdaisland (5)
- # leiningen (4)
- # lsp (7)
- # malli (13)
- # meander (11)
- # membrane (13)
- # off-topic (23)
- # polylith (9)
- # re-frame (4)
- # reagent (7)
- # reitit (6)
- # releases (2)
- # sql (58)
- # testing (8)
- # tools-deps (18)
- # web-security (2)
Quick question about malli with swagger. Right now, I define my reitit route definitions with malli, and malli-swagger generates the swagger definitions - all working well. However, recently I have added a couple of API responses where the malli definition is of the form [:or [<option1 payload>] [<option 2 payload>]]
In this case, swagger seems to just report <option 1 payload>
as the route payload. How would I go about updating swagger so that it displays the options to the API user? Thanks in advance.
Maybe https://github.com/metosin/malli#multi-schemas would do the trick?
Does anyone know an idiomatic way of making malli always generate UTF8 strings? I currently use my own :utf8-string
type instead of :string
When is it not generating utf-8 strings?
(malli.generator/generate [:string {:min 10}])
https://github.com/metosin/malli/issues/758 Would be great if someone else could try it out and see if you get the same results