Fork me on GitHub

I have a schema

(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}})
Which i am using in the below handler,
(defnk ^:command search
  "Searches a patient"
  {:responses {:default {:schema types/PatientSearchResponse}}}
  [data :- types/PatientSearchRequest]
  (success data))
How do i make type and linked to be query parameters and origin to be part of the http request body? Currently in swagger the everything is ended up as http request body.