Azure / azure-functions-openapi-extension

This extension provides an Azure Functions app with Open API capability for better discoverability to consuming parties
https://www.nuget.org/packages/Microsoft.Azure.WebJobs.Extensions.OpenApi/
MIT License
375 stars 196 forks source link

Error when rendering the Swagger UI when API includes a class that has multiple objects(16) #661

Open obosralf opened 4 months ago

obosralf commented 4 months ago

Describe the issue I'm getting an exception trying to render the Swagger Document when my API includes a class that has multiple objects(16)

OpenApiResponseWithBody(HttpStatusCode.OK, "application/json", typeof()

To Reproduce Steps to reproduce the behavior:

  1. Use Visual Studio to create a new Azure Functions app with Open API Support
  2. Add a "Dto" class with many objects (16)
  3. try to run the Swagger UI
  4. See error

Expected behavior I expect it not to throw an error and render the swagger ui

Screenshots image

Environment (please complete the following information, if applicable):

  • OS: Windows 11
  • Edge
  • Version 126.0.2592.81

Additional context Add any other context about the problem here.