gpt4 book ai didi

azure - Azure Functions v3 的 Swashbuckle : failed to load API definition

转载 作者:行者123 更新时间:2023-12-02 08:30:03 25 4
gpt4 key购买 nike

我创建了一个简单的项目,在其中添加了最新版本的扩展。我在 Github 上发布了我的代码。我使用 Azure Functions v3。依赖项是:

  • AzureExtensions.Swashbuckle 3.1.6
  • AzureFunctions.Extensions.Swashbuckle 1.4.4
  • Microsoft.NET.Sdk.Functions 3.0.3

我按照 Swashbuckle page 上的步骤操作。本地正在工作。当我在 Azure 上发布该函数时,出现以下错误:

enter image description here

{
"schemaValidationMessages": [
{
"level": "error",
"message": "Can't read from file https://azuks-test-q001.azurewebsites.net/api/swagger/json"
}
]
}

在此之前,我遇到了另一个问题,我问过here 。我不明白发生了什么变化。

更新

出于同样的原因,jsonUI 的代码参数不能相同。如果您使用获取函数 url 打开 Swagger url 并从 UI 函数复制该 url,则它可以正常工作。

enter image description here

最佳答案

目前仅fork => https://github.com/vitalybibikov/azure-functions-extensions-swashbuckle

支持您的 Azure Functions 版本(v3)

关于azure - Azure Functions v3 的 Swashbuckle : failed to load API definition,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61746275/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com