Clockify.Net
Clockify.Net copied to clipboard
BUG: JSON serialization fails on workspaceSettings.automaticLock.type value "OLDER_THAN"
The corresponding enum value AutomaticClockType.OlderThan is missing the underscore in its name, which makes the naming-strategy fail when trying to match the received string "OLDER_THAN".
This can cause failure in (for example) an initial call to GetWorkspacesAsync() if the workspace has this specific setting.
Also, the C# types AutomaticClockDto and AutomaticClockType are misnamed - it's a Lock, not a Clock!
NOTE: I have an upcoming PR to fix this, against the latest released version (2.3.0).