swagger-api / swagger-api/swagger-codegen

[Maven-Plugin] Allow usage of Json config file instead of configOptions

Open
#4,515 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

General: Suggestion Swagger Codegen Maven Plugin
Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Description

Currently the maven task has to be configured using configOptions.
It would be nice to be able to reuse an existing JSON configFile.

Swagger-codegen version

2.2.2-SNAPSHOT

Suggest a Fix

add support for a configFile location for swagger-codegen-maven-plugin

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the swagger-codegen-maven-plugin entry point and how configOptions are currently read. Trace where a configFile location could be accepted and determine how the existing JSON config is loaded. Done means the Maven plugin can reuse an existing JSON config file instead of requiring configOptions.

Written by the indexing model from the issue text.

Assessment

Tech stack
json
Domain
build-system
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.