diff --git a/openapi3/paths.py b/openapi3/paths.py index f8d0f2e..f9d6fd1 100644 --- a/openapi3/paths.py +++ b/openapi3/paths.py @@ -280,6 +280,11 @@ def _request_handle_body(self, data): self._request.data = body self._request.headers["Content-Type"] = "application/json" + + elif "multipart/form-data" in self.requestBody.content: + self._request.data = data + self._request.headers["Content-Type"] = data.content_type + else: raise NotImplementedError()