OpenAPITools / OpenAPITools/openapi-generator

[BUG] Path separator issue on Windows and linux machine with maven plugin version 7.8.0

Open
#19,509 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue: Bug
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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.