Open borissmidt opened 2 years ago
@borissmidt thanks for the suggestion.
cc @clasnake (2017/07), @jimschubert (2017/09) ❤️, @shijinkui (2018/01), @ramzimaalej (2018/03), @chameleon82 (2020/03), @Bouillie (2020/04)
It seems that there are still some issues with tapir itself that have to be resolved first. So i have put it on hold for now.
Is your feature request related to a problem? Please describe.
Scala has a lot of http server and client libraries as a consequence there now is a library called 'tapir' to do endpoint descriptions. The tapir library than has support for the most common http libraries. It is from the same authors as 'sttp'.
Describe the solution you'd like
I think it would be best to support scala-tapir and anyone who want to then use any another scala http libary can use the tapir http enpoint descriptions. So we don't have to create more and more scala based generators.
Additional context
As a proof of concept i started from the sttp generator and changed it to generate tapir code, I still have to implement the return types. Multipart bodies and alternative content types are not supported yet. https://github.com/borissmidt/openapi-generator/blob/tapir-support/samples/client/petstore/scala-tapir/src/main/scala/org/openapitools/client/api/PetApi.scala