This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-09-16
Channels
- # announcements (19)
- # babashka (13)
- # beginners (7)
- # calva (8)
- # cider (25)
- # clj-kondo (12)
- # cljsrn (7)
- # clojure (60)
- # clojure-australia (5)
- # clojure-europe (59)
- # clojure-france (14)
- # clojure-gamedev (2)
- # clojure-nl (1)
- # clojure-uk (7)
- # clojurescript (43)
- # community-development (8)
- # core-async (2)
- # cursive (15)
- # datomic (75)
- # deps-new (31)
- # depstar (1)
- # fulcro (6)
- # graalvm (53)
- # holy-lambda (1)
- # juxt (3)
- # jvm (13)
- # kaocha (8)
- # lsp (109)
- # malli (14)
- # off-topic (62)
- # pathom (11)
- # pedestal (12)
- # polylith (12)
- # releases (5)
- # sci (5)
- # shadow-cljs (15)
- # sql (16)
- # tools-deps (27)
- # vim (1)
- # xtdb (14)
Are there some tools out there that generate a data model diagram (in a format like DOT or PlantUML) from a JSON Schema?
I know. But my question is about JSON schema
Is there a way to transform a JSON schema into a Malli schema?
Maybe an equivalent question is "are all things representable in JSON schema representable in malli"?
I noticed you got already some answer on Twitter @U0L91U7A8, could you share those here too?
Unfortunately, none of the answers were satisfactory.
The best I could do is to manually convert the JSON schema into Malli and use Malli to generate a plantuml diagram
Ok. The new map-syntax is quite close to JSON Schema, which should make the JSON Schema -> Malli streightworward.
Indeed. @U055NJ5CC What was the motivation for adding the new map-syntax?
1. order of magnitude faster way to instantiate schemas (e.g. ast IS the parsed results, no need to parse hiccup) -> matters on js & mobile 2. the old map-syntax was too generic to be useful 3. creating schemas programmatically behind the scenes is easier with maps (e.g. when inferring schemas from data) 4. itโs good to have options ๐
Makes sense. Thanks
Is there a way to transform a JSON schema into a Malli schema?
1. order of magnitude faster way to instantiate schemas (e.g. ast IS the parsed results, no need to parse hiccup) -> matters on js & mobile 2. the old map-syntax was too generic to be useful 3. creating schemas programmatically behind the scenes is easier with maps (e.g. when inferring schemas from data) 4. itโs good to have options ๐