Skip to content

Commit

Permalink
Merge pull request #27 from MarketSquare/bug/22_deserialize_error_if_…
Browse files Browse the repository at this point in the history
…charset_in_content_type

Remove encoding infomation when getting content type
  • Loading branch information
robinmackaij authored May 15, 2024
2 parents 9186952 + ec108ef commit 652b185
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/OpenApiLibCore/openapi_libcore.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,8 @@ def _get_json_types(self, item: Any) -> Generator[str, None, None]:
else:
for content_type in content_dict:
if "json" in content_type:
yield content_type
content_type_without_charset, _, _ = content_type.partition(";")
yield content_type_without_charset

if isinstance(item, list):
for list_item in item:
Expand Down

0 comments on commit 652b185

Please sign in to comment.