Skip to content

Commit

Permalink
Merge pull request #722 from andrueastman/andrueastman/fixes
Browse files Browse the repository at this point in the history
fix: pin hidi version for now.
  • Loading branch information
andrueastman authored Nov 13, 2024
2 parents e4225c3 + 7c1e87c commit 9a133fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion scripts/run-metadata-validation.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ try {
& $transformScript -xslPath $xsltPath -inputPath $snapshot -outputPath $transformed -addInnerErrorDescription $true -removeCapabilityAnnotations $false -csdlVersion $version

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

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

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

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

0 comments on commit 9a133fa

Please sign in to comment.