{"action":"created","issue":{"url":"https://api.github.com/repos/Mermade/oas-kit/issues/86","repository_url":"https://api.github.com/repos/Mermade/oas-kit","labels_url":"https://api.github.com/repos/Mermade/oas-kit/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/Mermade/oas-kit/issues/86/comments","events_url":"https://api.github.com/repos/Mermade/oas-kit/issues/86/events","html_url":"https://github.com/Mermade/oas-kit/issues/86","id":356763156,"node_id":"MDU6SXNzdWUzNTY3NjMxNTY=","number":86,"title":"swagger2openapi {host+scheme} -> {url} adds a slash that shouldn't be there","user":{"login":"grantila","id":5362579,"node_id":"MDQ6VXNlcjUzNjI1Nzk=","avatar_url":"https://avatars3.githubusercontent.com/u/5362579?v=4","gravatar_id":"","url":"https://api.github.com/users/grantila","html_url":"https://github.com/grantila","followers_url":"https://api.github.com/users/grantila/followers","following_url":"https://api.github.com/users/grantila/following{/other_user}","gists_url":"https://api.github.com/users/grantila/gists{/gist_id}","starred_url":"https://api.github.com/users/grantila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grantila/subscriptions","organizations_url":"https://api.github.com/users/grantila/orgs","repos_url":"https://api.github.com/users/grantila/repos","events_url":"https://api.github.com/users/grantila/events{/privacy}","received_events_url":"https://api.github.com/users/grantila/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-09-04T11:14:52Z","updated_at":"2018-09-21T11:27:59Z","closed_at":"2018-09-21T11:27:59Z","author_association":"NONE","body":"Upgrading from Swagger 2 to OpenAPI 3 (using swagger2openapi) converts {host, scheme} to a url with ending slash.\r\n\r\n### Checklist\r\n\r\n- [ ] Conversion: I have checked my source definition is valid OpenAPI 2.0\r\n- [ ] Conversion: On valid OpenAPI 2.0 input, the conversion looks wrong\r\n- [ ] Linting issue\r\n\r\nWhen linting the resulting OpenAPI3 against `speccy` it complains about a trailing slash.\r\n\r\nProbably the end of the line [index.js:1284](https://github.com/Mermade/oas-kit/blob/master/packages/swagger2openapi/index.js#L1284) should not else to `'/'` but `''`\r\nThis is also aligned with https://swagger.io/docs/specification/api-host-and-base-path/"},"comment":{"url":"https://api.github.com/repos/Mermade/oas-kit/issues/comments/423500674","html_url":"https://github.com/Mermade/oas-kit/issues/86#issuecomment-423500674","issue_url":"https://api.github.com/repos/Mermade/oas-kit/issues/86","id":423500674,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzUwMDY3NA==","user":{"login":"MikeRalphson","id":21603,"node_id":"MDQ6VXNlcjIxNjAz","avatar_url":"https://avatars0.githubusercontent.com/u/21603?v=4","gravatar_id":"","url":"https://api.github.com/users/MikeRalphson","html_url":"https://github.com/MikeRalphson","followers_url":"https://api.github.com/users/MikeRalphson/followers","following_url":"https://api.github.com/users/MikeRalphson/following{/other_user}","gists_url":"https://api.github.com/users/MikeRalphson/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeRalphson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeRalphson/subscriptions","organizations_url":"https://api.github.com/users/MikeRalphson/orgs","repos_url":"https://api.github.com/users/MikeRalphson/repos","events_url":"https://api.github.com/users/MikeRalphson/events{/privacy}","received_events_url":"https://api.github.com/users/MikeRalphson/received_events","type":"User","site_admin":false},"created_at":"2018-09-21T11:27:59Z","updated_at":"2018-09-21T11:27:59Z","author_association":"CONTRIBUTOR","body":"Fixed in swagger2openapi@3.2.9"}}
{"actor":{"display_login":"MikeRalphson"}}