Skip to content

Commit

Permalink
fix(#4): use another json library
Browse files Browse the repository at this point in the history
This is needed because with `cheshire` native
build is failing due some classes initialization
during build instead of runtime.

Co-authored-by: @krvital <mail@krvital.pro>
  • Loading branch information
worm2fed and krvital committed Jul 17, 2024
1 parent 0638485 commit 48d8b53
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
11 changes: 5 additions & 6 deletions deps.edn
Original file line number Diff line number Diff line change
@@ -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}}}
4 changes: 2 additions & 2 deletions src/aidbox_sdk/generator.clj
Original file line number Diff line number Diff line change
@@ -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]]
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 48d8b53

Please sign in to comment.