workos/workos-dotnet

Newtonsoft.Json.JsonSerializationException: 'Error converting value "validating" to type 'WorkOS.DirectoryState'.

Closed this issue · 1 comments

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';

Fixed in #174, thanks again!