Fork me on GitHub

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


@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.

ikitommi14:11:28 is kinda close and coercion is pluggable in compojure-api. so using JSON Schema in validation should be doable.


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


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


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