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.35k stars 79 forks source link

Handle spaces in file path for capture #2652

Closed niclim closed 8 months ago

niclim commented 8 months ago

🍗 Description

What does this PR do? Anything folks should know?

Capture fails if there is spaces anywhere in the file path - e.g. ~/some folder with spaces/openapi.yml - our traverser emits URI encoded paths, and our sourcemap expects non-URI encoded paths

📚 References

Links to relevant docs (Notion, Twist, GH issues, etc.), if applicable.

👹 QA

How can other humans verify that this PR is correct?