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

Using null filter as part of comma delineated filter list does not typecast 'null' to nil #411

Open
smai-f opened this issue Apr 11, 2022 · 0 comments

Comments

@smai-f
Copy link

smai-f commented Apr 11, 2022

If filtering by nil is enabled on your resource and you use a filter such as filter[name]=null,Lucy, it would be nice if this filter returned all values that were either nil or Lucy. Instead, the filter value ends up here as ['null', 'Lucy'] -- 'null' is a string and does not get typecast to nil.

Only verified with resource backed by ActiveRecord.

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