Skip to content

Commit

Permalink
opts
Browse files Browse the repository at this point in the history
  • Loading branch information
frenchy64 committed Apr 11, 2024
1 parent 9f27501 commit 295a221
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ring/swagger/json_schema.clj
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
(merge-meta x options))))

(defn- try->swagger [v k key-meta opts]
(try (->swagger v {:key-meta key-meta ::schema-type (opts->schema-type opts)})
(try (->swagger v (assoc opts :key-meta key-meta))
(catch Exception e
(throw
(IllegalArgumentException.
Expand Down Expand Up @@ -288,7 +288,7 @@
{:pre [(common/plain-map? schema)]}
(if-let [extra-key (s/find-extra-keys-schema schema)]
(let [v (get schema extra-key)]
(try->swagger v s/Keyword nil (opts->schema-type opts)))
(try->swagger v s/Keyword nil opts))
false)))

(defn schema-object
Expand Down

0 comments on commit 295a221

Please sign in to comment.