{"action":"created","issue":{"url":"https://api.github.com/repos/zircote/swagger-php/issues/552","repository_url":"https://api.github.com/repos/zircote/swagger-php","labels_url":"https://api.github.com/repos/zircote/swagger-php/issues/552/labels{/name}","comments_url":"https://api.github.com/repos/zircote/swagger-php/issues/552/comments","events_url":"https://api.github.com/repos/zircote/swagger-php/issues/552/events","html_url":"https://github.com/zircote/swagger-php/issues/552","id":341793114,"node_id":"MDU6SXNzdWUzNDE3OTMxMTQ=","number":552,"title":"Swagger ui global response content type","user":{"login":"verschoof","id":1527863,"node_id":"MDQ6VXNlcjE1Mjc4NjM=","avatar_url":"https://avatars2.githubusercontent.com/u/1527863?v=4","gravatar_id":"","url":"https://api.github.com/users/verschoof","html_url":"https://github.com/verschoof","followers_url":"https://api.github.com/users/verschoof/followers","following_url":"https://api.github.com/users/verschoof/following{/other_user}","gists_url":"https://api.github.com/users/verschoof/gists{/gist_id}","starred_url":"https://api.github.com/users/verschoof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/verschoof/subscriptions","organizations_url":"https://api.github.com/users/verschoof/orgs","repos_url":"https://api.github.com/users/verschoof/repos","events_url":"https://api.github.com/users/verschoof/events{/privacy}","received_events_url":"https://api.github.com/users/verschoof/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-07-17T07:12:05Z","updated_at":"2018-08-03T09:50:47Z","closed_at":"2018-08-03T09:50:47Z","author_association":"NONE","body":"When I look at; https://petstore.swagger.io/#/pet/getPetById\r\nAt the right top I can select what kind of response content type I want.\r\n\r\nHow to do this in Swagger PHP?\r\n\r\nI noticed when I use the `MediaType` the `$mediaType` is required, I could not find this back in the specs, but I think when you have a `MediaType` to a `MediaType` swagger-ui will render a little box above the reponse.\r\n\r\nPet Store: (notice the right top corner)\r\n<img width=\"1432\" alt=\"screen shot 2018-07-17 at 09 04 21\" src=\"https://user-images.githubusercontent.com/1527863/42801739-e533794a-89a0-11e8-9695-0e18aa886987.png\">\r\n\r\nOwn example: (notice the select input near the response)\r\n<img width=\"1427\" alt=\"screen shot 2018-07-17 at 09 07 34\" src=\"https://user-images.githubusercontent.com/1527863/42801740-e5514628-89a0-11e8-95f5-3fbc0c47c3c1.png\">\r\n\r\nWhen I inspect the pet store json I notice they got a key `produces`:\r\n<img width=\"593\" alt=\"screen shot 2018-07-17 at 09 10 26\" src=\"https://user-images.githubusercontent.com/1527863/42801888-6885237a-89a1-11e8-8d87-e20bd51cbab3.png\">\r\n"},"comment":{"url":"https://api.github.com/repos/zircote/swagger-php/issues/comments/410204777","html_url":"https://github.com/zircote/swagger-php/issues/552#issuecomment-410204777","issue_url":"https://api.github.com/repos/zircote/swagger-php/issues/552","id":410204777,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDIwNDc3Nw==","user":{"login":"verschoof","id":1527863,"node_id":"MDQ6VXNlcjE1Mjc4NjM=","avatar_url":"https://avatars2.githubusercontent.com/u/1527863?v=4","gravatar_id":"","url":"https://api.github.com/users/verschoof","html_url":"https://github.com/verschoof","followers_url":"https://api.github.com/users/verschoof/followers","following_url":"https://api.github.com/users/verschoof/following{/other_user}","gists_url":"https://api.github.com/users/verschoof/gists{/gist_id}","starred_url":"https://api.github.com/users/verschoof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/verschoof/subscriptions","organizations_url":"https://api.github.com/users/verschoof/orgs","repos_url":"https://api.github.com/users/verschoof/repos","events_url":"https://api.github.com/users/verschoof/events{/privacy}","received_events_url":"https://api.github.com/users/verschoof/received_events","type":"User","site_admin":false},"created_at":"2018-08-03T09:50:47Z","updated_at":"2018-08-03T09:50:47Z","author_association":"NONE","body":"Ok thanks, I will wait for that! :)"}}
{"actor":{"display_login":"verschoof"}}