This commit is contained in:
Justin Yoo 2022-09-20 16:15:29 +09:00
Родитель cd8a99a61e
Коммит cc95f4ab4a
2 изменённых файлов: 6 добавлений и 6 удалений

3
.github/workflows/main-actions.yaml поставляемый
Просмотреть файл

@ -51,6 +51,5 @@ jobs:
echo "Generated Document: ${{ steps.oai.outputs.generated }}"
$json = Get-Content -Path ${{ steps.oai.outputs.generated }} | ConvertFrom-Json
$result = $json.openapi -eq "3.0.1"
echo $result
echo "Check result: $result"

Просмотреть файл

@ -47,9 +47,9 @@ steps:
uses: azure-functions-openapi-extension/actions/build-openapi@v1
with:
functionAppPath: 'bin/Debug/net6.0'
requestUri: 'http://localhost:7071/api/swagger.json'
requestUri: 'http://localhost:7071/api/openapi/v3.json'
documentPath: 'generated'
documentName: 'swagger.json'
documentName: 'openapi.json'
delay: '10'
isRemote: 'false'
@ -58,6 +58,7 @@ steps:
run: |
echo "Generated Document: ${{ steps.oai.outputs.generated }}"
Get-Content -Path ${{ steps.oai.outputs.generated }}
$json = Get-Content -Path ${{ steps.oai.outputs.generated }} | ConvertFrom-Json
$result = $json.openapi -eq "3.0.1"
echo "Check result: $result"
```