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
{{ message }}
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.
Hello, is there a way to indicate that a parameter is required if and only if another parameter is passed?
For example, I have an endpoint that returns a list of appointments. That list can be filtered using startDate and endDate. They are both required if and only if one of them is passed, otherwise, they're optional.
I see something similar using the One Of syntax.
Best,
James
The text was updated successfully, but these errors were encountered:
Hello, is there a way to indicate that a parameter is required if and only if another parameter is passed?
For example, I have an endpoint that returns a list of appointments. That list can be filtered using
startDate
andendDate
. They are both required if and only if one of them is passed, otherwise, they're optional.I see something similar using the
One Of
syntax.Best,
James
The text was updated successfully, but these errors were encountered: