Closed adonig closed 11 months ago
Describe the bug Trying to use the is_nil filter on a string field raises an InvalidQuery error:
is_nil
InvalidQuery
Expected "string", got %{"is_nil" => "false"}, at ["filter", "string_field"].
To Reproduce Try something like /api/resources?filter[string_field][is_nil]=false
/api/resources?filter[string_field][is_nil]=false
Expected behavior It should respond with resources where the string field is not nil.
Runtime
Additional context The problem seems to be that the href_schema expects the field's filter to be of type string.
href_schema
Fixed by #102
Describe the bug Trying to use the
is_nil
filter on a string field raises anInvalidQuery
error:Expected "string", got %{"is_nil" => "false"}, at ["filter", "string_field"].
To Reproduce Try something like
/api/resources?filter[string_field][is_nil]=false
Expected behavior It should respond with resources where the string field is not nil.
Runtime
Additional context The problem seems to be that the
href_schema
expects the field's filter to be of type string.