Skip to content

Commit

Permalink
improve type option validation
Browse files Browse the repository at this point in the history
  • Loading branch information
pehbehbeh committed Nov 14, 2024
1 parent 3009a32 commit 616afd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/backpex/fields/inline_crud.ex
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
defmodule Backpex.Fields.InlineCRUD do
@config_schema [
type: [
doc: "The type of the field. Either `:embed` or `:assoc`.",
type: :atom,
doc: "The type of the field.",
type: {:in, [:embed, :assoc]},
required: true
],
child_fields: [
Expand Down

0 comments on commit 616afd4

Please sign in to comment.