Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QueryParam how to define dependent parameters #2273

Open
ehdez82 opened this issue Oct 14, 2020 · 0 comments
Open

QueryParam how to define dependent parameters #2273

ehdez82 opened this issue Oct 14, 2020 · 0 comments

Comments

@ehdez82
Copy link

ehdez82 commented Oct 14, 2020

Hello, I have a question. In the following example, parameter C is incompatible with parameters A and B. However, parameters A and B are dependent, that is, if I send A, it is mandatory to send B and vice versa. How can I define this dependency with QueryParam. Thanks in advance.

/**
* QueryParam(name="paramA", nullable=true, description="Search by paramA")
* QueryParam(name="paramB", nullable=true, description="Search by paramB")
* QueryParam(name="paramC", nullable=true, incompatibles={"paramA", "paramB"}, description="Search by paramC")
*/
public function search(ParamFetcher $paramFetcher)
{
	
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant