Skip to content

Instantly share code, notes, and snippets.

@lmonkiewicz
Created February 9, 2023 09:52
Show Gist options
  • Save lmonkiewicz/ae33efc235fb6dca5e0e8479dacb0e11 to your computer and use it in GitHub Desktop.
Save lmonkiewicz/ae33efc235fb6dca5e0e8479dacb0e11 to your computer and use it in GitHub Desktop.
openapi openapi openapi
<plugin>
<groupId>org.openapitools</groupId>
<artifactId>openapi-generator-maven-plugin</artifactId>
<!-- RELEASE_VERSION -->
<version>6.2.1</version>
<!-- /RELEASE_VERSION -->
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>${project.basedir}/src/main/api/api.yaml</inputSpec>
<generatorName>spring</generatorName>
<library>spring-boot</library>
<modelPackage>pl.effectivedev.services.gcp.cartservice.openapi.model</modelPackage>
<modelNameSuffix>Dto</modelNameSuffix>
<apiPackage>pl.effectivedev.services.gcp.cartservice.openapi</apiPackage>
<generateApis>true</generateApis>
<generateModels>true</generateModels>
<generateApiTests>false</generateApiTests>
<generateModelTests>false</generateModelTests>
<generateModelDocumentation>false</generateModelDocumentation>
<generateSupportingFiles>false</generateSupportingFiles>
<skipOperationExample>true</skipOperationExample>
<configOptions>
<delegatePattern>true</delegatePattern>
<useTags>true</useTags>
<serializableModel>true</serializableModel>
<useSpringBoot3>true</useSpringBoot3>
</configOptions>
</configuration>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment