Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to have spaces in JsonPropertyName #25

Open
binn opened this issue Dec 14, 2021 · 3 comments
Open

Unable to have spaces in JsonPropertyName #25

binn opened this issue Dec 14, 2021 · 3 comments

Comments

@binn
Copy link

binn commented Dec 14, 2021

Not sure what's causing this, as the tests shown in the documentation show this should be possible
image
image

However, my other enum without spaces seems to work fine
image

I'm using .NET 5.0, System.Text.Json 6.0 (from System.Net.Http.Json)

@binn
Copy link
Author

binn commented Dec 14, 2021

I'm able to use EnumMember, but it is not ideal since JsonPropertyName is supported, and used everywhere else. For now this is my solution.
image

@CodeBlanch
Copy link
Member

@binn I haven't been able to reproduce this. Could you possibly provide a repo that contains a small program or test that reproduces the issue so I can debug it?

@binn
Copy link
Author

binn commented Dec 20, 2021

This repository I was working on was https://github.com/binn/VRChat but if you're not comfortable making an account with their platform I'll quickly make another a test repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants