OpenAPITools / OpenAPITools/openapi-generator
[BUG] --ignore-file-override option is ignored
Open
Nobody has claimed this yet.
Issue: Bug
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
I run generation using openapitools/openapi-generator-cli.
const DOCKER_IMG = 'openapitools/openapi-generator-cli';
const API_PATH = 'api/api.yaml';
const TEMPLATES_PATH = 'templates';
const IGNORE_FILE = '.openapi-generator-ignore';
const child = spawn('docker', [
'run',
'--rm',
'--net=host',
`--user=${uid}:${uid}`,
'--mount',
`type=bind,source=${path.join(__dirname)},target=/local`,
DOCKER_IMG,
'generate',
'-i',
path.join('/local', API_PATH),
'-t',
path.join('/local', TEMPLATES_PATH),
'-c',
path.join('/local', CONFIG),
'--ignore-file-override=' + path.join('/local', IGNORE_FILE),
'-g',
'typescript-fetch',
'-o',
path.join('/local', 'output'),
]);
And whevern I write inside .openapi-generator-ignore gets absolutely ignored.
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 reproducing the generate command from the Docker example with --ignore-file-override and .openapi-generator-ignore, then trace how the CLI handles that option. Done means ignore patterns in the override file prevent the corresponding generated files from being written and the behavior is covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, java
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100