solnic / drops

🛠️ Tools for working with data effectively - data contracts using types, schemas, domain validation rules, type-safe casting, and more.
Other
251 stars 4 forks source link

Support for lists #13

Closed solnic closed 1 year ago

solnic commented 1 year ago
defmodule TestContract do
  use Drops.Contract

  schema do
    %{
      required(:tags) => type(list: [:string, :filled?])
    }
  end
end