We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Transforms do not run on fields if their type is a schema but they do run if the type is :map.
:map
To Reproduce
fun = fn _value -> raise("boom") end nested_schema = %{ foo: :string } parent_schema = %{ bar: {nested_schema, {:transform, fun}} } map_schema = %{ bar: {:map, {:transform, fun}} } Peri.validate(parent_schema, %{bar: %{foo: "hello"}}) {:ok, %{bar: %{foo: "hello"}}} Peri.validate(map_schema, %{bar: %{foo: "hello"}}) ** (RuntimeError) boom
Expected behavior Transform runs on the validated schema field
Environment • Elixir version: 1.16.3 • Peri version: 0.2.11
The text was updated successfully, but these errors were encountered:
zoedsoupe
Successfully merging a pull request may close this issue.
Describe the bug
Transforms do not run on fields if their type is a schema but they do run if the type is
:map
.To Reproduce
Expected behavior
Transform runs on the validated schema field
Environment
• Elixir version: 1.16.3
• Peri version: 0.2.11
The text was updated successfully, but these errors were encountered: