Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/workos/user_management/organization_membership.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
defmodule WorkOS.UserManagement.OrganizationMembership do

Check warning on line 1 in lib/workos/user_management/organization_membership.ex

View workflow job for this annotation

GitHub Actions / Test (Elixir 1.14.5, OTP 25.3)

@behaviour WorkOS.Castable does not exist (in module WorkOS.UserManagement.OrganizationMembership)
@moduledoc """
WorkOS Organization Membership struct.
"""
Expand All @@ -9,6 +9,7 @@
id: String.t(),
user_id: String.t(),
organization_id: String.t(),
custom_attributes: map(),
updated_at: String.t(),
created_at: String.t()
}
Expand All @@ -24,16 +25,18 @@
:id,
:user_id,
:organization_id,
:custom_attributes,
:updated_at,
:created_at
]

@impl true
def cast(map) do

Check warning on line 34 in lib/workos/user_management/organization_membership.ex

View workflow job for this annotation

GitHub Actions / Test (Elixir 1.14.5, OTP 25.3)

got "@impl true" for function cast/1 but no behaviour specifies such callback. There are no known callbacks, please specify the proper @behaviour and make sure it defines callbacks
%__MODULE__{
id: map["id"],
user_id: map["user_id"],
organization_id: map["organization_id"],
custom_attributes: map["custom_attributes"] || %{},
updated_at: map["updated_at"],
created_at: map["created_at"]
}
Expand Down
Loading