Skip to content

Commit

Permalink
Update swagger_validation.yml for Azure Pipelines (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
mamurshe authored Aug 10, 2020
1 parent dc185fe commit c7bfdb8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .pipelines/swagger_validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ steps:
$newFileContent = Get-Content $file -Raw
# Validate swagger
$results = Invoke-RestMethod -Uri $env:swaggerValidator -Headers $Headers -Method Post -ContentType "application/json" -Body $newFileContent
$isCertValidation = $file -Like "*certified-connectors/*"
$swaggerValidatorUri = "$($env:swaggerValidator)?IsCertificationValidation=$isCertValidation"
$results = Invoke-RestMethod -Uri $swaggerValidatorUri -Headers $Headers -Method Post -ContentType "application/json" -Body $newFileContent
$errors = $results.Errors
$warnings = $results.Warnings
Expand Down

0 comments on commit c7bfdb8

Please sign in to comment.