[PR #934] [MERGED] Code generator improvements #1157

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

📋 Pull Request Information

Original PR: https://github.com/wiremock/WireMock.Net/pull/934
Author: @cezarypiatek
Created: 5/8/2023
Status: Merged
Merged: 5/13/2023
Merged by: @StefH

Base: masterHead: feature/code_generator_improvements


📝 Commits (4)

  • b837cd1 Handle new line escaping in C# mapping code generator
  • ff58e42 Prevent date conversion when value persisted as string
  • 2593431 Handle object properties named as csharp keywords
  • 3da3000 Refactor: Extract logic responsible for generating anonymous object definition to a separate class

📊 Changes

4 files changed (+189 additions, -57 deletions)

View changed files

📝 src/WireMock.Net/Serialization/MappingConverter.cs (+8 -54)
src/WireMock.Net/Util/CSharpFormatter.cs (+167 -0)
📝 test/WireMock.Net.Tests/WireMockAdminApiTests.IWireMockAdminApi_GetMappingsCode.verified.txt (+9 -2)
📝 test/WireMock.Net.Tests/WireMockAdminApiTests.cs (+5 -1)

📄 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/934 **Author:** [@cezarypiatek](https://github.com/cezarypiatek) **Created:** 5/8/2023 **Status:** ✅ Merged **Merged:** 5/13/2023 **Merged by:** [@StefH](https://github.com/StefH) **Base:** `master` ← **Head:** `feature/code_generator_improvements` --- ### 📝 Commits (4) - [`b837cd1`](https://github.com/wiremock/WireMock.Net/commit/b837cd167094f36aff7735cb12a131eb4844971d) Handle new line escaping in C# mapping code generator - [`ff58e42`](https://github.com/wiremock/WireMock.Net/commit/ff58e421ea7ca93fe14abc3d60d3991594e453a6) Prevent date conversion when value persisted as string - [`2593431`](https://github.com/wiremock/WireMock.Net/commit/2593431b1fed884a4af88665d1b65d0f88d9b24e) Handle object properties named as csharp keywords - [`3da3000`](https://github.com/wiremock/WireMock.Net/commit/3da300042d36639b99a7319d41cce51a8e3e5b8e) Refactor: Extract logic responsible for generating anonymous object definition to a separate class ### 📊 Changes **4 files changed** (+189 additions, -57 deletions) <details> <summary>View changed files</summary> 📝 `src/WireMock.Net/Serialization/MappingConverter.cs` (+8 -54) ➕ `src/WireMock.Net/Util/CSharpFormatter.cs` (+167 -0) 📝 `test/WireMock.Net.Tests/WireMockAdminApiTests.IWireMockAdminApi_GetMappingsCode.verified.txt` (+9 -2) 📝 `test/WireMock.Net.Tests/WireMockAdminApiTests.cs` (+5 -1) </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 08:35:00 +01:00
adam closed this issue 2025-12-29 08:35:00 +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#1157