Replies: 1 comment 1 reply
-
I think you’re looking for https://github.com/OpenAPITools/openapi-generator |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using latest OpenAPI Gen version 7.4.0. With under Gradle configuration, I use Gradle to generate SpringBoot source code.
openApiGenerate {
generatorName = 'spring'
inputSpec = "${project.projectDir}/src/main/resources/instrumentAPI.yaml".toString()
outputDir = "${project.buildDir}/generated"
apiPackage = "com.bns.pxv.instr.api"
invokerPackage = "com.bns.pxv.instr.invoker"
modelPackage = "com.bns.pxv.instr.model"
}
The generated code having org.springframework.boot:spring-boot-starter-parent:2.7.15 in pom.xml. This is a quite old version.
Is there a way to specify which starter version to use when generating source code?
If I manually change the version in pom.xml, and add more dependencies with newer starter-parent version needing, compiling code is ok, but when I bring up the App, I cannot open the OpenAPI Swagger Doc page when connecting to the APP.
Beta Was this translation helpful? Give feedback.
All reactions