Skip to content

Commit f128e8e

Browse files
committed
[wasi] Quarantine System.Text.Json tests that hash property names
System.Text.Json seeds Marvin with RandomNumberGenerator, which throws on WASI because System.Security.Cryptography has no WASI implementation. Quarantine the duplicate property and structural classifier tests that reach it against dotnet#99126. Co-authored-by: Copilot App <[email protected]>
1 parent 10984a8 commit f128e8e

4 files changed

Lines changed: 41 additions & 0 deletions

File tree

‎src/libraries/System.Text.Json/tests/Common/StructuralJsonTypeClassifierTests.cs‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public abstract class StructuralJsonTypeClassifierTests(JsonSerializerWrapper se
3737
};
3838

3939
[Fact]
40+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
4041
public async Task StructuralClassifier_DistinguishesObjectProperties()
4142
{
4243
PetUnion? dog = await Serializer.DeserializeWrapper<PetUnion>("""{"Name":"Rex","Breed":"Labrador"}""", _options);
@@ -58,6 +59,7 @@ public async Task StructuralClassifier_DistinguishesObjectProperties()
5859
[InlineData("true", typeof(bool))]
5960
[InlineData("[1,2,3]", typeof(List<int>))]
6061
[InlineData("""{"Name":"Rex","Breed":"Labrador"}""", typeof(Dog))]
62+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
6163
public async Task StructuralClassifier_DistinguishesJsonValueTypes(string json, Type expectedType)
6264
{
6365
UniqueShapeUnion? result = await Serializer.DeserializeWrapper<UniqueShapeUnion>(json, _options);
@@ -110,6 +112,7 @@ public async Task StructuralClassifier_DoesNotSupportPreserveReferences()
110112
}
111113

112114
[Fact]
115+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
113116
public async Task StructuralClassifier_UsesJsonTypeInfoPropertyNames()
114117
{
115118
RenamedPropertyUnion? result = await Serializer.DeserializeWrapper<RenamedPropertyUnion>("""{"kind":"special"}""", _options);
@@ -119,6 +122,7 @@ public async Task StructuralClassifier_UsesJsonTypeInfoPropertyNames()
119122
}
120123

121124
[Fact]
125+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
122126
public async Task StructuralClassifier_UsesCaseInsensitivePropertyNames()
123127
{
124128
PetUnion? dog = await Serializer.DeserializeWrapper<PetUnion>("""{"\u006eAME":"Rex","breed":"Labrador"}""", _caseInsensitiveOptions);
@@ -133,6 +137,7 @@ public async Task StructuralClassifier_UsesCaseInsensitivePropertyNames()
133137
}
134138

135139
[Fact]
140+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
136141
public void StructuralClassifier_SegmentedEscapedPropertyNameIsClassified()
137142
{
138143
byte[] json = System.Text.Encoding.UTF8.GetBytes(
@@ -158,6 +163,7 @@ public void StructuralClassifier_SegmentedEscapedPropertyNameIsClassified()
158163
}
159164

160165
[Fact]
166+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
161167
public async Task StructuralClassifier_LongEscapedPropertyNameIsClassified()
162168
{
163169
string escapedPropertyName = "\\u0061" + LongPropertyName.Substring(1);
@@ -321,6 +327,7 @@ public async Task StructuralClassifier_DerivedFactoryCannotClassifyPolymorphicTy
321327
}
322328

323329
[Fact]
330+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
324331
public async Task StructuralClassifier_ExtensionDataOverridesGlobalDisallowUnmappedMembers()
325332
{
326333
ExtensionDataUnion? result = await Serializer.DeserializeWrapper<ExtensionDataUnion>(
@@ -344,6 +351,7 @@ public async Task StructuralClassifier_ExtensionDataOverridesGlobalDisallowUnmap
344351
[InlineData("""{"Name":"Shared"}""")]
345352
[InlineData("{}")]
346353
[InlineData("true")]
354+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
347355
public async Task StructuralClassifier_AmbiguousOrUnsupportedPayloadThrows(string json)
348356
{
349357
await Assert.ThrowsAsync<JsonException>(
@@ -354,6 +362,7 @@ await Assert.ThrowsAsync<JsonException>(
354362
[InlineData("{\"Breed\":")]
355363
[InlineData("{\"Breed\":[")]
356364
[InlineData("{\"Breed\":\"Labrador\"")]
365+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
357366
public async Task StructuralClassifier_IncompletePayloadThrowsJsonException(string json)
358367
{
359368
await Assert.ThrowsAsync<JsonException>(
@@ -364,6 +373,7 @@ await Assert.ThrowsAsync<JsonException>(
364373
[InlineData("{\"Breed\":")]
365374
[InlineData("{\"Breed\":[")]
366375
[InlineData("{\"Breed\":\"Labrador\"")]
376+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
367377
public void StructuralClassifier_NonFinalPayloadThrowsJsonException(string json)
368378
{
369379
JsonTypeInfo<PetUnion> typeInfo = Serializer.GetTypeInfo<PetUnion>(_options);
@@ -446,6 +456,7 @@ public async Task StructuralClassifier_RejectsMultipleNonPocoJsonObjectCases()
446456
[InlineData("""{"Sku":"A123","Customer":"Contoso","Quantity":2}""", typeof(Order))]
447457
[InlineData("""{"Quantity":2}""", typeof(Quote))]
448458
[InlineData("{}", typeof(Quote))]
459+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
449460
public async Task StructuralClassifier_RequiredPropertiesDisqualifyCandidate(string json, Type expectedType)
450461
{
451462
RequiredPropertyUnion? result = await Serializer.DeserializeWrapper<RequiredPropertyUnion>(json, _options);
@@ -457,6 +468,7 @@ public async Task StructuralClassifier_RequiredPropertiesDisqualifyCandidate(str
457468
[Theory]
458469
[InlineData("""{"Sku":"A123","Quantity":2}""")]
459470
[InlineData("""{"Sku":"A123","Sku":"B456","Quantity":2}""")]
471+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
460472
public async Task StructuralClassifier_RequiredPropertyEvidenceCannotFallBackToAnotherCase(string json)
461473
{
462474
await Assert.ThrowsAsync<JsonException>(
@@ -466,6 +478,7 @@ await Assert.ThrowsAsync<JsonException>(
466478
[Theory]
467479
[InlineData("""{"Name":"Misty"}""", typeof(IdenticalDog))]
468480
[InlineData("""{"Age":5}""", typeof(IdenticalCat))]
481+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
469482
public async Task StructuralClassifier_RequiredPropertiesDistinguishIdenticalNameSets(string json, Type expectedType)
470483
{
471484
IdenticalPetUnion? result = await Serializer.DeserializeWrapper<IdenticalPetUnion>(json, _options);
@@ -475,6 +488,7 @@ public async Task StructuralClassifier_RequiredPropertiesDistinguishIdenticalNam
475488
}
476489

477490
[Fact]
491+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
478492
public async Task StructuralClassifier_IdenticalNameSetsRemainAmbiguousWhenAllRequiredPropertiesArePresent()
479493
{
480494
await Assert.ThrowsAsync<JsonException>(
@@ -484,6 +498,7 @@ await Assert.ThrowsAsync<JsonException>(
484498
}
485499

486500
[Fact]
501+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
487502
public async Task StructuralClassifier_UnmappedMemberHandlingDisallowDisqualifiesCandidate()
488503
{
489504
UnmappedMemberUnion? loose = await Serializer.DeserializeWrapper<UnmappedMemberUnion>("""{"Id":1,"Extra":"x"}""", _options);
@@ -505,6 +520,7 @@ public async Task StructuralClassifier_UnmappedMemberHandlingDisallowDisqualifie
505520
[InlineData("""{"Common":0,"GroupOne":1,"BetaOnly":2}""", typeof(SubtractionBeta))]
506521
[InlineData("""{"Common":0,"GroupTwo":1,"GammaOnly":2}""", typeof(SubtractionGamma))]
507522
[InlineData("""{"Common":0,"GroupTwo":1,"DeltaOnly":2}""", typeof(SubtractionDelta))]
523+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
508524
public async Task StructuralClassifier_SubtractsCandidatesAcrossMultipleProperties(
509525
string json,
510526
Type expectedType)
@@ -521,6 +537,7 @@ public async Task StructuralClassifier_SubtractsCandidatesAcrossMultipleProperti
521537
[InlineData("""{"GroupOne":1,"Unknown":0}""", typeof(SubtractionAlpha))]
522538
[InlineData("""{"Unknown":0,"GroupTwo":1}""", typeof(SubtractionGamma))]
523539
[InlineData("""{"GroupTwo":1,"Unknown":0}""", typeof(SubtractionGamma))]
540+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
524541
public async Task StructuralClassifier_UnknownPropertiesSubtractStrictCandidates(
525542
string json,
526543
Type expectedType)
@@ -538,6 +555,7 @@ public async Task StructuralClassifier_UnknownPropertiesSubtractStrictCandidates
538555
[InlineData("""{"GroupOne":1}""")]
539556
[InlineData("""{"GroupTwo":1}""")]
540557
[InlineData("""{"AlphaOnly":1,"GammaOnly":2}""")]
558+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
541559
public async Task StructuralClassifier_SubtractionCanProduceNoUniqueCandidate(string json)
542560
{
543561
await Assert.ThrowsAsync<JsonException>(
@@ -547,6 +565,7 @@ await Assert.ThrowsAsync<JsonException>(
547565
[Theory]
548566
[InlineData("""{"Name":"Misty","Age":5}""", typeof(RequiredOverlapA))]
549567
[InlineData("""{"Name":"Misty","Breed":"Siamese"}""", typeof(RequiredOverlapB))]
568+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
550569
public async Task StructuralClassifier_OverlappingRequiredPropertySetsRemainReachable(
551570
string json,
552571
Type expectedType)
@@ -562,13 +581,15 @@ public async Task StructuralClassifier_OverlappingRequiredPropertySetsRemainReac
562581
[InlineData("""{"AOnly":1,"B1":4,"B2":5}""")]
563582
[InlineData("""{"B1":4,"B2":5,"AOnly":1}""")]
564583
[InlineData("""{"AOnly":1,"AOnly":2,"AOnly":3,"B1":4,"B2":5}""")]
584+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
565585
public async Task StructuralClassifier_ConflictingPropertyEvidenceThrows(string json)
566586
{
567587
await Assert.ThrowsAsync<JsonException>(
568588
() => Serializer.DeserializeWrapper<DuplicatePropertyNameUnion>(json, _options));
569589
}
570590

571591
[Fact]
592+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
572593
public async Task StructuralClassifier_TracksMoreThan64PropertyNames()
573594
{
574595
LargePropertyUnion? result = await Serializer.DeserializeWrapper<LargePropertyUnion>(
@@ -585,6 +606,7 @@ await Assert.ThrowsAsync<JsonException>(
585606
}
586607

587608
[Fact]
609+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
588610
public async Task StructuralClassifier_SupportsMoreThanEightObjectCases()
589611
{
590612
ManyObjectCasesUnion? result = await Serializer.DeserializeWrapper<ManyObjectCasesUnion>(
@@ -596,6 +618,7 @@ public async Task StructuralClassifier_SupportsMoreThanEightObjectCases()
596618
}
597619

598620
[Fact]
621+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
599622
public async Task StructuralClassifier_SupportsMoreThan64ObjectCases()
600623
{
601624
LargeObjectCaseUnion? result =
@@ -613,6 +636,7 @@ await Assert.ThrowsAsync<JsonException>(
613636
}
614637

615638
[Fact]
639+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
616640
public async Task StructuralClassifier_SupportsSelfReferentialCaseTypes()
617641
{
618642
TreeUnion? tree = await Serializer.DeserializeWrapper<TreeUnion>("""{"Value":1,"Left":{"Value":2,"Left":null,"Right":null},"Right":null}""", _options);

‎src/libraries/System.Text.Json/tests/System.Text.Json.Tests/JsonDocumentTests.cs‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3861,13 +3861,15 @@ public static void JsonMarshal_GetRawUtf8Value_DisposedDocument_ThrowsObjectDisp
38613861

38623862
[Theory]
38633863
[MemberData(nameof(TestData.DuplicatePropertyJsonPayloads), MemberType = typeof(TestData))]
3864+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
38643865
public static void ParseJsonDocumentWithDuplicateProperties(string jsonPayload, bool isValidJson = false)
38653866
{
38663867
AssertDuplicateProperty(jsonPayload, isValidJson);
38673868
}
38683869

38693870
[Theory]
38703871
[MemberData(nameof(TestData.DuplicatePropertyJsonPayloads), MemberType = typeof(TestData))]
3872+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
38713873
public static void ParseJsonDocumentArrayWithDuplicateProperties(string jsonPayload, bool isValidJson = false)
38723874
{
38733875
jsonPayload = $"[{jsonPayload}]";
@@ -3876,6 +3878,7 @@ public static void ParseJsonDocumentArrayWithDuplicateProperties(string jsonPayl
38763878

38773879
[Theory]
38783880
[MemberData(nameof(TestData.DuplicatePropertyJsonPayloads), MemberType = typeof(TestData))]
3881+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
38793882
public static void ParseJsonDocumentDeeplyNestedWithDuplicateProperties(string jsonPayload, bool isValidJson = false)
38803883
{
38813884
jsonPayload = $$"""{"p0":{"p1":{"p2":{"p3":{"p4":{"p5":{"p6":{"p7":{"p8":{"p9":{{jsonPayload}}} } } } } } } } } }""";
@@ -3884,6 +3887,7 @@ public static void ParseJsonDocumentDeeplyNestedWithDuplicateProperties(string j
38843887

38853888
[Theory]
38863889
[MemberData(nameof(TestData.DuplicatePropertyJsonPayloads), MemberType = typeof(TestData))]
3890+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
38873891
public static void ParseJsonDocumentClassWithDuplicateProperties(string jsonPayload, bool isValidJson = false)
38883892
{
38893893
jsonPayload = $$"""{"Object":{{jsonPayload}}}""";
@@ -3895,6 +3899,7 @@ public static void ParseJsonDocumentClassWithDuplicateProperties(string jsonPayl
38953899
[InlineData(3, 2)]
38963900
[InlineData(100, 0)]
38973901
[InlineData(100, 99)]
3902+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
38983903
public static void ParseJsonDocumentObjectWithDuplicateProperties(int count, int insertPosition)
38993904
{
39003905
string json = CreatePayload(count, insertPosition, "p1");
@@ -3906,6 +3911,7 @@ public static void ParseJsonDocumentObjectWithDuplicateProperties(int count, int
39063911
[InlineData(3, 2)]
39073912
[InlineData(100, 0)]
39083913
[InlineData(100, 99)]
3914+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
39093915
public static void ParseJsonDocumentEscapeWithDuplicateProperties(int count, int insertPosition)
39103916
{
39113917
string json = CreatePayload(count, insertPosition, """p\u0031""");
@@ -3917,6 +3923,7 @@ public static void ParseJsonDocumentEscapeWithDuplicateProperties(int count, int
39173923
[InlineData(3, 2)]
39183924
[InlineData(100, 0)]
39193925
[InlineData(100, 99)]
3926+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
39203927
public static void ParseJsonDocumentObjectWithNoDuplicateProperties(int count, int insertPosition)
39213928
{
39223929
string json = CreatePayload(count, insertPosition, "notduplicate");
@@ -3928,6 +3935,7 @@ public static void ParseJsonDocumentObjectWithNoDuplicateProperties(int count, i
39283935
[InlineData(3, 2)]
39293936
[InlineData(100, 0)]
39303937
[InlineData(100, 99)]
3938+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
39313939
public static void ParseJsonDocumentEscapeWithNoDuplicateProperties(int count, int insertPosition)
39323940
{
39333941
string json = CreatePayload(count, insertPosition, """notduplicate\u0030\u0030""");
@@ -3995,6 +4003,7 @@ public static void ParseJsonDuplicatePropertiesErrorMessageLong()
39954003
}
39964004

39974005
[Fact]
4006+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
39984007
public static void ParseJsonDuplicatePropertiesErrorMessageEscaped()
39994008
{
40004009
string json = """{"0":1,"\u0030":1}""";

‎src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Serialization/JsonDocumentTests.cs‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,15 @@ public void ReadJsonDocumentFromStream(int defaultBufferSize)
7474

7575
[Theory]
7676
[MemberData(nameof(TestData.DuplicatePropertyJsonPayloads), MemberType = typeof(TestData))]
77+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
7778
public void DserializeJsonDocumentWithDuplicateProperties(string jsonPayload, bool isValidJson = false)
7879
{
7980
AssertDuplicateProperty<JsonDocument>(jsonPayload, isValidJson);
8081
}
8182

8283
[Theory]
8384
[MemberData(nameof(TestData.DuplicatePropertyJsonPayloads), MemberType = typeof(TestData))]
85+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
8486
public void DserializeJsonDocumentArrayWithDuplicateProperties(string jsonPayload, bool isValidJson = false)
8587
{
8688
jsonPayload = $"[{jsonPayload}]";
@@ -89,6 +91,7 @@ public void DserializeJsonDocumentArrayWithDuplicateProperties(string jsonPayloa
8991

9092
[Theory]
9193
[MemberData(nameof(TestData.DuplicatePropertyJsonPayloads), MemberType = typeof(TestData))]
94+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
9295
public static void DserializeJsonDocumentDeeplyNestedWithDuplicateProperties(string jsonPayload, bool isValidJson = false)
9396
{
9497
jsonPayload = $$"""{"p0":{"p1":{"p2":{"p3":{"p4":{"p5":{"p6":{"p7":{"p8":{"p9":{{jsonPayload}}} } } } } } } } } }""";
@@ -97,6 +100,7 @@ public static void DserializeJsonDocumentDeeplyNestedWithDuplicateProperties(str
97100

98101
[Theory]
99102
[MemberData(nameof(TestData.DuplicatePropertyJsonPayloads), MemberType = typeof(TestData))]
103+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
100104
public void DserializeJsonDocumentClassWithDuplicateProperties(string jsonPayload, bool isValidJson = false)
101105
{
102106
jsonPayload = $$"""{"Object":{{jsonPayload}}}""";

‎src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Serialization/JsonElementTests.cs‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,13 +299,15 @@ private static JsonDocument CreateDeepJsonDocument(int depth)
299299

300300
[Theory]
301301
[MemberData(nameof(TestData.DuplicatePropertyJsonPayloads), MemberType = typeof(TestData))]
302+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
302303
public void DserializeJsonElementWithDuplicateProperties(string jsonPayload, bool isValidJson = false)
303304
{
304305
AssertDuplicateProperty<JsonElement>(jsonPayload, isValidJson);
305306
}
306307

307308
[Theory]
308309
[MemberData(nameof(TestData.DuplicatePropertyJsonPayloads), MemberType = typeof(TestData))]
310+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
309311
public void DserializeJsonElementArrayWithDuplicateProperties(string jsonPayload, bool isValidJson = false)
310312
{
311313
jsonPayload = $"[{jsonPayload}]";
@@ -314,6 +316,7 @@ public void DserializeJsonElementArrayWithDuplicateProperties(string jsonPayload
314316

315317
[Theory]
316318
[MemberData(nameof(TestData.DuplicatePropertyJsonPayloads), MemberType = typeof(TestData))]
319+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
317320
public static void DserializeJsonElementDeeplyNestedWithDuplicateProperties(string jsonPayload, bool isValidJson = false)
318321
{
319322
jsonPayload = $$"""{"p0":{"p1":{"p2":{"p3":{"p4":{"p5":{"p6":{"p7":{"p8":{"p9":{{jsonPayload}}} } } } } } } } } }""";
@@ -322,6 +325,7 @@ public static void DserializeJsonElementDeeplyNestedWithDuplicateProperties(stri
322325

323326
[Theory]
324327
[MemberData(nameof(TestData.DuplicatePropertyJsonPayloads), MemberType = typeof(TestData))]
328+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
325329
public void DserializeJsonElementClassWithDuplicateProperties(string jsonPayload, bool isValidJson = false)
326330
{
327331
jsonPayload = $$"""{"Object":{{jsonPayload}}}""";

0 commit comments

Comments
 (0)