I'm new to swagger open API documentation. Integrating the Aliencube.AzureFunctions.Extensions.OpenApi.Core in azure function app 2.0.
Here is the code :
[FunctionName("TestFunction")]
[OpenApiOperation(operationId: "TestFunction", tags: new[] { "TestFunction" })]
[OpenApiRequestBody("text/plain", typeof(string))]
public static async Task<IActionResult> TestFunctionRun([HttpTrigger(AuthorizationLevel.Anonymous,"post", Route = null)] HttpRequest TestFunctionRequest, ExecutionContext executionContext)
{
{
//definition of function
}
}
In Swagger it is displaying as below
we are expected to display below example value by default
{
"username" : "testuser",
"userid" : "1"
}
If the above Expected example value is displayed by default by using AzureFunctions.Extensions.Swashbuckle in azurefunction 2.0. It is also help full for us.
Please help me out from this problem as we are running out of time.
Thanks in advance!

You should use,
Petis a model.Reproduce your problem:
Solution:
Reference
Source code : AzureFunctions.Extensions
Blog : Introducing Swagger UI on Azure Functions
set startup project.