Azure / Azure/azure-functions-openapi-extension

Bug report, feature request or other request

Open
#615 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**
When using Microsoft.Azure.WebJobs.Extensions.OpenApi setting the content type: application/x-www-form-urlencoded on a OpenApiRequestBody attribute, SwaggerUI is not rendering the ui properly.

**To Reproduce**
Steps to reproduce the behavior:
1. Create an HTTP triggered function with OpenApi support
2. Add the OpenApiRequestBody attribute with content type se to: application/x-www-form-urlencoded
3. Run the function
4. navigate to /swagger/ui

**Expected behavior**
SwaggerUI should render a text box where the user can input the body when trying the function

**Screenshots**
![image](https://github.com/Azure/azure-functions-openapi-extension/assets/1446464/40f41bcd-e87d-425d-b7f3-8667949d89de)
![image](https://github.com/Azure/azure-functions-openapi-extension/assets/1446464/8f0af635-ad4b-4ccf-9b09-e7afa5771235)

**Environment (please complete the following information, if applicable):**
- OS: Windows
- Browser Chrome
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with an HTTP-triggered Azure Function using the OpenApiRequestBody attribute and content type application/x-www-form-urlencoded, then inspect the generated /swagger/ui behavior. Compare the rendered request body controls with the expected text box shown in the report; done means Swagger UI renders an editable body input for this content type.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp, openapi
Domain
api, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.