Library Version(s)
2.0.0-alpha31
Problem
(POST "/test-route" request
:multipart-params [optional_data :- s/Str]
:middleware [admin-rbac upload/wrap-multipart-params]
(res/ok "ok"))
In this example, optional_data is not a mandatory argument. How do I tell the framework to accept requests which do not provide this field. I've tried these and they don't work:
...
:multipart-params [optional_data :- s/Str nil]
...
...
:multipart-params [optional_data :- (s/maybe s/Str)]
...