Skip to content

Commit

Permalink
Doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
solnic committed Oct 20, 2023
1 parent eb2ff26 commit 91698ac
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions lib/drops/validator.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
defmodule Drops.Validator do
@moduledoc false
defmacro __using__(_opts) do
quote do
alias Drops.{Casters, Predicates}
Expand Down
10 changes: 7 additions & 3 deletions lib/drops/validator/messages/error.ex
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
defmodule Drops.Validator.Messages.Error do
@moduledoc false

alias __MODULE__

defprotocol Conversions do
@doc """
Protocol for error conversions
"""
@moduledoc false

@spec nest(error :: map(), root :: list()) :: map()
def nest(error, root)
Expand Down Expand Up @@ -37,6 +37,7 @@ defmodule Drops.Validator.Messages.Error do
end

defmodule Sum do
@moduledoc false
@type t :: %__MODULE__{}

defstruct [:left, :right]
Expand All @@ -58,6 +59,7 @@ defmodule Drops.Validator.Messages.Error do
end

defmodule Set do
@moduledoc false
@type t :: %__MODULE__{}

defstruct [:errors]
Expand All @@ -76,6 +78,7 @@ defmodule Drops.Validator.Messages.Error do
end

defmodule Caster do
@moduledoc false
@type t :: %__MODULE__{}

defstruct [:error]
Expand All @@ -94,6 +97,7 @@ defmodule Drops.Validator.Messages.Error do
end

defmodule Rule do
@moduledoc false
@type t :: %__MODULE__{}

defstruct [:text, path: []]
Expand Down
4 changes: 2 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ defmodule Drops.MixProject do
groups_for_modules: [
Validation: [
Drops.Contract,
Drops.Validator.Messages,
Drops.Casters,
Drops.Predicates,
Drops.Validator
Drops.Validator,
Drops.Validator.Messages.Backend
],
Types: [
Drops.Types,
Expand Down

0 comments on commit 91698ac

Please sign in to comment.