[PR #1377] [MERGED] Check if the path is valid when using WithPath(...) #1367

Closed
opened 2025-12-29 16:19:57 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/wiremock/WireMock.Net/pull/1377
Author: @StefH
Created: 11/8/2025
Status: Merged
Merged: 11/8/2025
Merged by: @StefH

Base: masterHead: stef-1376-WithPath


📝 Commits (1)

  • a4b0e47 Check if the path is valid when using WithPath(...)

📊 Changes

12 files changed (+82 additions, -10 deletions)

View changed files

📝 src/WireMock.Net.Abstractions/Admin/Mappings/MatcherModel.cs (+1 -1)
📝 src/WireMock.Net.Abstractions/BuilderExtensions/RequestModelBuilder.cs (+8 -2)
src/WireMock.Net.Abstractions/Validators/PathValidator.cs (+19 -0)
📝 src/WireMock.Net.Minimal/RequestBuilders/Request.WithPath.cs (+5 -0)
📝 test/WireMock.Net.Tests/Serialization/MappingConverterTests.ToCSharpCode.cs (+1 -1)
📝 test/WireMock.Net.Tests/Serialization/MappingConverterTests.ToCSharpCode_With_Builder_And_AddStartIsFalse.verified.txt (+1 -1)
📝 test/WireMock.Net.Tests/Serialization/MappingConverterTests.ToCSharpCode_With_Builder_And_AddStartIsTrue.verified.txt (+1 -1)
📝 test/WireMock.Net.Tests/Serialization/MappingConverterTests.ToCSharpCode_With_Server_And_AddStartIsFalse.verified.txt (+1 -1)
📝 test/WireMock.Net.Tests/Serialization/MappingConverterTests.ToCSharpCode_With_Server_And_AddStartIsTrue.verified.txt (+1 -1)
📝 test/WireMock.Net.Tests/Serialization/ProxyMappingConverterTests.ToMapping_UseDefinedRequestMatchers_True.verified.txt (+1 -1)
📝 test/WireMock.Net.Tests/Serialization/ProxyMappingConverterTests.cs (+1 -1)
test/WireMock.Net.Tests/Validators/PathValidatorTests.cs (+42 -0)

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/wiremock/WireMock.Net/pull/1377 **Author:** [@StefH](https://github.com/StefH) **Created:** 11/8/2025 **Status:** ✅ Merged **Merged:** 11/8/2025 **Merged by:** [@StefH](https://github.com/StefH) **Base:** `master` ← **Head:** `stef-1376-WithPath` --- ### 📝 Commits (1) - [`a4b0e47`](https://github.com/wiremock/WireMock.Net/commit/a4b0e47b6114c85e2b92109bb61e9070dfaba619) Check if the path is valid when using WithPath(...) ### 📊 Changes **12 files changed** (+82 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `src/WireMock.Net.Abstractions/Admin/Mappings/MatcherModel.cs` (+1 -1) 📝 `src/WireMock.Net.Abstractions/BuilderExtensions/RequestModelBuilder.cs` (+8 -2) ➕ `src/WireMock.Net.Abstractions/Validators/PathValidator.cs` (+19 -0) 📝 `src/WireMock.Net.Minimal/RequestBuilders/Request.WithPath.cs` (+5 -0) 📝 `test/WireMock.Net.Tests/Serialization/MappingConverterTests.ToCSharpCode.cs` (+1 -1) 📝 `test/WireMock.Net.Tests/Serialization/MappingConverterTests.ToCSharpCode_With_Builder_And_AddStartIsFalse.verified.txt` (+1 -1) 📝 `test/WireMock.Net.Tests/Serialization/MappingConverterTests.ToCSharpCode_With_Builder_And_AddStartIsTrue.verified.txt` (+1 -1) 📝 `test/WireMock.Net.Tests/Serialization/MappingConverterTests.ToCSharpCode_With_Server_And_AddStartIsFalse.verified.txt` (+1 -1) 📝 `test/WireMock.Net.Tests/Serialization/MappingConverterTests.ToCSharpCode_With_Server_And_AddStartIsTrue.verified.txt` (+1 -1) 📝 `test/WireMock.Net.Tests/Serialization/ProxyMappingConverterTests.ToMapping_UseDefinedRequestMatchers_True.verified.txt` (+1 -1) 📝 `test/WireMock.Net.Tests/Serialization/ProxyMappingConverterTests.cs` (+1 -1) ➕ `test/WireMock.Net.Tests/Validators/PathValidatorTests.cs` (+42 -0) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 16:19:57 +01:00
adam closed this issue 2025-12-29 16:19:57 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net-wiremock#1367