A bug has been reported in the API search endpoint, where an empty search query returns a JSON object with a NULL value and a 200 status, instead of a descriptive error message and a 400 status. The Front-End correctly validates the search term, but the API only partially validates it, allowing empty searches to go through. heyallan suggests that the API should respond with a descriptive error message, similar to the expected response:
{
"errors": [ "You supplied invalid parameters to the request: q" ],
"error_type": "invalid_parameters"
}
sam notes that the search route allows for multiple arguments and that caution is needed when treating min_search_term_length as a requirement. heyallan provides an overview of the issue, highlighting the inconsistencies in validation and documentation, and believes this is a bug rather than intended behavior.