{"action":"created","issue":{"url":"https://api.github.com/repos/RepreZen/SwagEdit/issues/196","repository_url":"https://api.github.com/repos/RepreZen/SwagEdit","labels_url":"https://api.github.com/repos/RepreZen/SwagEdit/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/RepreZen/SwagEdit/issues/196/comments","events_url":"https://api.github.com/repos/RepreZen/SwagEdit/issues/196/events","html_url":"https://github.com/RepreZen/SwagEdit/issues/196","id":173782867,"number":196,"title":"Content assist should provide list of media types","user":{"login":"ghillairet","id":148045,"avatar_url":"https://avatars.githubusercontent.com/u/148045?v=3","gravatar_id":"","url":"https://api.github.com/users/ghillairet","html_url":"https://github.com/ghillairet","followers_url":"https://api.github.com/users/ghillairet/followers","following_url":"https://api.github.com/users/ghillairet/following{/other_user}","gists_url":"https://api.github.com/users/ghillairet/gists{/gist_id}","starred_url":"https://api.github.com/users/ghillairet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghillairet/subscriptions","organizations_url":"https://api.github.com/users/ghillairet/orgs","repos_url":"https://api.github.com/users/ghillairet/repos","events_url":"https://api.github.com/users/ghillairet/events{/privacy}","received_events_url":"https://api.github.com/users/ghillairet/received_events","type":"User","site_admin":false},"labels":[{"id":267343180,"url":"https://api.github.com/repos/RepreZen/SwagEdit/labels/Improvement","name":"Improvement","color":"84b6eb","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-29T14:07:34Z","updated_at":"2016-11-07T15:49:49Z","closed_at":null,"body":"Currently the content assist proposes an empty string for media types items (e.g. for consumes and produces elements) , see screenshot\n\n![screen shot 2016-08-29 at 16 02 23](https://cloud.githubusercontent.com/assets/148045/18053956/23dc4a1c-6e02-11e6-9d63-59a71866d253.png)\n\nWouldn't it be valuable to propose a list of common media types instead. I don't think that would be possible to add them in the swagger schema directly as that could break validation. Maybe we could find a way (hard coded, external files?) to enhance code completion for certain elements.\n\nHere is a list of media types I gathered from the class `com.google.common.net.MediaType`:\n\n``` json\n[\n    \"*/*\",\n    \"application/*\",\n    \"application/atom+xml\",\n    \"application/binary\",\n    \"application/epub+zip\",\n    \"application/javascript\",\n    \"application/json\",\n    \"application/mbox\",\n    \"application/msword\",\n    \"application/octet-stream\",\n    \"application/ogg\",\n    \"application/pdf\",\n    \"application/pkcs12\",\n    \"application/postscript\",\n    \"application/protobuf\",\n    \"application/rdf+xml\",\n    \"application/rtf\",\n    \"application/vnd.google-earth.kml+xml\",\n    \"application/vnd.google-earth.kmz\",\n    \"application/vnd.ms-excel\",\n    \"application/vnd.ms-powerpoint\",\n    \"application/vnd.oasis.opendocument.graphics\",\n    \"application/vnd.oasis.opendocument.presentation\",\n    \"application/vnd.oasis.opendocument.spreadsheet\",\n    \"application/vnd.oasis.opendocument.text\",\n    \"application/vnd.openxmlformats-officedocument.presentationml.presentation\",\n    \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\",\n    \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\",\n    \"application/vnd.sketchup.skp\",\n    \"application/x-bzip2\",\n    \"application/x-gzip\",\n    \"application/x-shockwave-flash\",\n    \"application/x-tar\",\n    \"application/x-www-form-urlencoded\",\n    \"application/xhtml+xml\",\n    \"application/xml\",\n    \"application/xrd+xml\",\n    \"application/zip\",\n    \"audio/*\",\n    \"audio/mp4\",\n    \"audio/mpeg\",\n    \"audio/ogg\",\n    \"audio/webm\",\n    \"image/*\",\n    \"image/bmp\",\n    \"image/gif\",\n    \"image/jpeg\",\n    \"image/png\",\n    \"image/svg+xml\",\n    \"image/tiff\",\n    \"image/vnd.adobe.photoshop\",\n    \"image/vnd.microsoft.icon\",\n    \"image/webp\",\n    \"image/x-canon-crw\",\n    \"text/*\",\n    \"text/cache-manifest\",\n    \"text/calendar\",\n    \"text/css\",\n    \"text/csv\",\n    \"text/html\",\n    \"text/javascript\",\n    \"text/plain\",\n    \"text/tab-separated-values\",\n    \"text/vcard\",\n    \"text/vnd.wap.wml\",\n    \"text/xml\",\n    \"video/*\",\n    \"video/mp4\",\n    \"video/mpeg\",\n    \"video/ogg\",\n    \"video/quicktime\",\n    \"video/webm\",\n    \"video/x-ms-wmv\"\n]\n```\n"},"comment":{"url":"https://api.github.com/repos/RepreZen/SwagEdit/issues/comments/258872743","html_url":"https://github.com/RepreZen/SwagEdit/issues/196#issuecomment-258872743","issue_url":"https://api.github.com/repos/RepreZen/SwagEdit/issues/196","id":258872743,"user":{"login":"ghillairet","id":148045,"avatar_url":"https://avatars.githubusercontent.com/u/148045?v=3","gravatar_id":"","url":"https://api.github.com/users/ghillairet","html_url":"https://github.com/ghillairet","followers_url":"https://api.github.com/users/ghillairet/followers","following_url":"https://api.github.com/users/ghillairet/following{/other_user}","gists_url":"https://api.github.com/users/ghillairet/gists{/gist_id}","starred_url":"https://api.github.com/users/ghillairet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghillairet/subscriptions","organizations_url":"https://api.github.com/users/ghillairet/orgs","repos_url":"https://api.github.com/users/ghillairet/repos","events_url":"https://api.github.com/users/ghillairet/events{/privacy}","received_events_url":"https://api.github.com/users/ghillairet/received_events","type":"User","site_admin":false},"created_at":"2016-11-07T15:49:49Z","updated_at":"2016-11-07T15:49:49Z","body":"See PR #245 "}}
{"actor":{"display_login":"ghillairet"}}