Skip to content

[BUG] [Kotlin] Generated api client doesn't work for plain text response body types #15973

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

Closed
6 tasks
Yonggo opened this issue Jul 2, 2023 · 2 comments · Fixed by #20250
Closed
6 tasks

[BUG] [Kotlin] Generated api client doesn't work for plain text response body types #15973

Yonggo opened this issue Jul 2, 2023 · 2 comments · Fixed by #20250

Comments

@Yonggo
Copy link

Yonggo commented Jul 2, 2023

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
openapi-generator version
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Related issues/PRs
Suggest a fix

accept content type is not set in the generated client code unless application/json is used as response tpye:
image
therefore it come always error "HttpMediaTypeNotAcceptableException" during integrationtest

@ffffionn
Copy link
Contributor

This is a big deal I think, the "text/plain" media type should be supported

@0sten
Copy link

0sten commented Feb 13, 2025

Issue is still present when client is ktor.

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

Successfully merging a pull request may close this issue.

3 participants