diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b2372aca..8f14f85c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `none` will not create a project folder at all, only the inner package folder (which won't be inner anymore) - Attempt to detect and alert users if they are using an unsupported version of OpenAPI (#281). - Fixes `Enum` deserialization when the value is `UNSET`. +- Add handling of application/vnd.api+json media type. ### Changes diff --git a/openapi_python_client/parser/responses.py b/openapi_python_client/parser/responses.py index c6c6a49a1..3d01a0eab 100644 --- a/openapi_python_client/parser/responses.py +++ b/openapi_python_client/parser/responses.py @@ -20,6 +20,7 @@ class Response: _SOURCE_BY_CONTENT_TYPE = { "application/json": "response.json()", + "application/vnd.api+json": "response.json()", "application/octet-stream": "response.content", "text/html": "response.text", }