Skip to content

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
@simonbs simonbs requested a review from Copilot November 19, 2024 19:42
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no suggestions.

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