[PR #573] Vibrancy serialization fix #1222

Closed
opened 2026-01-29 16:58:34 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/ElectronNET/Electron.NET/pull/573

State: closed
Merged: Yes


Noticed that Vibrancy serialization works incorrect. It may lead to crash on macOS if incorrectly serialized values are used. I've tested it. Application crashed.
Json property attributes are ignored because they are placed too deep. This changes will fix that.

You may read about custom enum values names serialization here (random article about it) or somewhere else.

**Original Pull Request:** https://github.com/ElectronNET/Electron.NET/pull/573 **State:** closed **Merged:** Yes --- Noticed that Vibrancy serialization works incorrect. It may lead to crash on macOS if incorrectly serialized values are used. I've tested it. Application crashed. Json property attributes are ignored because they are placed too deep. This changes will fix that. You may read about custom enum values names serialization [here](https://automationrhapsody.com/serialize-and-deserialize-enum-values-to-custom-string-in-c-with-json-net/) (random article about it) or somewhere else.
claunia added the pull-request label 2026-01-29 16:58:34 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#1222