[PR #678] [MERGED] Support RequestBody #1028

Closed
opened 2025-12-29 08:34:24 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/wiremock/WireMock.Net/pull/678
Author: @leolplex
Created: 11/5/2021
Status: Merged
Merged: 11/17/2021
Merged by: @StefH

Base: masterHead: SupportRequestBody


📝 Commits (10+)

  • 9ee7492 Support RequestBody
  • 8389976 Merge branch 'master' into SupportRequestBody
  • 2e3a7a5 SerializeObject in the request matcher and apply JsonMatcher
  • 0737250 Refactor names
  • 165a537 Call to method TryGetContent
  • e8d6d68 Merge branch 'master' into SupportRequestBody
  • 05ae225 Merge branch 'master' into SupportRequestBody
  • 7b2beaa Applied comments
  • b0c56ea Changes applied!
  • c5f6a6f Comments applied V2!

📊 Changes

1 file changed (+34 additions, -1 deletions)

View changed files

📝 src/WireMock.Net.OpenApiParser/Mappers/OpenApiPathsMapper.cs (+34 -1)

📄 Description

Hello @StefH,

I'm trying to add the support to request body, I'm following the same logic used in the response, I'm facing a problem when I try to use BodyAsJson in the RequestModel 'cause it does not exist, I'm using Body but it does not work as I expected, could you have idea why it is happening?

I appreciate your help.


🔄 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/678 **Author:** [@leolplex](https://github.com/leolplex) **Created:** 11/5/2021 **Status:** ✅ Merged **Merged:** 11/17/2021 **Merged by:** [@StefH](https://github.com/StefH) **Base:** `master` ← **Head:** `SupportRequestBody` --- ### 📝 Commits (10+) - [`9ee7492`](https://github.com/wiremock/WireMock.Net/commit/9ee749287345a623bf4f8f4d5b63a3e807b47bfe) Support RequestBody - [`8389976`](https://github.com/wiremock/WireMock.Net/commit/8389976a3288bd85b72ecd153d05f78d6559ec5e) Merge branch 'master' into SupportRequestBody - [`2e3a7a5`](https://github.com/wiremock/WireMock.Net/commit/2e3a7a5713660b73a5d46c6a14475667d4888063) SerializeObject in the request matcher and apply JsonMatcher - [`0737250`](https://github.com/wiremock/WireMock.Net/commit/073725010a0d867ff6c9da9367e75c650cd07c44) Refactor names - [`165a537`](https://github.com/wiremock/WireMock.Net/commit/165a537854168872e0c065fcd892b31f6e0ad225) Call to method TryGetContent - [`e8d6d68`](https://github.com/wiremock/WireMock.Net/commit/e8d6d68604c0332deb42ded0dbb8c63e2577ebe4) Merge branch 'master' into SupportRequestBody - [`05ae225`](https://github.com/wiremock/WireMock.Net/commit/05ae225f1b05c79c45e945dcdd1c7e2d3303f88c) Merge branch 'master' into SupportRequestBody - [`7b2beaa`](https://github.com/wiremock/WireMock.Net/commit/7b2beaa0dcd88769a73948671461d5d04b9068a1) Applied comments - [`b0c56ea`](https://github.com/wiremock/WireMock.Net/commit/b0c56ea2fc1a2e7047330c98731cd0cc12f583c9) Changes applied! - [`c5f6a6f`](https://github.com/wiremock/WireMock.Net/commit/c5f6a6f83037a776e163582a3f1a763b7f254906) Comments applied V2! ### 📊 Changes **1 file changed** (+34 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/WireMock.Net.OpenApiParser/Mappers/OpenApiPathsMapper.cs` (+34 -1) </details> ### 📄 Description Hello @StefH, I'm trying to add the support to request body, I'm following the same logic used in the response, I'm facing a problem when I try to use `BodyAsJson` in the `RequestModel` 'cause it does not exist, I'm using `Body` but it does not work as I expected, could you have idea why it is happening? I appreciate your help. --- <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 08:34:24 +01:00
adam closed this issue 2025-12-29 08:34:24 +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#1028