You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Vulnerabilities in dependency: jackson-databind 2.2.3 #433
The version of jackson-databind should always be the same as the version of jackson-core; otherwise you will have problems.
I'm not super-eager to add dependency version overrides to compojure-api – it's better to upgrade libraries deeper in the dependency tree and wait until the upgrades bubble up to compojure-api – but it will take a while.
Yeah, I think that should work. scjsv is only needed for the compojure.api.validator namespace so as long as you use that only in tests, it should be fine.
Activity
miikka commentedon Nov 20, 2019
Wow, that's an old dependency. As a workaround, you can add an explicit dependency on
jackson-databindand I think it should work.[com.fasterxml.jackson.core/jackson-databind "2.9.9"]The version of jackson-databind should always be the same as the version of jackson-core; otherwise you will have problems.
I'm not super-eager to add dependency version overrides to compojure-api – it's better to upgrade libraries deeper in the dependency tree and wait until the upgrades bubble up to compojure-api – but it will take a while.
hkorpi commentedon Nov 20, 2019
What happens if I exclude metosin/scjsv like:
[metosin/compojure-api "1.1.13" :exclusions [metosin/scjsv]]?
hkorpi commentedon Nov 20, 2019
... seems to at least break my test:
https://github.com/solita/livijuku/blob/develop/juku-backend/test/clj/juku/service/swagger_test.clj
Is that library
metosin/scjsvonly used for testing?So can I exclude it from normal dependencies and include it in dev dependencies?
miikka commentedon Nov 20, 2019
Yeah, I think that should work. scjsv is only needed for the
compojure.api.validatornamespace so as long as you use that only in tests, it should be fine.hkorpi commentedon Nov 21, 2019
Seems to work and my uberjar is also 5Mb thinner, thanks