So what will happen If I searched some invalid input?!
you have to inform the user that she/he won't be getting any data! Otherwise they will be waiting for your API result forever! :no_good_man:
Surprisingly, your API gives you some result ,related to I don't know what, when you don't enter any data for your query! So you may not need a validation if there is no data entered in the search input! or maybe you do need?!
So what will happen If I searched some invalid input?! you have to inform the user that she/he won't be getting any data! Otherwise they will be waiting for your API result forever! :no_good_man: Surprisingly, your API gives you some result ,related to I don't know what, when you don't enter any data for your query! So you may not need a validation if there is no data entered in the search input! or maybe you do need?!