Skip to content

[BUG][python][python-experimental] generator python-experimental does not support ContentType header with charset specification #12049

@MAKOMO

Description

@MAKOMO

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • Have you tested with the latest master to confirm the issue still exists?
  • Have you searched for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description

A client generated using the python-experimental generator fails on a response with the valid header with a key error.

header: Content-Type: application/json; charset=utf-8
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/artisan.plus-0.0.1-py3.10.egg/artisanplus/api/account_api_endpoints/authenticate.py", line 262, in authenticate
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/artisan.plus-0.0.1-py3.10.egg/artisanplus/api_client.py", line 812, in deserialize
NotImplementedError: Deserialization of application/json; charset=utf-8 has not yet been implemented
openapi-generator version
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Related issues/PRs
Suggest a fix

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions