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

Fix SystemTextJson read only properties handling #1697

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

mereth
Copy link
Contributor

@mereth mereth commented Apr 28, 2024

The SystemTextJsonReflectionService didn't properly handle when a setter (or getter) was missing. As a result read-only private properties and read-only static properties were not ignored when building type schema via reflection.

Fixes #1694

@Erwinvandervalk
Copy link

I just ran into the same problem and wanted to raise the same PR as a fix :) Nice job! Hope it get's merged soon!

@RicoSuter RicoSuter merged commit 3cbd586 into RicoSuter:master Jun 12, 2024
2 checks passed
@RicoSuter
Copy link
Owner

thanks for the PR.

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

Successfully merging this pull request may close these issues.

Private expression-bodied read-only properties should be ignored
3 participants