diff --git a/scripts/run-metadata-validation.ps1 b/scripts/run-metadata-validation.ps1 index ee041ceb..916a2b45 100644 --- a/scripts/run-metadata-validation.ps1 +++ b/scripts/run-metadata-validation.ps1 @@ -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 { diff --git a/scripts/run-openapi-validation.ps1 b/scripts/run-openapi-validation.ps1 index a2490c43..1350e212 100644 --- a/scripts/run-openapi-validation.ps1 +++ b/scripts/run-openapi-validation.ps1 @@ -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 \ No newline at end of file