Skip to content

Commit

Permalink
CMR-9525: Resolve Snyk Vulnerability (multiple project impact) - Allo…
Browse files Browse the repository at this point in the history
…cation of Resources Without Limits or Throttling (#2003)

* updated everit/json to new version

* update gitignore to ignore lein files

* update error message check in int test
  • Loading branch information
jmaeng72 authored Nov 16, 2023
1 parent 80f56b6 commit 961ae11
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
###############################
/logs
/.lein-*
.lein-env
*/.lein-*
profiles.clj
browse-scaler/src/node_modules
.classpath
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@
{:http-options {:body "{{{"}
:allow-failure? true})]
(is (= 400 status))
(is (re-find #"Invalid JSON: A JSON Object can not directly nest another JSON Object"
(first errors)))))
(is (= (first errors) "Invalid JSON: Missing value at 1 [character 2 line 1]"))))

(testing "Missing field validations"
(are [field]
Expand Down
2 changes: 1 addition & 1 deletion schema-validation-lib/project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[com.fasterxml.jackson.core/jackson-core "2.13.2"]
[com.fasterxml.jackson.dataformat/jackson-dataformat-cbor "2.13.2"
:exclusions [com.fasterxml.jackson.core/jackson-databind]]
[com.github.everit-org.json-schema/org.everit.json.schema "1.14.2"]
[com.github.everit-org.json-schema/org.everit.json.schema "1.14.3"]
[org.clojure/clojure "1.10.0"]]
:repositories [["jitpack.io" "https://jitpack.io"]]
:global-vars {*warn-on-reflection* true}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -611,8 +611,7 @@
:http-options {:body "{{{{"}})
error (-> body :errors first)]
(is (= 400 status))
(is (re-find #"Invalid JSON: A JSON Object can not directly nest another JSON Object"
error))))
(is (= "Invalid JSON: Missing value at 1 [character 2 line 1]" error))))

(testing "Associate tag with collections with data exceed 32KB"
(let [too-much-data {"a" (tags/string-of-length 32768)}
Expand Down

0 comments on commit 961ae11

Please sign in to comment.