Skip to content

Fix Search Validation #73

@Alaalser

Description

@Alaalser

Since we used one input to search for firstName or lastName or phone.

In this case, the input value will be the same for the 3 things and that's will make the request failed because every field has a different validation.

image

As you can see in the picture
search?firstName=Vivian&lastName=Vivian&phone=Vivian
In search cases, we don't have to be very strict on what values the user will input, but in post request, we should care about it.
Instead of validation for search, we can handle a message that tells the user there is no result for your input value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions