Skip to content

OpenAPI: Enums with JsonStringEnumMemberName are not handled. You have to specifically set [JsonConverter(typeof(StringEnumConverter))] #62965

@niemyjski

Description

@niemyjski

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Enums with JsonStringEnumMemberName are not handled. You have to specifically set [JsonConverter(typeof(StringEnumConverter))]. See StackStatusWithJsonStringEnumMemberName Maybe #59980 ? Either way this should be handled out of the box without needing a converter?

Expected Behavior

These should just work out of the box.

Steps To Reproduce

Clone https://github.com/exceptionless/aspnet-core-net10-issues# and run it, hit the open api json endpoint.

Exceptions (if any)

No response

.NET Version

10 preview 6

Anything else?

MacOS Latest, Rider/VS Code

#62150

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✔️ Resolution: AnsweredResolved because the question asked by the original author has been answered.Status: Resolvedarea-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcfeature-openapi

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions