Skip to content

Commit d422517

Browse files
authored
Merge pull request #1350 from microsoftgraph/ci/fix-metadata-validation
fix: metadata validation is missing hidi installation
2 parents 76739b2 + bf681ce commit d422517

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.azure-pipelines/generation-templates/capture-metadata.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ steps:
5252

5353
- template: download-typewriter.yml
5454

55+
# required for typewriter
5556
- template: use-dotnet-sdk.yml
57+
parameters:
58+
version: '8.x'
5659

5760
## Only run if the previous step was successful
5861
- pwsh: '$(scriptsDirectory)/run-typewriter-clean-metadata.ps1'
@@ -113,7 +116,13 @@ steps:
113116

114117
# Use the clean metadata from the last step to generate DotNet files.
115118

119+
# required for the hidi installation validation
116120
- template: use-dotnet-sdk.yml
121+
parameters:
122+
version: '9.x'
123+
124+
- pwsh: dotnet tool install -g Microsoft.OpenApi.Hidi
125+
displayName: 'Install hidi tool'
117126

118127
# verify that generated metadata is parsable as an Edm model
119128
- pwsh: $(Build.SourcesDirectory)/msgraph-metadata/scripts/run-metadata-validation.ps1 -repoDirectory "$(Build.SourcesDirectory)/msgraph-metadata/" -version "${{ parameters.endpoint }}"

0 commit comments

Comments
 (0)