-
-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Labels
bugSomething isn't workingSomething isn't workinginternal APIAnything related to the internal API and implementationsAnything related to the internal API and implementations
Description
Somehow dialyzer misses that some storages accept types they are not supposed to.
Behavior for the value in put(key, value) defined value as an Avrora.Schema
Lines 9 to 10 in 99e6942
| @callback get(key :: schema_id()) :: {:ok, result :: nil | Avrora.Schema.t()} | {:error, reason :: term()} | |
| @callback put(key :: schema_id(), value :: Avrora.Schema.t()) :: |
But here we are restricting it to binary
avrora/lib/avrora/storage/registry.ex
Line 72 in 99e6942
| def put(key, value) when is_binary(key) and is_binary(value) do |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinginternal APIAnything related to the internal API and implementationsAnything related to the internal API and implementations