0

I search for informations and clarifications about using openapi-generator with spring boot 3. As I see in samples, there is no declaration of this code:

       <plugin>
            <groupId>org.openapitools</groupId>
            <artifactId>openapi-generator-maven-plugin</artifactId>
            <version>${openapi-generator.version}</version>
            <executions>
             ...
            </executions>
       </plugin>

Meanwhile I see this config useSpringBoot3.

My question: the plugin is no more used with spring boot 3 ?

Any idea ?

Amir Choubani
  • 829
  • 2
  • 14
  • 28

1 Answers1

-1

I'm sure you're not the first person to run into this trap, but the "samples" section in the repository contains samples of generated code, not samples of configurations for the code generator. You cannot look at the pom there and expect it to provide answers for you. The closest you can find to a pom example is the one in the tests. However, even that example is pretty useless.

The openapi generator has a bit of a learning curve, but the documentation is pretty helpful. For example, the documentation for the maven plugin provides a complete list of configuration properties, and the Spring generator has even more config options. You can reference these options, as well as numerous other examples in stack overflow such as this one, or this one. This one even uses the useSpringBoot3 option. Here's a search link that is filtered down to help you find a lot more examples.

The github issues section is also another great place to find examples from other people.

tbatch
  • 1,398
  • 10
  • 21