Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #13283
Closed
Open
Issue created Aug 26, 2022 by Administrator@rootContributor

[Announcement] How I Can Improve the usage of inputSpec for maven plugin

Created by: hhovhann

Dear colleagues, first of all, thanks for your nice job and this useful plugin. I am trying to integrate it with the help of documentation.

Working fine with <inputSpec>${project.basedir}/src/main/resources/api.yaml</inputSpec> the local yml file and the inputSpec is mandatory field.

I need to not keep that file in the repository, so take it for example from my running instance, what I have in the provided configuration below. After annotation scanning processing the yaml on the fly is generated and could be used.

Her is my current configuration, which is not what expecting

            <plugin>
                <groupId>org.openapitools</groupId>
                <artifactId>openapi-generator-maven-plugin</artifactId>
                <version>6.0.1</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                        <configuration>
                            <inputSpec>http://localhost:4110/v3/data-ransomware-docs.yaml</inputSpec>
                            <generatorName>html2</generatorName>
                            <configOptions>
                                <sourceFolder>src/gen/java/main</sourceFolder>
                            </configOptions>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

The issue here is that to use properly the plugin I have to have a running instance and only after that can use it from the terminal to run the HTML doc generation.

QUESTION/IMPROVEMENT: Is there any other way how we can have this done?

Thanks in advance

Assignee
Assign to
Time tracking