Forum Discussion

Maktum_pasha's avatar
New Contributor
3 years ago

Clarification on swagger validation

I am using swagger for API documentation. We have a JSON file that gets rendered by swagger.

for one of the API we have 3 input parameters 

param1 param2 param3

if the user specifies values for param1,param2 then param3 should behave as optional.

if the user specifies values for param3 then the param1,param2 should behave as optional.


either param,param2 are required or only param3 is required.


Any suggestions would be greatly appreciated.