OpenAPITools / OpenAPITools/openapi-generator
Provide support for inputSpec to access Http Url's
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
We are storing all our OAS Spec in different repo and duplicating the same file in our repo since gradle openapi generator supports only file input as inputSpec.
Can it be made inputSpec to accept a http url which inturn downloads spec file over http and generate the code.
Ex:
openApiGenerate {
generatorName = 'spring'
inputSpec = "https://github.com/some-repo/openapi-spec.yaml"
configOptions = [
useTags: "true",
reactive: "true",
interfaceOnly: "true",
sourceFolder: "src/main/java",
useSpringBoot3: "true",
generateModelConstructors: "false",
generatedConstructorWithRequiredArgs: "false"
]
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how the Gradle OpenAPI Generator plugin currently reads inputSpec, then identify the existing path used for file-based specifications. Verify how an HTTP URL could be fetched before generation and define the behavior for a reachable remote spec. Done means the shown openApiGenerate configuration accepts the URL and generates code from the downloaded specification.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, openapi
- Domain
- api, build-system
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100