{"action":"closed","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/428","labels_url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/428/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/428/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/428/events","html_url":"https://github.com/swagger-api/swagger-editor/issues/428","id":73529039,"number":428,"title":"Enum ref failing in query parameter","user":{"login":"kaungst","id":2354132,"avatar_url":"https://avatars.githubusercontent.com/u/2354132?v=3","gravatar_id":"","url":"https://api.github.com/users/kaungst","html_url":"https://github.com/kaungst","followers_url":"https://api.github.com/users/kaungst/followers","following_url":"https://api.github.com/users/kaungst/following{/other_user}","gists_url":"https://api.github.com/users/kaungst/gists{/gist_id}","starred_url":"https://api.github.com/users/kaungst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaungst/subscriptions","organizations_url":"https://api.github.com/users/kaungst/orgs","repos_url":"https://api.github.com/users/kaungst/repos","events_url":"https://api.github.com/users/kaungst/events{/privacy}","received_events_url":"https://api.github.com/users/kaungst/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-06T06:22:47Z","updated_at":"2015-05-06T07:04:11Z","closed_at":"2015-05-06T07:04:11Z","body":"I'm unable to get a reference to a predefined enum object in params. Looks like it might have to do with $ref needing to be nested in an object and enum: only accepting array elements/parameters being a list of objects/nowhere to nest the ref?\r\n\r\nWould this be a feature request or is it a bug?\r\n\r\nA failing example taken from the swagger editor\r\n---EDIT--- switched from YAML to JSON\r\n---EDIT--- I suck at markdown\r\n```json\r\n{\r\n    \"swagger\": \"2.0\",\r\n    \"info\": {\r\n        \"version\": \"1.0.0\",\r\n        \"title\": \"PetStore on Heroku\"\r\n    },\r\n    \"host\": \"petstore-api.herokuapp.com\",\r\n    \"basePath\": \"/pet\",\r\n    \"schemes\": [\r\n        \"http\",\r\n        \"https\"\r\n    ],\r\n    \"consumes\": [\r\n        \"application/json\",\r\n        \"text/xml\"\r\n    ],\r\n    \"produces\": [\r\n        \"application/json\",\r\n        \"text/html\"\r\n    ],\r\n    \"paths\": {\r\n        \"/\": {\r\n            \"get\": {\r\n                \"parameters\": [\r\n                    {\r\n                        \"name\": \"pet_color\",\r\n                        \"in\": \"query\",\r\n                        \"description\": \"a pet color\",\r\n                        \"type\": \"integer\",\r\n                        \"enum\": {\r\n                            \"$ref\": \"#/definitions/PET_COLORS\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"responses\": {\r\n                    \"200\": {\r\n                        \"description\": \"List all pets\",\r\n                        \"schema\": {\r\n                            \"title\": \"Pets\",\r\n                            \"type\": \"array\",\r\n                            \"items\": {\r\n                                \"$ref\": \"#/definitions/Pet\"\r\n                            }\r\n                        }\r\n                    }\r\n                }\r\n            }\r\n        }\r\n    },\r\n    \"definitions\": {\r\n        \"Pet\": {\r\n            \"properties\": {\r\n                \"name\": {\r\n                    \"type\": \"string\"\r\n                },\r\n                \"pet_enums\": {\r\n                    \"$ref\": \"#/definitions/PET_COLORS\"\r\n                }\r\n            }\r\n        },\r\n        \"PET_COLORS\": {\r\n            \"description\": \"A pet's color\",\r\n            \"type\": \"integer\",\r\n            \"enum\": [\r\n                \"green\",\r\n                \"purple\",\r\n                \"blue\"\r\n            ]\r\n        }\r\n    }\r\n}\r\n```"}}