Skip to content

Commit

Permalink
both Swagger & Options are wrapped in Maybe.
Browse files Browse the repository at this point in the history
  • Loading branch information
ikitommi committed Apr 26, 2015
1 parent 6c0ada0 commit 216411e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ring/swagger/swagger2.clj
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@
:default-response-description-fn ((constantly \"\")) - a fn to generate
default response descriptions from http status code"
([swagger :- Swagger] (swagger-json swagger nil))
([swagger :- Swagger, options :- (s/maybe Options)]
([swagger :- (s/maybe Swagger)] (swagger-json swagger nil))
([swagger :- (s/maybe Swagger), options :- (s/maybe Options)]
(let [options (merge option-defaults options)]
(binding [jsons/*ignore-missing-mappings* (true? (:ignore-missing-mappings? options))
*options* options]
Expand Down

0 comments on commit 216411e

Please sign in to comment.