unchase / Unchase.Swashbuckle.AspNetCore.Extensions

:hammer: A library contains a bunch of extensions (filters) for Swashbuckle.AspNetCore.
https://www.nuget.org/packages/Unchase.Swashbuckle.AspNetCore.Extensions
Apache License 2.0
115 stars 16 forks source link

enum descriptions do not work as expected when enum array is provided #31

Closed TheJaysH closed 1 year ago

TheJaysH commented 1 year ago

When an enum array is defined as a param it will only show the integer values. I expect to show the string values shown in the single enum example.

image

public enum ExampleEnum
{
    One,
    Two,
    Three
}
public async Task<ActionResult<Foo>> GetFoo(
  ExampleEnum exampleEnum, // Works as expected 
  [FromQuery(Name = "exampleEnum[]")] ExampleEnum[] exampleEnums // Does not work as expcted
  ) { ... }