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

FloatFilter to support empty_is_nil option #159

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gadimbaylisahil
Copy link

@gadimbaylisahil gadimbaylisahil commented Feb 9, 2022

Hi, firstly thanks for the work on Mutations. It is really helpful library for us in both small and medium sized projects for business logic.

I just noticed that FloatFilter did not have empty_is_nil option like in IntegerFilter.

This PR is adding that functionality.

It's useful just like in IntegerFilter, float values can also be "" and it would be nice to handle it in the mutations rather than filtering and making them nil manually, as right now, they will not pass validations at Mutations and return an error that Field is blank.

Would appreciate if this is merged.

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

Successfully merging this pull request may close these issues.

None yet

1 participant