Skip to content
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

[BUG] The generator creates a 'kotlin-server' project that uses the old Ktor version #14061

Open
andreyaksenov opened this issue Nov 18, 2022 · 3 comments

Comments

@andreyaksenov
Copy link

The command below generates a new Ktor project from the documentation.yaml spec:

openapi-generator generate -g kotlin-server -i documentation.yaml -o /tmp/openapi/kotlin-server/

The resulting project uses an old Ktor version (1.5.4), while the current version is 2.1.3.
The project also uses the Locations plugin (AppMain.kt) that can be replaced with a new Resources plugin.

@andreyaksenov
Copy link
Author

cc @rsinukov

@rsinukov
Copy link
Contributor

Hi, I am from Ktor team. I can take this ticket once we release 2.2.0. It's estimated to be out by the end of this month.

@klimkow
Copy link

klimkow commented Dec 15, 2022

@rsinukov as you work on the fix could you please take a look at the scoping issue as well?

Currently when you generate server side without supporting classes using --global-property models,apis the generated Paths class is not usable.

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

No branches or pull requests

3 participants