{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-core/issues/1525","labels_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/1525/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/1525/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/1525/events","html_url":"https://github.com/swagger-api/swagger-core/issues/1525","id":113780177,"number":1525,"title":"How to handle choice in Swagger 2.0","user":{"login":"anilnandigam","id":13959943,"avatar_url":"https://avatars.githubusercontent.com/u/13959943?v=3","gravatar_id":"","url":"https://api.github.com/users/anilnandigam","html_url":"https://github.com/anilnandigam","followers_url":"https://api.github.com/users/anilnandigam/followers","following_url":"https://api.github.com/users/anilnandigam/following{/other_user}","gists_url":"https://api.github.com/users/anilnandigam/gists{/gist_id}","starred_url":"https://api.github.com/users/anilnandigam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anilnandigam/subscriptions","organizations_url":"https://api.github.com/users/anilnandigam/orgs","repos_url":"https://api.github.com/users/anilnandigam/repos","events_url":"https://api.github.com/users/anilnandigam/events{/privacy}","received_events_url":"https://api.github.com/users/anilnandigam/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/swagger-api/swagger-core/labels/Support","name":"Support","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-28T09:49:15Z","updated_at":"2015-10-28T14:29:40Z","closed_at":"2015-10-28T14:29:40Z","body":"```json\r\n\"NetworkResource\": {\r\n\t\t\t\"description\": \"SIM, mobile number, or IMEI used by the customer to gain access to services.\",\r\n\t\t\t\"type\": \"object\",\r\n\t\t\t\"properties\": {\r\n\t\t\t\t\"imei\": {\r\n\t\t\t\t\t\"maxLength\": 15,\r\n\t\t\t\t\t\"minLength\": 15,\r\n\t\t\t\t\t\"type\": \"string\",\r\n\t\t\t\t\t\"pattern\": \"[0-9]{15}\"\r\n\t\t\t\t},\r\n\t\t\t\t\"sim\": {\r\n\t\t\t\t\t\"$ref\": \"#/definitions/SIM\"\r\n\t\t\t\t},\r\n\t\t\t\t\"mobileNumber\": {\r\n\t\t\t\t\t\"$ref\": \"#/definitions/MobileNumber\"\r\n\t\t\t\t},\r\n\t\t\t\t\"resourceStatus\": {\r\n\t\t\t\t\t\"type\": \"array\",\r\n\t\t\t\t\t\"items\": {\r\n\t\t\t\t\t\t\"$ref\": \"#/definitions/ResourceStatus\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n```\r\nIn the above Object I need to handle choice bit ween \"mobileNumber\" , \"sim\".\r\nHow we will represent in swagger 2.0. Can you please help on this."},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-core/issues/comments/151862187","html_url":"https://github.com/swagger-api/swagger-core/issues/1525#issuecomment-151862187","issue_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/1525","id":151862187,"user":{"login":"webron","id":241629,"avatar_url":"https://avatars.githubusercontent.com/u/241629?v=3","gravatar_id":"","url":"https://api.github.com/users/webron","html_url":"https://github.com/webron","followers_url":"https://api.github.com/users/webron/followers","following_url":"https://api.github.com/users/webron/following{/other_user}","gists_url":"https://api.github.com/users/webron/gists{/gist_id}","starred_url":"https://api.github.com/users/webron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webron/subscriptions","organizations_url":"https://api.github.com/users/webron/orgs","repos_url":"https://api.github.com/users/webron/repos","events_url":"https://api.github.com/users/webron/events{/privacy}","received_events_url":"https://api.github.com/users/webron/received_events","type":"User","site_admin":false},"created_at":"2015-10-28T14:29:40Z","updated_at":"2015-10-28T14:29:40Z","body":"@anilnandigam - as this is more of a generic question about Swagger and not directly related to swagger-core, can you please send the question to the [google group](https://groups.google.com/forum/#!forum/swagger-swaggersocket)?"}}