Skip to content

Commit

Permalink
no .toSymbol in other platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
ikitommi committed Jan 5, 2024
1 parent e84aae5 commit 9e24c3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/malli/json_schema.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@

(defn -ref [schema {::keys [transform definitions] :as options}]
(let [ref (as-> (m/-ref schema) $
(cond (var? $) (str (.toSymbol $))
(cond (var? $) (let [{:keys [ns name]} (meta $)]
(str (symbol (str ns) (str name))))
(qualified-ident? $) (str (namespace $) "/" (name $))
:else (str $)))]
(when-not (contains? @definitions ref)
Expand Down

0 comments on commit 9e24c3b

Please sign in to comment.