Skip to content

Commit 5113351

Browse files
committed
chore: remove :error_handlers from allowed fields
this fixes the following warning: attempting to determine the presence of embed_many field :error_handlers with validate_required/3 or field_missing?/2 which has no effect. You can pass the :required option to Ecto.Changeset.cast_embed/3 to achieve this. as we already have `required: true` in the `cast_embed`, this should be a non-issue Signed-off-by: Francesco Noacco <francesco.noacco@secomind.com>
1 parent 7ba3d8f commit 5113351

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/astarte_core/triggers/policy/policy.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ defmodule Astarte.Core.Triggers.Policy do
2828

2929
@required_fields [
3030
:name,
31-
:error_handlers,
3231
:maximum_capacity
3332
]
3433

0 commit comments

Comments
 (0)