{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/452","labels_url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/452/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/452/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/452/events","html_url":"https://github.com/swagger-api/swagger-editor/issues/452","id":78008487,"number":452,"title":"Examples in response object lead to an error","user":{"login":"kbiger","id":1651744,"avatar_url":"https://avatars.githubusercontent.com/u/1651744?v=3","gravatar_id":"","url":"https://api.github.com/users/kbiger","html_url":"https://github.com/kbiger","followers_url":"https://api.github.com/users/kbiger/followers","following_url":"https://api.github.com/users/kbiger/following{/other_user}","gists_url":"https://api.github.com/users/kbiger/gists{/gist_id}","starred_url":"https://api.github.com/users/kbiger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbiger/subscriptions","organizations_url":"https://api.github.com/users/kbiger/orgs","repos_url":"https://api.github.com/users/kbiger/repos","events_url":"https://api.github.com/users/kbiger/events{/privacy}","received_events_url":"https://api.github.com/users/kbiger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-05-19T09:20:22Z","updated_at":"2015-05-19T16:20:55Z","closed_at":null,"body":"If we look at swagger spec here https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#response-object\r\nResponse object contains an \"examples\" object, but swagger-editor does not accept this object. Swagger-editor waits for \"examples\" object in the \"schema\" object under the \"response\".\r\n\r\nIn fact Swagger-ui is conform to swagger spec, wich create some mistakes and confusions.\r\nWith this issue, if we want to use \"examples\" object in responses, we have to deal with a weird choice: have an error in editor or have the examples object hidden in swagger-ui. \r\n\r\nCould you please make editor conform to swagger spec?\r\n\r\nEditor waits for :\r\n```yaml\r\n- responses:\r\n  - \"201\":\r\n    - description: \"\"\r\n    - schema : \r\n      - $ref: \"#/definitions/Response\"\r\n      - examples:\r\n        - { }\r\n```\r\n\r\nUI (and swagger spec) waits for :\r\n```yaml\r\n- responses:\r\n  - \"201\":\r\n    - description: \"\"\r\n    - schema :\r\n      - $ref: \"#/definitions/Response\"\r\n    - examples:\r\n      - {}\r\n```"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/comments/103576280","html_url":"https://github.com/swagger-api/swagger-editor/issues/452#issuecomment-103576280","issue_url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/452","id":103576280,"user":{"login":"kbiger","id":1651744,"avatar_url":"https://avatars.githubusercontent.com/u/1651744?v=3","gravatar_id":"","url":"https://api.github.com/users/kbiger","html_url":"https://github.com/kbiger","followers_url":"https://api.github.com/users/kbiger/followers","following_url":"https://api.github.com/users/kbiger/following{/other_user}","gists_url":"https://api.github.com/users/kbiger/gists{/gist_id}","starred_url":"https://api.github.com/users/kbiger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbiger/subscriptions","organizations_url":"https://api.github.com/users/kbiger/orgs","repos_url":"https://api.github.com/users/kbiger/repos","events_url":"https://api.github.com/users/kbiger/events{/privacy}","received_events_url":"https://api.github.com/users/kbiger/received_events","type":"User","site_admin":false},"created_at":"2015-05-19T16:20:55Z","updated_at":"2015-05-19T16:20:55Z","body":"```yaml\r\nresponses:\r\n  201:\r\n    description: \"\"\r\n    schema :\r\n      $ref: \"#/definitions/Response\"\r\n    examples: |\r\n      {\r\n        \"foo\" : \"bar\"\r\n      }\r\n```\r\nThis does not work with both editors (online and ours). I'm sorry "}}