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

Catch CastError / filter value validation #286

Closed
2 tasks
woylie opened this issue Dec 15, 2022 · 0 comments · Fixed by #353
Closed
2 tasks

Catch CastError / filter value validation #286

woylie opened this issue Dec 15, 2022 · 0 comments · Fixed by #353
Assignees
Milestone

Comments

@woylie
Copy link
Owner

woylie commented Dec 15, 2022

Ecto.CastError should be caught and turned into an error response, or filter values need to be validated depending on the field type / operator.

  • prevent Ecto.CastError on value field during validation
  • cast empty/not_empty filter values as boolean
@woylie woylie added this to the 0.19 milestone Dec 15, 2022
@woylie woylie self-assigned this Dec 18, 2022
@woylie woylie modified the milestones: 0.19, 0.20 Jan 15, 2023
@woylie woylie changed the title Catch CastError Catch CastError / filter value validation Feb 14, 2023
@woylie woylie modified the milestones: 0.20, 0.21 Mar 21, 2023
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 a pull request may close this issue.

1 participant