ring-swagger

ring-swagger & compojure-api
vlad_poh 2020-06-30T16:47:23.041200Z

Hi

vlad_poh 2020-06-30T16:49:35.042300Z

Trying to add an openapi extension in compojure-api but i'm not sure i fully understand how restructure-parms works

vlad_poh 2020-06-30T16:50:08.042800Z

so i want to add :x-ms-trigger to an endpoint (see https://docs.microsoft.com/en-us/connectors/custom-connectors/openapi-extensions#x-ms-trigger)

vlad_poh 2020-06-30T16:51:05.043400Z

i have the following but

(defmethod restructure-param :x-ms-trigger
  [_ components acc]
  (update-in acc [:middleware] conj [:headers components]))