File tree 1 file changed +1
-4
lines changed
1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -17,12 +17,9 @@ steps:
17
17
foreach ($file in $apiPropertiesFiles) {
18
18
$newFileContent = Get-Content $file -Raw
19
19
20
- $newFileContentAsList = New-Object Collections.Generic.List[Object]
21
- $newFileContentAsList.add($newFileContent)
22
-
23
20
# Validate apiProperties json
24
21
$apiPropertiesValidatorUri = "$($env:apiPropertiesValidator)?api-version=2021-05-01&suppressWarnings=true"
25
- $results = Invoke-RestMethod -Uri $apiPropertiesValidatorUri -Headers $Headers -Method Post -ContentType "application/json; charset=utf-8" -Body $newFileContentAsList
22
+ $results = Invoke-RestMethod -Uri $apiPropertiesValidatorUri -Headers $Headers -Method Post -ContentType "application/json; charset=utf-8" -Body [$newFileContent]
26
23
27
24
$errors = $results | Where-Object { $_.level -EQ "Critical" -OR $_.Level -EQ "Error" }
28
25
$warnings = $results | Where-Object { $_.level -EQ "Warning" }
You can’t perform that action at this time.
0 commit comments