Open nddipiazza-ebay opened 3 weeks ago
there's a FILTER rule in the openapi normalizer. would that meet your requirement?
i tried. does not work. am i missing something?
<plugin>
<groupId>org.openapitools</groupId>
<artifactId>openapi-generator-maven-plugin</artifactId>
<version>6.3.0</version>
<executions>
<execution>
<id>exampleClientGenerate</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<generatorName>java</generatorName>
<output>${project.build.directory}/generated-sources</output>
<skipValidateSpec>true</skipValidateSpec>
<library>jersey2</library>
<apiPackage>com.example.api</apiPackage>
<modelPackage>com.example.model</modelPackage>
<invokerPackage>com.example.invoker</invokerPackage>
<inputSpec>${basedir}/src/main/resources/openapi-contracts/example.yaml</inputSpec>
<generateApiTests>false</generateApiTests>
<generateModelTests>false</generateModelTests>
<openapiNormalizer>FILTER=operationId:helloworld</openapiNormalizer>
<configOptions>
<dateLibrary>java8-localdatetime</dateLibrary>
<useTags>true</useTags>
<openapiNormalizer>FILTER=operationId:helloworld</openapiNormalizer>
</configOptions>
<apiNameSuffix>example</apiNameSuffix>
</configuration>
</execution>
</executions>
</plugin>
<version>6.3.0</version>
can you try the latest stable release 7.6.0 instead?
no change. same thing. seems to ignore it.
can you try the CLI instead? the doc has an example
unfortunately, i don't have the ability to use CLI in my workspace. maven plugin is all i have
Is your feature request related to a problem? Please describe.
Sometimes the openapi is huge and you only want a small number of web services to be included in the generator output.
Describe the solution you'd like
Configuration options:
Example:
Describe alternatives you've considered
None of the other work arounds are as simple. Editing the openapi yaml is not attractive option. etc. The other exclusion options are not very declarative and seem to be bugged.