Newtonsoft.Json.JsonSerializationException: 'Error converting value "validating" to type 'WorkOS.DirectoryState'.
Closed this issue · 1 comments
WillyPain commented
Looks like the .net sdk is missing a few states in the DirectoryState enum
From workos-dotnet
public enum DirectoryState
{
[EnumMember(Value = "linked")]
Active,
[EnumMember(Value = "unlinked")]
Inactive,
[EnumMember(Value = "invalid_credentials")]
InvalidCredentials,
}
From workos-node
export type DirectoryState =
| 'active'
| 'deleting'
| 'inactive'
| 'invalid_credentials'
| 'validating';