diff --git a/deps.edn b/deps.edn index 71289c6..5283e0b 100644 --- a/deps.edn +++ b/deps.edn @@ -1,14 +1,13 @@ {:paths ["src"] - :deps {cheshire/cheshire {:mvn/version "5.11.0"} - com.github.clj-easy/graal-build-time {:mvn/version "0.1.4"} - com.health-samurai/matcho {:mvn/version "0.3.11"} - org.clojure/clojure {:mvn/version "1.11.3"} - org.clojure/tools.cli {:mvn/version "1.1.230"}} + :deps {com.github.clj-easy/graal-build-time {:mvn/version "0.1.4"} + org.clojure/clojure {:mvn/version "1.11.3"} + org.clojure/data.json {:mvn/version "2.5.0"} + org.clojure/tools.cli {:mvn/version "1.1.230"}} :aliases {:dev {:extra-paths ["dev"]} :test {:extra-paths ["tests"] - :deps {}} + :deps {com.health-samurai/matcho {:mvn/version "0.3.11"}}} :build {:deps {io.github.clojure/tools.build {:mvn/version "0.10.4"}} :ns-default build}}} diff --git a/src/aidbox_sdk/generator.clj b/src/aidbox_sdk/generator.clj index 188a7b1..e6aa588 100644 --- a/src/aidbox_sdk/generator.clj +++ b/src/aidbox_sdk/generator.clj @@ -1,7 +1,7 @@ (ns aidbox-sdk.generator (:refer-clojure :exclude [namespace]) (:require - [cheshire.core :as json] + [clojure.data.json :as json] [aidbox-sdk.generator.dotnet.templates :as dotnettpl] [aidbox-sdk.generator.helpers :refer [->pascal-case safe-conj uppercase-first-letter vector-to-map]] @@ -713,7 +713,7 @@ (->> rdr line-seq (mapv (fn [line] - (json/parse-string line keyword)))))) + (json/read-str line :key-fn keyword)))))) (defn merge-duplicates [schemas] (->> schemas