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

warn if there is a division by zero happening #22

Open
matthiaskrgr opened this issue Sep 5, 2019 · 1 comment
Open

warn if there is a division by zero happening #22

matthiaskrgr opened this issue Sep 5, 2019 · 1 comment
Labels
feature Requested features

Comments

@matthiaskrgr
Copy link
Member

rules

1 AS ONE

0 AS ZERO

ONE / ZERO  AS TWO

your age must be TWO

schema: age: 0

There is no warning that we divide by zero.
It seems that when this happen, the validation will never suceed no matter what value I enter in the playground.

We should warn somehow that there was a division by zero.

@matthiaskrgr matthiaskrgr added the feature Requested features label Sep 5, 2019
@jages
Copy link
Contributor

jages commented Jan 31, 2020

Agreed, we do not want to, however, check each nested call for zero.
I'm taking somewhat of a 'trust the programmer' approach to this - @lionelpa any thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Requested features
Projects
None yet
Development

No branches or pull requests

2 participants