Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for spaces in specification filenames #406

Merged

Conversation

ulrikandersen
Copy link
Contributor

@ulrikandersen ulrikandersen commented Oct 16, 2024

Description

This PR adds support for loading specifications that contains spaces (and other special chars) as part of the filename.

A URLDecode is performed on the pathname (e.g. /acmeorg/foo/main/openapi%20with%20spaces.yml) to make sure we are able to find the file in GitHub.

Motivation and Context

Currently Framna Docs will display that "The selected specification was not found." although the file actually exists in the repository.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Performs a URLDecode of the pathname (e.g. "/acmeorg/foo/main/openapi%20with%20spaces.yml") to make sure we are able to find the file in GitHub.
Copy link
Contributor

@simonbs simonbs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay! Thanks for including a unit test 🙌

@ulrikandersen ulrikandersen merged commit 0386944 into develop Oct 17, 2024
5 checks passed
@ulrikandersen ulrikandersen deleted the fix/support-spaces-in-specification-filenames branch October 17, 2024 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants