You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
I'm trying to define a file response:. In the generated python code, I see that for a file type, the function __deserialize_file is called, and it's exactly what I want: it save the HTTP response body as a temporary file on the filesystem and returns its path.
The problem is that the response_type file is never defined, it's always a bytearray.
How can I tell the python wrapper generator to write a file response to a temporary file (calling __deserialize_path) ?
openapi-generator version
7.11.0
OpenAPI declaration file content or url
openapi: 3.1.1info:
description: reprotitle: reproversion: '1.0.0'paths:
/content:
get:
description: Returns data for all given object idsresponses:
'200':
content:
application/png:
schema:
type: stringformat: binarydescription: The file response
Bug Report Checklist
Description
I'm trying to define a
file
response:. In the generated python code, I see that for a file type, the function __deserialize_file is called, and it's exactly what I want: it save the HTTP response body as a temporary file on the filesystem and returns its path.The problem is that the response_type file is never defined, it's always a bytearray.
How can I tell the python wrapper generator to write a file response to a temporary file (calling __deserialize_path) ?
openapi-generator version
7.11.0
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Related issues/PRs
Suggest a fix
The text was updated successfully, but these errors were encountered: