swagger-api / swagger-api/swagger-parser
Critical Bug
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 867
- Forks
- 560
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 7
Description
after I use "new SwaggerParser().read(path)" to read the yaml file , I could delete the file. it looks like the inputstream didn't close !!!!!!!!!
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 issue with new SwaggerParser().read(path) on a YAML file, then check whether the file can be deleted after the read returns. Trace the read(path) entry point and verify the input stream's lifecycle; done means the parsed file is no longer held open.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100