[PR #681] [MERGED] Support enums in properties #1032

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

📋 Pull Request Information

Original PR: https://github.com/wiremock/WireMock.Net/pull/681
Author: @leolplex
Created: 11/8/2021
Status: Merged
Merged: 11/16/2021
Merged by: @StefH

Base: masterHead: SupportEnumsInProperties


📝 Commits (9)

📊 Changes

1 file changed (+42 additions, -11 deletions)

View changed files

📝 src/WireMock.Net.OpenApiParser/Utils/ExampleValueGenerator.cs (+42 -11)

📄 Description

Hello @StefH ,

The idea here is support that when a property will have an enum one of them is selected random.


🔄 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/681 **Author:** [@leolplex](https://github.com/leolplex) **Created:** 11/8/2021 **Status:** ✅ Merged **Merged:** 11/16/2021 **Merged by:** [@StefH](https://github.com/StefH) **Base:** `master` ← **Head:** `SupportEnumsInProperties` --- ### 📝 Commits (9) - [`d3d8e3f`](https://github.com/wiremock/WireMock.Net/commit/d3d8e3f7f0b2227e5e61d8e3710c5f8fcdfc1980) Support enums when a example is generated, priority is the enum - [`7c492cc`](https://github.com/wiremock/WireMock.Net/commit/7c492cc4d9d3c48e255aa259632c3c034aa380a8) Add null validation to Enum - [`81ae168`](https://github.com/wiremock/WireMock.Net/commit/81ae168fff763d686f8bb437e84a8d083db8136d) Refactor MapSchemaEnum - [`819f81d`](https://github.com/wiremock/WireMock.Net/commit/819f81d5fffd54cfb43c0a38702c4770b8cf212d) Redactor merhod name - [`a7d118e`](https://github.com/wiremock/WireMock.Net/commit/a7d118e41eb03b05a0b4ea5b2b02f9b200b8c48e) Merge branch 'master' into SupportEnumsInProperties - [`a0f60a4`](https://github.com/wiremock/WireMock.Net/commit/a0f60a400ffe5a27494a5032b3068d77205fb7fa) Resolve merge conflict - [`cdebadf`](https://github.com/wiremock/WireMock.Net/commit/cdebadf2dae18e3497fd97a972272097f0d4be5d) Check schema null - [`70d28d2`](https://github.com/wiremock/WireMock.Net/commit/70d28d2ac6adc1dc2d5f2625fe53fd7cd6f2861f) Merge branch 'SupportEnumsInProperties' of https://github.com/leolplex/WireMock.Net into SupportEnumsInProperties - [`0c55776`](https://github.com/wiremock/WireMock.Net/commit/0c55776b66555b85e20ef0afbd30949fe8925dcb) Refactor GetRandom method ### 📊 Changes **1 file changed** (+42 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `src/WireMock.Net.OpenApiParser/Utils/ExampleValueGenerator.cs` (+42 -11) </details> ### 📄 Description Hello @StefH , The idea here is support that when a property will have an enum one of them is selected random. --- <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:25 +01:00
adam closed this issue 2025-12-29 08:34:25 +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#1032