We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2f2a06 commit 5311636Copy full SHA for 5311636
src/main/lrsql/util/reaction.clj
@@ -5,6 +5,7 @@
5
[lrsql.spec.common :as cs]
6
[lrsql.spec.reaction :as rs]
7
[lrsql.spec.statement :as ss]
8
+ [clojure.string :refer [lower-case]]
9
[xapi-schema.spec :as xs]))
10
11
(s/fdef path->string
@@ -80,7 +81,10 @@
80
81
(walk/postwalk #(if (and (map? %)
82
(= (key (first %)) "$templatePath"))
83
(let [input-path (val (first %))
- path (update input-path 0 keyword)
84
+ path (update input-path 0 (fn [cn]
85
+ (-> cn
86
+ lower-case
87
+ keyword)))
88
result (get-in cond->statement path :not-found)]
89
(case result
90
:not-found (throw (ex-info (str "No value found at " input-path)
0 commit comments