[PR #673] [MERGED] Support examples random data generation #1026

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

📋 Pull Request Information

Original PR: https://github.com/wiremock/WireMock.Net/pull/673
Author: @leolplex
Created: 10/28/2021
Status: Merged
Merged: 10/30/2021
Merged by: @StefH

Base: masterHead: SupportExamplesRandomDataGeneration


📝 Commits (5)

  • 6db4272 Add Support Random Generation in Examples, this commit add the bool property DynamicExamples.
  • 8a9f158 Merge branch 'master' into SupportExamplesRandomDataGeneration
  • ab86c82 Merge branch 'master' into SupportExamplesRandomDataGeneration
  • a69f3bc Comments applied
  • 2401ec6 Remove '#pragma warning disable 1591'

📊 Changes

6 files changed (+108 additions, -12 deletions)

View changed files

src/WireMock.Net.OpenApiParser/Settings/IWireMockOpenApiParserExampleValues.cs (+52 -0)
src/WireMock.Net.OpenApiParser/Settings/WireMockOpenApiParserDynamicExampleValues.cs (+31 -0)
📝 src/WireMock.Net.OpenApiParser/Settings/WireMockOpenApiParserExampleValues.cs (+10 -11)
📝 src/WireMock.Net.OpenApiParser/Settings/WireMockOpenApiParserSettings.cs (+6 -1)
📝 src/WireMock.Net.OpenApiParser/Utils/ExampleValueGenerator.cs (+8 -0)
📝 src/WireMock.Net.OpenApiParser/WireMock.Net.OpenApiParser.csproj (+1 -0)

📄 Description

Hello @StefH,

I hope you're doing well,

I added the support to Data Generation via WireMockOpenApiParserSettings the idea is when the property DynamicExamples is true Wiremock.net will be able to randomize the data. I used your awesome library RandomDataGenerator, thanks a lot.

I hope to see this change soon in nuget, thank you very much Stef, Wiremock.Net has been very useful to me.


🔄 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/673 **Author:** [@leolplex](https://github.com/leolplex) **Created:** 10/28/2021 **Status:** ✅ Merged **Merged:** 10/30/2021 **Merged by:** [@StefH](https://github.com/StefH) **Base:** `master` ← **Head:** `SupportExamplesRandomDataGeneration` --- ### 📝 Commits (5) - [`6db4272`](https://github.com/wiremock/WireMock.Net/commit/6db42724ba134363848e6c4f4f920ac83e73c84f) Add Support Random Generation in Examples, this commit add the bool property DynamicExamples. - [`8a9f158`](https://github.com/wiremock/WireMock.Net/commit/8a9f158d77263d0ecdcb76838350fc22708b31b6) Merge branch 'master' into SupportExamplesRandomDataGeneration - [`ab86c82`](https://github.com/wiremock/WireMock.Net/commit/ab86c82a5e8e2bab96fa20063a05e80922a9f370) Merge branch 'master' into SupportExamplesRandomDataGeneration - [`a69f3bc`](https://github.com/wiremock/WireMock.Net/commit/a69f3bcf832ec5c2da3dfee7bda7738924dbee97) Comments applied - [`2401ec6`](https://github.com/wiremock/WireMock.Net/commit/2401ec6c273cf94ab1a7fd8a7efb3eb60b2567e3) Remove '#pragma warning disable 1591' ### 📊 Changes **6 files changed** (+108 additions, -12 deletions) <details> <summary>View changed files</summary> ➕ `src/WireMock.Net.OpenApiParser/Settings/IWireMockOpenApiParserExampleValues.cs` (+52 -0) ➕ `src/WireMock.Net.OpenApiParser/Settings/WireMockOpenApiParserDynamicExampleValues.cs` (+31 -0) 📝 `src/WireMock.Net.OpenApiParser/Settings/WireMockOpenApiParserExampleValues.cs` (+10 -11) 📝 `src/WireMock.Net.OpenApiParser/Settings/WireMockOpenApiParserSettings.cs` (+6 -1) 📝 `src/WireMock.Net.OpenApiParser/Utils/ExampleValueGenerator.cs` (+8 -0) 📝 `src/WireMock.Net.OpenApiParser/WireMock.Net.OpenApiParser.csproj` (+1 -0) </details> ### 📄 Description Hello @StefH, I hope you're doing well, I added the support to Data Generation via `WireMockOpenApiParserSettings` the idea is when the property `DynamicExamples` is true Wiremock.net will be able to randomize the data. I used your awesome library [RandomDataGenerator](https://github.com/StefH/RandomDataGenerator), thanks a lot. I hope to see this change soon in nuget, thank you very much Stef, Wiremock.Net has been very useful to me. --- <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:23 +01:00
adam closed this issue 2025-12-29 08:34:23 +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#1026