ring-swagger & compojure-api
mmer 2017-11-13T14:42:03.000167Z

Hi , are there any clojure tools that generate a server from an existing swagger.json file?

ikitommi 2017-11-13T14:54:22.000760Z

@mmer to get that working properly, one would need to have a JSON Schema => Schema or clojure.spec transformer or have a web library that accepts JSON Schema as a validation engine. After that, it would be trivial to generate a skeleton app with swagger-gen.

ikitommi 2017-11-13T14:55:28.000412Z

https://github.com/zalando-stups/swagger1st is kinda close and coercion is pluggable in compojure-api. so using JSON Schema in validation should be doable.

ikitommi 2017-11-13T14:56:35.000206Z

@nilrecurring might be doing the JSON Schema -> clojure.spec transformer?

mmer 2017-11-13T14:57:10.000479Z

If you go to the swagger site there are lots of implementation in different languages, but only a client for clojure- I was hoping for a server as I have some opensource API I need to support

ikitommi 2017-11-13T14:58:01.000496Z

they are just mustache templates I believe, so the routing table should be easy to generate. But not the model validations.