# Announcing: spell-spec which will help bring figwheel like config error messages to expound

**URL:** https://clojureverse.org/t/announcing-spell-spec-which-will-help-bring-figwheel-like-config-error-messages-to-expound/2195
**Category:** Your Projects and Libraries
**Created:** [May 29, 2018, 6:26pm UTC](https://clojureverse.org/t/announcing-spell-spec-which-will-help-bring-figwheel-like-config-error-messages-to-expound/2195 "2018-05-29T18:26:44Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![bhauman](https://clojureverse.org/user_avatar/clojureverse.org/bhauman/32/1246_2.png) [@bhauman](https://clojureverse.org/u/bhauman)
#### Post date: [May 29, 2018, 6:26pm UTC](https://clojureverse.org/t/announcing-spell-spec-which-will-help-bring-figwheel-like-config-error-messages-to-expound/2195/1 "2018-05-29T18:26:45Z")

</div>

Spell spec is very simple way to define `keys` specs that check for misspelled keys in maps while keeping the maps open to unspecified keys that are not close misspellings of specified keys.

There is also a closed `strict-keys` spec that will fail for unrecognized keys.

spell-spec also has a warning mode, so it will only throw warnings when unknown and misspelled keys are detected.

> **[bhauman/spell-spec](https://github.com/bhauman/spell-spec)**
>
> spell-spec - clojure.spec.alpha helpers that check for misspelled map keys, with expound integration

---

<div class="post-metadata">

### Author: ![briangorman](https://clojureverse.org/letter_avatar_proxy/v4/letter/b/ac91a4/32.png) [@briangorman](https://clojureverse.org/u/briangorman)
#### Post date: [May 30, 2018, 9:07pm UTC](https://clojureverse.org/t/announcing-spell-spec-which-will-help-bring-figwheel-like-config-error-messages-to-expound/2195/2 "2018-05-30T21:07:05Z")

</div>

One pain point I have found is that with stuff like this (closedmap) is that we have to define a spec testing for wrong keys, and then we have to define a spec for the correct keys (checking that the data conforms to the spec). It would be great if there was a “higher” level macro that let me get the “closed map” spec for _free_ at the time of defining the macro for the “open map”

---

<div class="post-metadata">

### Author: ![system](https://clojureverse.org/uploads/default/original/2X/5/51079bf9e4b7d9466242c06cf1e43b9f8bd6da14.png) [@system](https://clojureverse.org/u/system)
#### Post date: [November 29, 2018, 9:07am UTC](https://clojureverse.org/t/announcing-spell-spec-which-will-help-bring-figwheel-like-config-error-messages-to-expound/2195/3 "2018-11-29T09:07:09Z")

</div>

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
