OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
21.29k stars 6.44k forks source link

[BUG] [Kotlin][Multiplatform] Invalid serialization handling in multi-platform ktor project. #14044

Open Marek00Malik opened 1 year ago

Marek00Malik commented 1 year ago

Bug Report Checklist

According to the following conversation. Direct content type setup is needed in the new Ktor Multiplatform projects.

openapi-generator version

6.1.0

Marek00Malik commented 1 year ago

https://github.com/OpenAPITools/openapi-generator/pull/14045

kalinjul commented 11 months ago

I'm getting the same error If you expect serialized body, please check that you have installed the corresponding plugin(like ContentNegotiation) and set Content-Type header.

Posting here for better google results for the next person running into this bug :)