This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-04-05
Channels
- # beginners (240)
- # boot (5)
- # cider (48)
- # clara (2)
- # cljs-dev (3)
- # cljsrn (66)
- # clojure (111)
- # clojure-denver (2)
- # clojure-italy (42)
- # clojure-nl (5)
- # clojure-spec (12)
- # clojure-uk (45)
- # clojurescript (138)
- # community-development (7)
- # core-async (8)
- # datomic (27)
- # emacs (21)
- # euroclojure (6)
- # figwheel (10)
- # fulcro (29)
- # graphql (5)
- # hoplon (3)
- # luminus (1)
- # lumo (7)
- # mount (4)
- # off-topic (13)
- # onyx (20)
- # parinfer (3)
- # pedestal (4)
- # precept (1)
- # proton (3)
- # re-frame (41)
- # reagent (3)
- # reitit (28)
- # ring-swagger (7)
- # shadow-cljs (88)
- # specter (1)
- # testing (10)
- # tools-deps (27)
- # vim (58)
@ikitommi unfortunately it’s not, I tested with the latest 3.13.2 and some previous ones with the same result. To give you more details, I was trying to connect swagger with FHIR schemas. FHIR is a medical standard to store medical information. Schemas might be found here: https://www.hl7.org/fhir/fhir.schema.json.zip My swagger file mentions just a single entity, but that’s enough to ruin swagger:
{"swagger": "2.0",
"schemes": ["http"],
"info": {"contact": {"email": ""},
"title": "sdfsdfsf"},
"paths": {"/foo": {"get": {"description": "sdfsdfsdfdsf",
"responses": {200: {"description": "sdfsdf",
"schema": {"$ref": "./fhir.schema.json/Practitioner.schema.json"}}}
}}}
}
@jmckitrick the content-type shoud be set automatically if you haven’t changed the default api options. e.g.
(api
(GET "/ping" []
(ok {:kikka "kukka"})))
… encodes the response data into JSON (or whatever the client has requested) and sets the headers.@igrishaev sorry, that falls into the swagger.js domain, bug somewhere there. Could you raise issue there?
@ikitommi yes, I’ll submit one a bit later. Currently, I crafted those schemas manually.
@ikitommi My mistake, I forgot the response headers are not keywords….