Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to deserialize when charset is provided #22

Closed
Leemur89 opened this issue May 7, 2024 · 1 comment · Fixed by #27
Closed

Fail to deserialize when charset is provided #22

Leemur89 opened this issue May 7, 2024 · 1 comment · Fixed by #27

Comments

@Leemur89
Copy link

Leemur89 commented May 7, 2024

Hello,

Following the refacto #18, when the content type returned by the server contains the charset, e.g. application/json;charset=utf-8, the response validator always fails because the deserializer tries to pass as input argument the charset:

Traceback (most recent call last):
  File "/Users/Shared/robocorp/ht/***/lib/python3.9/site-packages/openapi_core/deserializing/media_types/deserializers.py", line 48, in deserialize
    return deserializer_callable(value, **parameters)
  File "/Users/Shared/robocorp/ht/***/lib/python3.9/json/__init__.py", line 359, in loads
    return cls(**kw).decode(s)
TypeError: __init__() got an unexpected keyword argument 'charset'
@robinmackaij
Copy link
Collaborator

I'll see about addressing this one somewhere this week, should be a simple fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants