Skip to content

Commit

Permalink
fixing poor keywordizing #93
Browse files Browse the repository at this point in the history
  • Loading branch information
oliyh committed Aug 26, 2020
1 parent 74b6d50 commit 02b34f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/src/martian/openapi.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
;; which aren't the associated OPTIONS call.
:when (and (:operationId definition)
(not= :options method))
:let [parameters (group-by :in (:parameters definition))
:let [parameters (group-by (comp keyword :in) (:parameters definition))
body (process-body (:requestBody definition) components (:encodes content-types))
responses (process-responses (:responses definition) components (:decodes content-types))]]
{:path-parts (vec (tokenise-path url))
Expand Down
4 changes: 2 additions & 2 deletions core/test/martian/openapi_test.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@
first
(select-keys [:consumes :produces]))))))

(deftest openapi-two-test
(testing "parses parameters which are different somehow"
(deftest openapi-parameters-test
(testing "parses parameters"
(is (= {:description nil,
:method :get,
:produces ["application/json"],
Expand Down

0 comments on commit 02b34f2

Please sign in to comment.