You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With 2 query parameters allowed, at least 1 query parameter must be provided (required).
E.g.:
OK
?q1=v1&q2=v2
?q1=v1
?q2=v2
KO
<NOTHING>
?q3=v3
Draft:
import{t}from'elysia'app.get('/',({ query })=>{
...
},{query: t.Object({q1: t.Optional(t.String(),/* true if q2 is provided (e.g. use q2 reference for condition) */),q2: t.Optional(t.String(),/* true if q1 is provided (e.g. use q1 reference for condition) */)})})
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
With 2 query parameters allowed, at least 1 query parameter must be provided (required).
E.g.:
OK
KO
<NOTHING>
Draft:
Beta Was this translation helpful? Give feedback.
All reactions