Jun 8, 2017
Index of all namespaces
Less tolerant Clojure service configuration.
Utilities for less tolerant Clojure service configuration maps.
This library builds heavily on strictly.
Service configuration for an environment often uses configuration files, templated using provisioners such as chef or ansible. Missing configuration attributes may not be exposed until service deployment, during runtime access, or may be obscured behind a lack of checks within the service.
This library helps expose missing configuration attributes by failing fast (thowing a
RuntimeException) when invalid configuration is presented.
If you want to use it, include it in your
project.clj file to download it from Clojars:
strict function from the
map namespace to create a map that throws an Exception if a key that does not exist is retrieved. This is in contrast to Clojure’s default behaviour of returning
nil in such cases.
strict function will throw an Exception if the map contains nil values.
See the tests for example usages.
Copyright © 2017 Brydon Cheyney