We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b38b52 commit e8a0ce3Copy full SHA for e8a0ce3
openapi_python_client/parser/responses.py
@@ -22,10 +22,11 @@ class Response:
22
23
24
def _source_by_content_type(content_type: str) -> Optional[str]:
25
+ if content_type.startswith("text/"):
26
+ return "response.text"
27
known_content_types = {
28
"application/json": "response.json()",
29
"application/octet-stream": "response.content",
- "text/html": "response.text",
30
}
31
source = known_content_types.get(content_type)
32
if source is None and content_type.endswith("+json"):
0 commit comments