Skip to content

Commit 9e9c644

Browse files
committed
Merge remote-tracking branch 'origin/master' into manifest-mod
2 parents 043bcf7 + 78c3ff6 commit 9e9c644

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

PluginWebRequest/API/Write/GetSchemaForSettingsAsync.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ public static async Task<Schema> GetSchemaForSettingsAsync(ConfigureWriteFormDat
2323
PublisherMetaJson = JsonConvert.SerializeObject(formData)
2424
};
2525

26-
var urlParams = FindParamsRegex.Match(formData.Url);
27-
var bodyParams = FindParamsRegex.Match(formData.Body);
26+
var urlParams = FindParamsRegex.Matches(formData.Url);
27+
var bodyParams = FindParamsRegex.Matches(formData.Body);
2828

29-
foreach (var match in urlParams.Captures)
29+
foreach (var match in urlParams)
3030
{
3131
var property = new Property
3232
{
@@ -40,7 +40,7 @@ public static async Task<Schema> GetSchemaForSettingsAsync(ConfigureWriteFormDat
4040
schema.Properties.Add(property);
4141
}
4242

43-
foreach (var match in bodyParams.Captures)
43+
foreach (var match in bodyParams)
4444
{
4545
var property = new Property
4646
{

PluginWebRequestTest/Plugin/PluginIntegrationTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,9 @@ public async Task ConfigureWriteTest()
271271
""cache-control"": ""no-cache"",
272272
""postman-token"": ""5c27cd7d-6b16-4e5a-a0ef-191c9a3a275f"",
273273
""user-agent"": ""PostmanRuntime/7.6.1"",
274-
""x-forwarded-port"": ""443""
274+
""x-forwarded-port"": ""{0}""
275275
},
276-
""url"": ""{0}""
276+
""url"": ""{1}""
277277
}";
278278
// https://postman-echo.com/post
279279
var formData = GetFormData("test", "https://postman-echo.com/{0}", body,"POST", new List<Header>
@@ -307,7 +307,7 @@ public async Task ConfigureWriteTest()
307307
Assert.Equal("", schema.Description);
308308
Assert.Equal("https://postman-echo.com/{0}", schema.Query);
309309
Assert.Equal(Schema.Types.DataFlowDirection.Write, schema.DataFlowDirection);
310-
Assert.Equal(2, schema.Properties.Count);
310+
Assert.Equal(3, schema.Properties.Count);
311311

312312
var property = schema.Properties[0];
313313

0 commit comments

Comments
 (0)