OpenAPITools / OpenAPITools/openapi-generator
[BUG] client generator doesn't remove models from file system
Open
Nobody has claimed this yet.
Issue: Bug
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
when I re-generate client code from the updated openapi specification, models, that are not defined anymore in the new openapi specification, are not removed from the filesystem. only removed from "FILES" file. Is this intentional?
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 client generator handles files during regeneration and how the FILES file is updated. Confirm the behavior with an updated OpenAPI specification containing a removed model; done means obsolete model files are handled consistently with the generated FILES contents.
Written by the indexing model from the issue text.
Assessment
- Domain
- api, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100