We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
you can use the s/Any to allow anything else in a map.
s/Any
For example:
(ns my-ns (:require [schema.core :as s])) (def MySchema {:required s/Keyword s/Any s/Any}) (s/check MySchema {:required :a} ;; => nil (s/check MySchema {:other :x}) ;; => {:required missing-required-key, :other disallowed-key} (s/check MySchema {:other :x :required :a}) ;; => nil