Skip to content

Conversation

Mahdigln
Copy link

@Mahdigln Mahdigln commented Oct 6, 2025

Updated the MakeServers method to include checks for defaultUrl and refined host validation. Modified the BuildUrl method to correctly extract ports and remove default ports from URLs. Added unit tests in OpenApiServerTests.cs to ensure proper handling of base URLs and ports across various scenarios.

fixes #1294

Updated the `MakeServers` method to include checks for `defaultUrl` and refined host validation. Modified the `BuildUrl` method to correctly extract ports and remove default ports from URLs. Added unit tests in `OpenApiServerTests.cs` to ensure proper handling of base URLs and ports across various scenarios.
@Mahdigln Mahdigln requested a review from a team as a code owner October 6, 2025 18:16
Copy link
Member

@baywet baywet left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution!

@baywet baywet enabled auto-merge October 6, 2025 18:32
@baywet baywet merged commit 3e6ee80 into microsoft:main Oct 6, 2025
9 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.

When BaseUrl has a port, the default server url doesn't contain the port
2 participants