Skip to content

[Feature request]: Add option to disable known generating object with known keys for Enums #3403

@NorthernLightsDevel

Description

@NorthernLightsDevel

Is your feature request related to a specific problem? Or an existing feature?

#2825 added a feature that allowed a dictionary of enum values to generate object keys from a Dictionary instead of treating it like a map. This breaks when generating an API client in newer versions of the library, with Flags enums, and when I actualy want the object to be a map in generated libraries.

Describe the solution you'd like

In add check to to suppress generating enum values for flags-enums, and a parameter to suppress passing keys to the DataContract for Dictionaries whith Enum keys, and add a command line option swashbuckle.aspnetcore.cli to be able to disable when generating the swagger file from a dll etc.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature suggestionhelp-wantedA change up for grabs for contributions from the community

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions