Azure / Azure/azure-functions-openapi-extension
Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore and OpenApi extension
- Dominant language
- C#
- Stars
- 388
- Forks
- 202
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the issue**
When I create a new Function App dotnet core 6.0 Isolated app and I am using the following nuget package:
Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore
and I am changing in the Program.cs this line:
var host = new HostBuilder()
.ConfigureFunctionsWorkerDefaults(worker => worker.UseNewtonsoftJson())
.Build();
to this
var host = new HostBuilder()
.ConfigureFunctionsWebApplication(worker => worker.UseNewtonsoftJson())
.Build();
, and I am trying to open the URL openapi UI I don't get any data.
**To Reproduce**
Steps to reproduce the behavior:
project attached to the report.
**Expected behavior**
I would like to use openapi extension with Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore nuget package.
**Screenshots**
**Environment (please complete the following information, if applicable):**
- OS: Windows
- Any browser
- Version 1.5.1
**Additional context**
[FunctionApp1.zip](https://github.com/Azure/azure-functions-openapi-extension/files/12698970/FunctionApp1.zip)
Contributor guide
Research direction
Start with the attached FunctionApp1.zip and inspect Program.cs, comparing ConfigureFunctionsWorkerDefaults with ConfigureFunctionsWebApplication. Run the .NET 6 isolated app using Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore version 1.5.1, open the OpenAPI UI, and trace why it has no data. Done means the OpenAPI UI displays the function definitions with the ASP.NET Core integration enabled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, csharp, openapi
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100