Skip to content

[Bug]: CamelCaseStringEnumConverter doesn't support JsonStringEnumMemberName #2067

@codemahek

Description

@codemahek

Describe the bug 🐞

CamelCaseStringEnumConverter doesn't support JsonStringEnumMemberName so I am getting the exception. It seems now in GetDefaultJsonSerializerOptions(0 now you are default adding that.
Do we have any plans to support that?

Step to reproduce

Create the default option using
SystemTextJsonContentSerializer.GetDefaultJsonSerializerOptions()
and create enum and add attribute JsonStringEnumMemberName to it and it will throw exception

Reproduction repository

https://github.com/reactiveui/refit

Expected behavior

This should happen...

Screenshots 🖼️

No response

IDE

No response

Operating system

No response

Version

No response

Device

No response

Refit Version

No response

Additional information ℹ️

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions