Skip to content

Commit

Permalink
Merge pull request #739 from microsoftgraph/fix/unpin-hidi
Browse files Browse the repository at this point in the history
chore: reverts #722
  • Loading branch information
Ndiritu authored Dec 30, 2024
2 parents 1a28cda + 1deb74a commit 175e7ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions scripts/run-metadata-validation.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ try {
& $transformScript -xslPath $xsltPath -inputPath $snapshot -outputPath $transformed -addInnerErrorDescription $true -removeCapabilityAnnotations $false -csdlVersion $version

Write-Host "Validating $transformed metadata after the transform..." -ForegroundColor Green
# pin the hidi version till odata to openApi conversion supports 2.0
& dotnet tool install --global Microsoft.OpenApi.Hidi --version 1.4.14
& dotnet tool install --global Microsoft.OpenApi.Hidi
& hidi transform --cs $transformed -o $yamlFilePath --co -f Yaml --sp "$conversionSettingsDirectory/$platformName.json"

} catch {
Expand Down
3 changes: 1 addition & 2 deletions scripts/run-openapi-validation.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,5 @@ $yaml = Join-Path $repoDirectory "openapi" $version "$platformName.yaml"

Write-Host "Validating $yaml OpenAPI doc..." -ForegroundColor Green

# pin the hidi version till odata to openApi conversion supports 2.0
& dotnet tool install --global Microsoft.OpenApi.Hidi --version 1.4.14
& dotnet tool install --global Microsoft.OpenApi.Hidi
& hidi validate -d $yaml

0 comments on commit 175e7ca

Please sign in to comment.