Skip to content

Commit

Permalink
Minor Change to API
Browse files Browse the repository at this point in the history
  • Loading branch information
chidozieononiwu committed Nov 13, 2024
1 parent cfe56f3 commit 13998c6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions eng/pipelines/swagger-apiview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ parameters:
default: 'https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json'
- name: SwaggerApiParserVersion
type: string
default: '1.3.0-dev.20241010.1'
default: '1.3.0-dev.20241029.2'
- name: APIViewArtifactsDirectoryName
type: string
default: 'SwaggerAPIViewArtifacts'
Expand All @@ -15,7 +15,10 @@ parameters:
type: string
default: 'https://apiviewstagingtest.com/PullRequest/DetectAPIChanges'

trigger: none
pr:
branches:
include:
- main

jobs:
- job:
Expand All @@ -24,6 +27,9 @@ jobs:
vmImage: ubuntu-22.04

steps:
- checkout: self
fetchDepth: 0

- pwsh: |
dotnet tool install Azure.Sdk.Tools.SwaggerApiParser `
--version ${{ parameters.SwaggerApiParserVersion }} `
Expand All @@ -37,7 +43,6 @@ jobs:
-ArtiFactsStagingDirectory "$(Build.ArtifactStagingDirectory)" `
-APIViewArtifactsDirectoryName ${{ parameters.APIViewArtifactsDirectoryName }}
displayName: Generate Swagger APIView Tokens
ignoreLASTEXITCODE: true
- task: PublishPipelineArtifact@1
inputs:
Expand All @@ -55,7 +60,7 @@ jobs:
-APIViewUri ${{ parameters.APIViewAPIUri }} `
-BuildId $(Build.BuildId) `
-RepoName $(Build.Repository.Name) `
-PullRequestNumber $(System.PullRequest.PullRequestId)`
-PullRequestNumber $(System.PullRequest.PullRequestNumber)`
-Language 'Swagger' `
-CommitSha $(Build.SourceVersion)
displayName: Create Swagger APIView
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow",
"description": "Azure Active Directory OAuth2",
"scopes": {
"user_impersonation": "impersonate your user account"
}
Expand Down

0 comments on commit 13998c6

Please sign in to comment.