From 12d325b137f78a08c923fbf2e1357c74f05fe365 Mon Sep 17 00:00:00 2001 From: Andrew Omondi Date: Tue, 12 Nov 2024 15:55:40 +0300 Subject: [PATCH 1/2] fix: pin hidi version for now. --- scripts/run-openapi-validation.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/run-openapi-validation.ps1 b/scripts/run-openapi-validation.ps1 index a2490c43e..1350e2123 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 From 7c1e87c8330ac2baa0a5122d22266026f9817fbf Mon Sep 17 00:00:00 2001 From: Andrew Omondi Date: Tue, 12 Nov 2024 16:14:34 +0300 Subject: [PATCH 2/2] fix missed script on the other side. --- scripts/run-metadata-validation.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/run-metadata-validation.ps1 b/scripts/run-metadata-validation.ps1 index ee041ceb6..916a2b457 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 {