Skip to content

Migration Guide to 1.1.11

Ambrose Bonnaire-Sergeant edited this page Apr 23, 2024 · 1 revision

About

Compojure-api 1.1.11 has the following breaking changes:

  • swagger-ui and swagger-docs now take options map instead of varargs.

swagger-ui and swagger-docs

swagger-ui and swagger-docs now take an options map with a path key instead of an optional path and vararg options.

;; Compojure-api 1.1
(swagger-ui "/swagger")

;; Compojure-api 2.0
(swagger-ui {:path "/swagger"})

swagger-routes and :swagger api options work as before.