This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-09-26
Channels
- # arachne (4)
- # beginners (70)
- # bigdata (1)
- # boot (373)
- # braid-chat (3)
- # cider (4)
- # cljs-dev (10)
- # cljsjs (6)
- # cljsrn (27)
- # clojars (11)
- # clojure (114)
- # clojure-austria (1)
- # clojure-czech (2)
- # clojure-dusseldorf (2)
- # clojure-greece (7)
- # clojure-italy (2)
- # clojure-nl (6)
- # clojure-russia (15)
- # clojure-serbia (11)
- # clojure-spec (92)
- # clojure-uk (5)
- # clojurescript (183)
- # component (9)
- # cursive (28)
- # datomic (36)
- # editors (4)
- # emacs (1)
- # garden (11)
- # hoplon (155)
- # lein-figwheel (7)
- # mount (47)
- # om (97)
- # onyx (25)
- # proton (3)
- # rdf (3)
- # re-frame (80)
- # reagent (9)
- # ring-swagger (9)
- # spacemacs (1)
- # untangled (145)
- # vim (2)
Perhaps a silly question, but I have a swagger.yml spec and a clojure service that implements it (not using compojure-api), and I'd like to use the swagger spec to validate the JSON responses are conformant. Is there some middleware that might make this possible?
obviously I could port the app to use compojure api - but that's more work than I can bite off just now
Don't know about existing middlewares, or even validation against Swagger Spec
but there is JSON-Schema validator: https://github.com/metosin/scjsv
You would need to yourself select JSON Schema from Swagger spec per request uri etc.
@juhoteperi: cool. I did consider something like that as a secondary option... but I discovered that JSON schema and swagger aren't quite the same
so not sure if my spec strays from json schema compatibility or not
Yep, Swagger Spec contains JSON Schemas