opticdev / optic

OpenAPI linting, diffing and testing. Optic helps prevent breaking changes, publish accurate documentation and improve the design of your APIs.
https://useoptic.com
MIT License
1.36k stars 83 forks source link

Could not handle drive letter with lower case on Windows #2810

Closed formulahendry closed 6 months ago

formulahendry commented 7 months ago

Describe the bug Optic CLI could not handle drive letter with lower case on Windows.

To Reproduce Steps to reproduce the behavior:

  1. Create any openapi file Windows
  2. Run CLI like optic diff "d:\ApiCenter\test\test-api-spec\petstore.yaml" petstore2.yaml --check, make the drive letter of file path with lower case

Actual behavior Show weird error message: image

Expected behavior Need to handle drive letters in a case-insensitive way on Windows. The Optic CLI need to work whether drive letter is lower case or upper case.

Details (please complete the following information):

niclim commented 6 months ago

Hi, I believe this should be fixed in 0.54.13 - thanks for reporting! Let me know if this is still an issue.