Replies: 3 comments 2 replies
-
any comments on this? |
Beta Was this translation helpful? Give feedback.
-
I think this is out of scope of the searchParams validation, because it is not a schema validation based on searchParams alone. |
Beta Was this translation helpful? Give feedback.
-
thank you, it works as you described. The downside is that I cannot modify |
Beta Was this translation helpful? Give feedback.
-
I require to know what exact URL am I validating search parameters for.
Example
Imagine I have a URL defined as
/booking/$pickupDate?returnDate=2025-03-21
.I want to validate that
returnDate
search param is beforepickupDate
path paramSolution
I suggest to modify
validateSearch(searchParams)
tovalidateSearch(searchParams, pathParams)
Beta Was this translation helpful? Give feedback.
All reactions