Fork me on GitHub
#clj-kondo
<
2022-03-24
>
Maris17:03:40

(api/POST "/update-settings" []
         :summary "Updates settings"
         :body [body-params {(s/optional-key :url)                       s/Str
                             (s/optional-key :external-data-provider-id) s/Str
                             (s/optional-key :external-branch-id)        s/Str}]

Maris17:03:20

How can I get rid of unresolved body-params error in this code ^^^

Maris17:03:54

compojure.api.sweet/POST clj-kondo.lint-as/def-catch-all

borkdude19:03:06

@maris.orbidans I think you are looking for :linters {unresolved-symbol {:exclude [(compojure.api.sweet/POST)]}}

👍 1