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

[Documentation] error parameter not described #44

Open
staeter opened this issue Jul 19, 2022 · 1 comment
Open

[Documentation] error parameter not described #44

staeter opened this issue Jul 19, 2022 · 1 comment

Comments

@staeter
Copy link

staeter commented Jul 19, 2022

I can't find the description of what the error parameter does for the different fields.

@MangelMaxime
Copy link

Hello @STTR13,

you can find it used in the SignUp example.

In this example, it is used to display server side errors.

, error =
\{ email, errors } ->
if Just email == Maybe.map .value errors.email then
Maybe.map .error errors.email
else
Nothing

I think you can also use it, to generate error based on other fields values.

For example, if you are asking for an interval and what to check that the endDate is set after the startDate.

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

2 participants