Skip to content

Replace dozens of attributes with single JsonSerializerOptions - #3

Open
andydna wants to merge 1 commit into
keymint-dev:mainfrom
andydna:json-serializer-options
Open

Replace dozens of attributes with single JsonSerializerOptions#3
andydna wants to merge 1 commit into
keymint-dev:mainfrom
andydna:json-serializer-options

Conversation

@andydna

@andydna andydna commented Sep 9, 2026

Copy link
Copy Markdown

Services/Types.cs had many repetitive attributes, like
[JsonPropertyName("propertyName")] and
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
attributes.

They've been replaced by a single System.Text.Json.JsonSerializerOptions.

Not sure if I've matched the style well enough(
named argument options:,
fully qualified type names vs using).

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.

1 participant