Skip to content

Fix SystemTextJson read only properties handling#1697

Merged
RicoSuter merged 1 commit into
RicoSuter:masterfrom
mereth:fix_read_only_private_properties
Jun 12, 2024
Merged

Fix SystemTextJson read only properties handling#1697
RicoSuter merged 1 commit into
RicoSuter:masterfrom
mereth:fix_read_only_private_properties

Conversation

@mereth

@mereth mereth commented Apr 28, 2024

Copy link
Copy Markdown
Contributor

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
Copy Markdown

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
@RicoSuter

Copy link
Copy Markdown
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