Skip to content

Commit

Permalink
Merge pull request #783 from microsoftgraph/zengin/open-api-validation
Browse files Browse the repository at this point in the history
adds a step to validate OpenAPI docs right before checkin
  • Loading branch information
zengin authored Jun 28, 2022
2 parents dfcf85c + 93476ce commit 87265ec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .azure-pipelines/generation-templates/capture-openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ steps:
pathToPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: ${{ parameters.cleanMetadataFolder }}

- pwsh: |
./scripts/run-openapi-validation.ps1 -repoDirectory (Get-Location).Path
displayName: ensure that OpenAPI docs can be parsed
workingDirectory: $(Build.SourcesDirectory)/msgraph-metadata

# Checkin clean metadata into metadata repo or make it an artifact.
- pwsh: '$(scriptsDirectory)/git-push-cleanmetadata.ps1'

Expand Down

0 comments on commit 87265ec

Please sign in to comment.