{"action":"created","issue":{"url":"https://api.github.com/repos/zhandao/zero-rails_openapi/issues/23","repository_url":"https://api.github.com/repos/zhandao/zero-rails_openapi","labels_url":"https://api.github.com/repos/zhandao/zero-rails_openapi/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/zhandao/zero-rails_openapi/issues/23/comments","events_url":"https://api.github.com/repos/zhandao/zero-rails_openapi/issues/23/events","html_url":"https://github.com/zhandao/zero-rails_openapi/issues/23","id":335714470,"node_id":"MDU6SXNzdWUzMzU3MTQ0NzA=","number":23,"title":"operationID not unique","user":{"login":"barnaclebarnes","id":10322,"node_id":"MDQ6VXNlcjEwMzIy","avatar_url":"https://avatars3.githubusercontent.com/u/10322?v=4","gravatar_id":"","url":"https://api.github.com/users/barnaclebarnes","html_url":"https://github.com/barnaclebarnes","followers_url":"https://api.github.com/users/barnaclebarnes/followers","following_url":"https://api.github.com/users/barnaclebarnes/following{/other_user}","gists_url":"https://api.github.com/users/barnaclebarnes/gists{/gist_id}","starred_url":"https://api.github.com/users/barnaclebarnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barnaclebarnes/subscriptions","organizations_url":"https://api.github.com/users/barnaclebarnes/orgs","repos_url":"https://api.github.com/users/barnaclebarnes/repos","events_url":"https://api.github.com/users/barnaclebarnes/events{/privacy}","received_events_url":"https://api.github.com/users/barnaclebarnes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-26T08:37:32Z","updated_at":"2018-06-26T10:33:48Z","closed_at":null,"author_association":"NONE","body":"The `operationId` being output is currently the [action name](https://github.com/zhandao/zero-rails_openapi/blob/57d12c3fed19f6712f695d1644a9039a0992105a/lib/open_api/dsl.rb#L44) of the controller. [According to the docs](https://github.com/OAI/OpenAPI-Specification/blob/OpenAPI.next/versions/3.0.0.md#documentStructure):\r\n\r\n\"operationId: string - Unique string used to identify the operation. The id MUST be unique among all operations described in the API. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is RECOMMENDED to follow common programming naming conventions.\"\r\n\r\nAs multiple controllers may have  `index`, `show` methods, etc. then this outputs duplicate `operationID`'s. It would be good if:\r\n\r\n1. The default was `#{controller_name}_#{action}`\r\n2. You could set this in the `api` call\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/zhandao/zero-rails_openapi/issues/comments/400261216","html_url":"https://github.com/zhandao/zero-rails_openapi/issues/23#issuecomment-400261216","issue_url":"https://api.github.com/repos/zhandao/zero-rails_openapi/issues/23","id":400261216,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDI2MTIxNg==","user":{"login":"zhandao","id":24402029,"node_id":"MDQ6VXNlcjI0NDAyMDI5","avatar_url":"https://avatars0.githubusercontent.com/u/24402029?v=4","gravatar_id":"","url":"https://api.github.com/users/zhandao","html_url":"https://github.com/zhandao","followers_url":"https://api.github.com/users/zhandao/followers","following_url":"https://api.github.com/users/zhandao/following{/other_user}","gists_url":"https://api.github.com/users/zhandao/gists{/gist_id}","starred_url":"https://api.github.com/users/zhandao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhandao/subscriptions","organizations_url":"https://api.github.com/users/zhandao/orgs","repos_url":"https://api.github.com/users/zhandao/repos","events_url":"https://api.github.com/users/zhandao/events{/privacy}","received_events_url":"https://api.github.com/users/zhandao/received_events","type":"User","site_admin":false},"created_at":"2018-06-26T10:33:48Z","updated_at":"2018-06-26T10:33:48Z","author_association":"OWNER","body":"You're right, I will consider that."}}
{"actor":{"display_login":"zhandao"}}