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

Required filter accepts empty objet #1504

Open
TriPSs opened this issue Jan 5, 2022 · 0 comments
Open

Required filter accepts empty objet #1504

TriPSs opened this issue Jan 5, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@TriPSs
Copy link

TriPSs commented Jan 5, 2022

Describe the bug
When field is required in the filter an empty object is now enough.

Have you read the Contributing Guidelines?

Yes

To Reproduce
Steps to reproduce the behavior:

  1. Set an field to be required in the filter
  2. Example field foo is required, when sending { filter: { foo: {} } } is now accepted as valid

Expected behavior
Error to be thrown that a filter on foo is required

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant