ring-swagger

ring-swagger & compojure-api
2020-03-26T15:28:47.007200Z

anyone have any pointers on an easy way to write out the swagger.json result for a compojure-api project? i'm trying to generate it as a build artifact

ikitommi 2020-03-26T17:52:45.008100Z

@nickmbailey you should check out https://github.com/metosin/compojure-api/blob/master/src/compojure/api/validator.clj. It shows how to pull out the swagger endpoint for an api. Can easily be written to file from there. cheers.

2020-03-26T18:17:45.008400Z

exactly what i needed

2020-03-26T18:17:55.008700Z

thanks @ikitommi!