Skip to content

fix: metadata validation is missing hidi installation #1350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .azure-pipelines/generation-templates/capture-metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ steps:

- template: download-typewriter.yml

# required for typewriter
- template: use-dotnet-sdk.yml
parameters:
version: '8.x'

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

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

# required for the hidi installation validation
- template: use-dotnet-sdk.yml
parameters:
version: '9.x'

- pwsh: dotnet tool install -g Microsoft.OpenApi.Hidi
displayName: 'Install hidi tool'

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