AdminApiMappingBuilder WithPath should add the starting / if missing #726

Closed
opened 2025-12-29 08:33:00 +01:00 by adam · 1 comment
Owner

Originally created by @AdrianoAE on GitHub (Nov 8, 2025).

Originally assigned to: @StefH on GitHub.

Is your feature request related to a problem? Please describe.
When doing the setup of an endpoint, it's easy to miss the starting / and unless you are aware of it, it's hard to nail down why things are not working.

Describe the solution you'd like
Instead of forcing the developer to either add or check on every setup, simply check within the WithPath call and either throw an exception or better option simply prefix the path with it

Is your feature request supported by WireMock (java version)? Please provide details.
I don't know, but it's simple and can save a lot of headaches

Originally created by @AdrianoAE on GitHub (Nov 8, 2025). Originally assigned to: @StefH on GitHub. **Is your feature request related to a problem? Please describe.** When doing the setup of an endpoint, it's easy to miss the starting `/` and unless you are aware of it, it's hard to nail down why things are not working. **Describe the solution you'd like** Instead of forcing the developer to either add or check on every setup, simply check within the `WithPath` call and either throw an exception or better option simply prefix the path with it **Is your feature request supported by [WireMock (java version)](https://www.wiremock.org)? Please provide details.** I don't know, but it's simple and can save a lot of headaches
adam added the feature label 2025-12-29 08:33:00 +01:00
adam closed this issue 2025-12-29 08:33:00 +01:00
Author
Owner

@StefH commented on GitHub (Nov 8, 2025):

https://github.com/wiremock/WireMock.Net/pull/1377

@StefH commented on GitHub (Nov 8, 2025): https://github.com/wiremock/WireMock.Net/pull/1377
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net#726