{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/1139","repository_url":"https://api.github.com/repos/swagger-api/swagger-editor","labels_url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/1139/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/1139/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/1139/events","html_url":"https://github.com/swagger-api/swagger-editor/issues/1139","id":196881993,"number":1139,"title":"force user to write his error codes in a referenced way","user":{"login":"michel19","id":22938213,"avatar_url":"https://avatars.githubusercontent.com/u/22938213?v=3","gravatar_id":"","url":"https://api.github.com/users/michel19","html_url":"https://github.com/michel19","followers_url":"https://api.github.com/users/michel19/followers","following_url":"https://api.github.com/users/michel19/following{/other_user}","gists_url":"https://api.github.com/users/michel19/gists{/gist_id}","starred_url":"https://api.github.com/users/michel19/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michel19/subscriptions","organizations_url":"https://api.github.com/users/michel19/orgs","repos_url":"https://api.github.com/users/michel19/repos","events_url":"https://api.github.com/users/michel19/events{/privacy}","received_events_url":"https://api.github.com/users/michel19/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-21T09:16:46Z","updated_at":"2016-12-23T09:22:03Z","closed_at":null,"body":"i need the user to write his error codes in this way only:\r\n```\r\nErrorModel: \r\n      required: [ code, message],\r\n      properties: \r\n        code: \r\n          type: integer,\r\n          format: int32\r\n        ,\r\n        message: \r\n          type: string\r\n```\r\nAnd not this way :\r\n` \"404\":\r\n          description: User not found`\r\nWhat should i change and where?"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/comments/268961829","html_url":"https://github.com/swagger-api/swagger-editor/issues/1139#issuecomment-268961829","issue_url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/1139","id":268961829,"user":{"login":"michel19","id":22938213,"avatar_url":"https://avatars.githubusercontent.com/u/22938213?v=3","gravatar_id":"","url":"https://api.github.com/users/michel19","html_url":"https://github.com/michel19","followers_url":"https://api.github.com/users/michel19/followers","following_url":"https://api.github.com/users/michel19/following{/other_user}","gists_url":"https://api.github.com/users/michel19/gists{/gist_id}","starred_url":"https://api.github.com/users/michel19/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michel19/subscriptions","organizations_url":"https://api.github.com/users/michel19/orgs","repos_url":"https://api.github.com/users/michel19/repos","events_url":"https://api.github.com/users/michel19/events{/privacy}","received_events_url":"https://api.github.com/users/michel19/received_events","type":"User","site_admin":false},"created_at":"2016-12-23T09:22:03Z","updated_at":"2016-12-23T09:22:03Z","body":"the user that rights a yaml code inside the editor can even write the error codes and messages in $ref and point it to a definition so that the error messages are unified, or he can gibe it a code and a description for every API randomly. In my case, i prefer to have a unified error codes. \r\nSo i need to know where to change in the code so the user will get a syntax error in case he used the second way and gave random code errors."}}
{"actor":{"display_login":"michel19"}}