Skip to content
New issue

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

got FunctionClauseError while inspecting #77

Open
garthk opened this issue May 12, 2020 · 0 comments
Open

got FunctionClauseError while inspecting #77

garthk opened this issue May 12, 2020 · 0 comments

Comments

@garthk
Copy link
Contributor

garthk commented May 12, 2020

import Norm
schema(%Date{
  day: spec(is_integer() and & &1 > 0),
  month: spec(is_integer() and & &1 > 0),
  year: spec(is_integer() and & &1 > 0)
})

#Norm.Schema<%Inspect.Error{
  message: "got FunctionClauseError with message \"no function clause matching in Calendar.ISO.date_to_string/4\" while inspecting %{__struct__: Date, calendar: Calendar.ISO, day: #Norm.Spec<is_integer() and &(&1 > 0)>, month: #Norm.Spec<is_integer() and &(&1 > 0)>, year: #Norm.Spec<is_integer() and &(&1 > 0)>}"
}>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant