Skip to content
Snippets Groups Projects
Commit 6d250a6c authored by Simon Belak's avatar Simon Belak
Browse files

Revert safe yaml stuff as it's not compatible with jre 7 :(

parent 9ad4e416
Branches
Tags
No related merge requests found
......@@ -67,7 +67,7 @@
[honeysql "0.8.2"] ; Transform Clojure data structures to SQL
[io.crate/crate-jdbc "2.1.6"] ; Crate JDBC driver
[instaparse "1.4.0"] ; Insaparse parser generator
[io.forward/yaml "1.0.7" ; Clojure wrapper for YAML library SnakeYAML (which we already use for liquidbase)
[io.forward/yaml "1.0.6" ; Clojure wrapper for YAML library SnakeYAML (which we already use for liquidbase)
:exclusions [org.clojure/clojure
org.yaml/snakeyaml]]
[kixi/stats "0.3.10" ; Various statistic measures implemented as transducers
......
......@@ -9,8 +9,7 @@
[schema
[coerce :as sc]
[core :as s]]
[yaml.core :as yaml])
(:import org.yaml.snakeyaml.constructor.SafeConstructor))
[yaml.core :as yaml]))
(def ^Long ^:const max-score
"Maximal (and default) value for heuristics scores."
......@@ -234,7 +233,7 @@
(try
(-> f
slurp
(yaml/parse-string :constructor (SafeConstructor.))
yaml/parse-string
(assoc :rule (file-name->table-type f))
(update :table_type #(or % (file-name->table-type f)))
rules-validator)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment