nestjs-query icon indicating copy to clipboard operation
nestjs-query copied to clipboard

Required filter accepts empty objet

Open TriPSs opened this issue 2 years ago • 0 comments

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

TriPSs avatar Jan 05 '22 21:01 TriPSs