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

Support basepath from servers #675

Merged
merged 3 commits into from
Nov 2, 2021

Conversation

leolplex
Copy link
Contributor

@leolplex leolplex commented Nov 1, 2021

Hello @StefH ,

This change support the basepath definition in v2 and servers in v3. The idea is when the file has a relative or absolute path this is attached at the path.

Thanks.


return uriResult.IsAbsoluteUri ? uriResult.AbsolutePath : uriResult.ToString();
}
return null;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this correct?

Copy link
Contributor Author

@leolplex leolplex Nov 1, 2021

Choose a reason for hiding this comment

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

Yes, if the Uril.TryCreate is false ( server.Url is malformed) then a string.Empty should be returned. Comments?

@leolplex leolplex requested a review from StefH November 1, 2021 18:24
@StefH StefH merged commit 49e10ed into WireMock-Net:master Nov 2, 2021
@leolplex leolplex deleted the SupportServersPathOpenAPI branch November 3, 2021 02:26
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.

None yet

2 participants