Open amokfa opened 4 months ago
2.0.0-alpha31
(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:
optional_data
... :multipart-params [optional_data :- s/Str nil] ...
... :multipart-params [optional_data :- (s/maybe s/Str)] ...
Library Version(s)
2.0.0-alpha31
Problem
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: