Hopefully this is a proper place to ask. I was wondering whether anyone had already implemented how to save swagger.json as a static file from the code. I took a look at how compojure-api handles it, and if I understoof correctly at api-function routes / paths data is created and that then gets used with swagger-docs to generate the swagger data. Has anyone else needed this kind of feature anywhere and perhaps implemented it already?
If you scroll up a bit (starting from December 26th) there’s discussion related to this which probably helps you forward.
If I understand correctly, now combination of cheshire/generate-string and maybe java io could do the job.