schema

vijayakkineni 2016-08-25T21:28:48.000018Z

A beginner question, how do i make sure the inner map :origin has at least one key present

(s/defschema PatientSearchRequest
   {:type    (s/enum :exact :similar :phonetic)
   :linked? s/Bool
   :origin  {(s/optional-key :foo) s/Bool
             (s/optional-key :baz) s/Bool
             (s/optional-key :bar) s/Bool}})