papsign / Ktor-OpenAPI-Generator

Ktor OpenAPI/Swagger 3 Generator
Apache License 2.0
241 stars 42 forks source link

Preserve generic type info when parse body #59

Closed vansickle closed 4 years ago

vansickle commented 4 years ago

Using KType and typeOf<B> instead of B::class to preserve generic type info, so being able to receive something like List<T> as a body

Wicpar commented 4 years ago

Thanks, a few other parts may also need this conversion, but nothing pressing.