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

Fix incorrect URLs generated for "Try it" feature #153

Merged
merged 5 commits into from
Jan 22, 2025

Conversation

hans-thomas
Copy link
Contributor

@hans-thomas hans-thomas commented Jan 15, 2025

Hi, The problem mentioned in #151 with the "Try it" feature is the server URL, which is without the http(s):// schema. The document viewers expect the server URL to start with http:// or https:// prefix. Otherwise, consider the server URL as a route and that's why it's prepend the server URL in "Try it" feature.

The generateEmptyData and getAppUrl methods updated;
src/Services/SwaggerService.php Outdated Show resolved Hide resolved
src/Services/SwaggerService.php Outdated Show resolved Hide resolved
src/Services/SwaggerService.php Outdated Show resolved Hide resolved
src/Services/SwaggerService.php Outdated Show resolved Hide resolved
src/Services/SwaggerService.php Outdated Show resolved Hide resolved
tests/SwaggerServiceTest.php Outdated Show resolved Hide resolved
@hans-thomas hans-thomas requested a review from DenTray January 21, 2025 08:23
src/Traits/GetDependenciesTrait.php Outdated Show resolved Hide resolved
src/Traits/GetDependenciesTrait.php Outdated Show resolved Hide resolved
@DenTray DenTray merged commit ea0c5b5 into RonasIT:master Jan 22, 2025
3 checks passed
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