OpenAPITools / OpenAPITools/openapi-generator
[BUG] Path separator issue on Windows and linux machine with maven plugin version 7.8.0
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Bug Report Checklist
Open API Generator maven plugin version 7.8.0 is having issue with path separator.
When we specify property ${project.basedir}/src/main/resources/api.yaml. The plugin fails while generating classes from the api specs with error
Errors:
-Illegal character in opaque part at index 2: C:\TPH\recurring-payment\rp-adapter-in-http-rest/src/main/resources/api-specs/paymentinstructions.yaml
On Linux machine, it works fine.
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 with the OpenAPI Generator Maven plugin's handling of the path, using the reported Windows path and the same configuration on Linux to reproduce the failure. Check how the mixed separators are converted before the specification is opened; done means generation accepts the Windows path without the reported opaque-part error while preserving Linux behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100