Welcome! Please see the About page for a little more info on how this works.

+4 votes
in tools.deps by
recategorized by

Peform validation of deps.edn files, providing useful error messages and information about misspelled keywords, invalid types, valid data in the wrong location.

Some motivating examples:

misspelled keywords:
:overide-deps
https://groups.google.com/g/clojure/c/g-Gy3Q7jHfk

including valid options in incorrect locations

:jvm-opts in the top level
https://app.slack.com/client/T03RZGPFR/C6QH853H8

invalid data types in valid edn files:

{:deps :org.clojure/tools.reader {:mvn/version "1.2.3"} org.clojure/tools.reader {mvn/version "1.2.3"}}

  • first dep has a keyword where a symbol should be present

  • second dep has a symbol where a keyword should be present

For implementation
spell-spec is a great tool to do this
https://github.com/bhauman/spell-spec

related JIRA ticket
https://clojure.atlassian.net/browse/TDEPS-238

Please log in or register to answer this question.

...