azure-functions-openapi-extension
azure-functions-openapi-extension copied to clipboard
This extension provides an Azure Functions app with Open API capability for better discoverability to consuming parties
**Describe the issue** While adding OpenApi to an Azure Function using `[OpenApiResponseWithBody ... bodyType: typeof(List) ...]`, I hit this exception, which breaks the entire Swagger UI: ``` Cannot cast Newtonsoft.Json.Linq.JObject...
Why does an enum property get a default but other non-nullable types do not? ``` public Country? Country { get; set; } public int Version { get; set; } ```...
Nested generic types are generated into correct ReferenceId without inverted comma in name: Expected acceptor.Schemas[name].Reference.Id to be "fakeGenericModel_list_fakeModel" with a length of 31, but "fakeGenericModel_list`1" has a length of 23,...
**Describe the issue** When using IHostApplicationBuilder, I cannot figure out how to adjust the Json Serialization setting to match what the function returns. **To Reproduce** Steps to reproduce the behavior:...
**Describe the issue** Currently, the URL of Swagger UI is hardcoded to `swagger/ui` (https://github.com/Azure/azure-functions-openapi-extension/blob/main/src/Microsoft.Azure.WebJobs.Extensions.OpenApi/OpenApiTriggerFunctionProvider.cs#L91). Ideally, we should be able to customize the URL. By default, after publishing the function, the...
**Describe the issue** Code analysis does not run when this package is in use **To Reproduce** Steps to reproduce the behavior: 1. `func init --worker-runtime "dotnet-isolated" --target-framework "net8.0"` 2. `func...
I'm writing a function with **multipart/form-data**, with this signature: ```csharp [Function("UploadFile")] [OpenApiOperation("UploadFile")] [OpenApiRequestBody(bodyType: typeof(UploadFileRequest), contentType: "multipart/form-data")] [OpenApiResponseWithBody(bodyType: typeof(UploadFileResponse), contentType: "application/json")] public async Task Run([HttpTrigger(AuthorizationLevel.Anonymous, "post")] HttpRequest httpRequest) ``` receiving multipart/form...