{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-spec/issues/256","labels_url":"https://api.github.com/repos/swagger-api/swagger-spec/issues/256/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-spec/issues/256/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-spec/issues/256/events","html_url":"https://github.com/swagger-api/swagger-spec/issues/256","id":55972779,"number":256,"title":"Support interdependencies between query parameters","user":{"login":"cwarny","id":2788526,"avatar_url":"https://avatars.githubusercontent.com/u/2788526?v=3","gravatar_id":"","url":"https://api.github.com/users/cwarny","html_url":"https://github.com/cwarny","followers_url":"https://api.github.com/users/cwarny/followers","following_url":"https://api.github.com/users/cwarny/following{/other_user}","gists_url":"https://api.github.com/users/cwarny/gists{/gist_id}","starred_url":"https://api.github.com/users/cwarny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cwarny/subscriptions","organizations_url":"https://api.github.com/users/cwarny/orgs","repos_url":"https://api.github.com/users/cwarny/repos","events_url":"https://api.github.com/users/cwarny/events{/privacy}","received_events_url":"https://api.github.com/users/cwarny/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/swagger-api/swagger-spec/labels/Swagger.Next%20Proposal","name":"Swagger.Next Proposal","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-01-29T23:23:11Z","updated_at":"2015-09-10T17:12:46Z","closed_at":null,"body":"It would be great to be able to specify interdependencies between query parameters. In my app, some query parameters become \"required\" only when some other query parameter is present. And when conditionally required parameters are missing when the conditions are met, the API fails. Of course I can have the API reply back that some required parameter is missing, but it would be great to have that built into Swagger."},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-spec/issues/comments/139313756","html_url":"https://github.com/swagger-api/swagger-spec/issues/256#issuecomment-139313756","issue_url":"https://api.github.com/repos/swagger-api/swagger-spec/issues/256","id":139313756,"user":{"login":"rcork","id":3687003,"avatar_url":"https://avatars.githubusercontent.com/u/3687003?v=3","gravatar_id":"","url":"https://api.github.com/users/rcork","html_url":"https://github.com/rcork","followers_url":"https://api.github.com/users/rcork/followers","following_url":"https://api.github.com/users/rcork/following{/other_user}","gists_url":"https://api.github.com/users/rcork/gists{/gist_id}","starred_url":"https://api.github.com/users/rcork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rcork/subscriptions","organizations_url":"https://api.github.com/users/rcork/orgs","repos_url":"https://api.github.com/users/rcork/repos","events_url":"https://api.github.com/users/rcork/events{/privacy}","received_events_url":"https://api.github.com/users/rcork/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T17:12:46Z","updated_at":"2015-09-10T17:12:46Z","body":"Don't forget the \"OR\" dependency. I have a service where one of two query parameters must be present but it doesn't matter which one. For now we are just documenting the interdependency and using a error schema with the appropriate code/message but would be preferable to have this defined in the contract up front."}}