Forum Discussion

santhosh323's avatar
santhosh323
New Contributor
5 years ago

Open Api swagger yml Config: How to ensure requests are accepted with additional query parameters

Can anyone point me to the documentation which allows additional query parameters as part of request,

 

For example http://myexample.com?name=dev&additional_param_1=hello&additional_param_2=world

 

In my api.yml I declare name query parameter as required. But I do not care if any additional parameters are provided.

 

Presently, when I validate my request with additional parameters. It fails, complaining that "

Query parameter 'additional_param_1' is unexpected on path and Query parameter 'additional_param_2' is unexpected on path"
 
Thanks for helping me out
No RepliesBe the first to reply