Workaround for: Random.Generate Type="Long" (#1034)

* Workaround for: Random.Generate Type="Long"

* x

* 11

* .

* 2
This commit is contained in:
Stef Heyenrath
2023-12-09 09:18:16 +01:00
committed by GitHub
parent c6c7ba13b4
commit 8e1b6f87f0
3 changed files with 32 additions and 11 deletions

View File

@@ -5,7 +5,6 @@ using System.Linq;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Stef.Validation;
using WireMock.ResponseBuilders;
using WireMock.Settings;
using WireMock.Types;
using WireMock.Util;
@@ -250,7 +249,7 @@ internal class Transformer : ITransformer
return;
}
var transformed = transformerContext.ParseAndEvaluate(stringValue, model);
var transformed = transformerContext.ParseAndEvaluate(stringValue!, model);
if (!Equals(stringValue, transformed))
{
ReplaceNodeValue(options, node, transformed);