This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-08-22
Channels
- # announcements (13)
- # babashka (22)
- # beginners (22)
- # biff (17)
- # calva (6)
- # clerk (20)
- # clj-kondo (25)
- # clj-together (5)
- # clj-yaml (20)
- # cljdoc (16)
- # cljs-dev (1)
- # clojure (42)
- # clojure-brasil (1)
- # clojure-europe (26)
- # clojure-nl (6)
- # clojure-norway (24)
- # clojure-turkiye (3)
- # clojure-uk (5)
- # clojurescript (37)
- # core-async (7)
- # core-logic (2)
- # datalevin (7)
- # datomic (43)
- # events (2)
- # fulcro (7)
- # gratitude (1)
- # hyperfiddle (7)
- # java (7)
- # jobs (3)
- # lsp (4)
- # off-topic (16)
- # pathom (18)
- # polylith (1)
- # portal (27)
- # reitit (4)
- # releases (3)
- # shadow-cljs (47)
- # tools-build (14)
- # tools-deps (16)
- # yamlscript (11)
I'm using reitit-swagger to generate API documentation, it looks like the "definitions" are being placed in the schema inside the prarameters, but they should all be gathered at the top level... I attached a screenshot to try to get this across, the "$ref" is pointing to a "definitions" key that should be at the top level of the document but it's really nested in the schema. Has anyone else seen this and is there an easy fix?
https://github.com/metosin/reitit/issues/558 If you scroll back a bit I have a post about this which include a workaround. For openapi but I imagine swagger would be similar.
The thread also includes a message from opqdonut saying he hopes to fix the issue proper next week
Understood, thank you! For now I'm fetching all of the schemas in the registry and using that to populate a top-level "definitions" attribute in the outbound data, then walking the structure to update the "ref" links. This works okay but is more of a patch; it definitely makes the output larger.