Azure / Azure/azure-functions-openapi-extension

Unable to display APIs in Azure Function App Swagger/OpenAPI

Open
#421 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
388
Forks
202
PR merge metrics
No merged PRs in 30d

Description

**Describe the issue**
We have an Azure Func app hosted in **Linux Premium plan, private network, using only https**, but the Swagger UI cannot display APIs like below:

[![enter image description here][1]][1]

The settings below are set based on the link below, but the error above still occurs.

{
"Values": {
"OpenApi__ForceHttps": "true",
"OpenApi__ForceHttp": "false",
"OpenApi__HostNames": "/api"
}
}

https://github.com/Azure/azure-functions-openapi-extension/blob/main/docs/openapi.md

**Settings**

.NET Core 3.x

Microsoft.Azure.WebJobs.Extensions.OpenApi 1.0

**Refs:**

https://github.com/Azure/azure-functions-openapi-extension/blob/main/docs/openapi-core.md
https://github.com/Azure/Azure-Functions/issues/1933
https://github.com/Azure/azure-functions-openapi-extension/issues/352

[1]: https://i.stack.imgur.com/enaPP.png

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.