{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/autorest.typescript/issues/198","repository_url":"https://api.github.com/repos/Azure/autorest.typescript","labels_url":"https://api.github.com/repos/Azure/autorest.typescript/issues/198/labels{/name}","comments_url":"https://api.github.com/repos/Azure/autorest.typescript/issues/198/comments","events_url":"https://api.github.com/repos/Azure/autorest.typescript/issues/198/events","html_url":"https://github.com/Azure/autorest.typescript/issues/198","id":339625340,"node_id":"MDU6SXNzdWUzMzk2MjUzNDA=","number":198,"title":"Generate code on \"/swagger/v1/docs\" endpoint","user":{"login":"felpel","id":5000004,"node_id":"MDQ6VXNlcjUwMDAwMDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/5000004?v=4","gravatar_id":"","url":"https://api.github.com/users/felpel","html_url":"https://github.com/felpel","followers_url":"https://api.github.com/users/felpel/followers","following_url":"https://api.github.com/users/felpel/following{/other_user}","gists_url":"https://api.github.com/users/felpel/gists{/gist_id}","starred_url":"https://api.github.com/users/felpel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felpel/subscriptions","organizations_url":"https://api.github.com/users/felpel/orgs","repos_url":"https://api.github.com/users/felpel/repos","events_url":"https://api.github.com/users/felpel/events{/privacy}","received_events_url":"https://api.github.com/users/felpel/received_events","type":"User","site_admin":false},"labels":[{"id":954417844,"node_id":"MDU6TGFiZWw5NTQ0MTc4NDQ=","url":"https://api.github.com/repos/Azure/autorest.typescript/labels/customer-reported","name":"customer-reported","color":"3800e0","default":false}],"state":"open","locked":false,"assignee":{"login":"RikkiGibson","id":5833655,"node_id":"MDQ6VXNlcjU4MzM2NTU=","avatar_url":"https://avatars2.githubusercontent.com/u/5833655?v=4","gravatar_id":"","url":"https://api.github.com/users/RikkiGibson","html_url":"https://github.com/RikkiGibson","followers_url":"https://api.github.com/users/RikkiGibson/followers","following_url":"https://api.github.com/users/RikkiGibson/following{/other_user}","gists_url":"https://api.github.com/users/RikkiGibson/gists{/gist_id}","starred_url":"https://api.github.com/users/RikkiGibson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RikkiGibson/subscriptions","organizations_url":"https://api.github.com/users/RikkiGibson/orgs","repos_url":"https://api.github.com/users/RikkiGibson/repos","events_url":"https://api.github.com/users/RikkiGibson/events{/privacy}","received_events_url":"https://api.github.com/users/RikkiGibson/received_events","type":"User","site_admin":false},"assignees":[{"login":"RikkiGibson","id":5833655,"node_id":"MDQ6VXNlcjU4MzM2NTU=","avatar_url":"https://avatars2.githubusercontent.com/u/5833655?v=4","gravatar_id":"","url":"https://api.github.com/users/RikkiGibson","html_url":"https://github.com/RikkiGibson","followers_url":"https://api.github.com/users/RikkiGibson/followers","following_url":"https://api.github.com/users/RikkiGibson/following{/other_user}","gists_url":"https://api.github.com/users/RikkiGibson/gists{/gist_id}","starred_url":"https://api.github.com/users/RikkiGibson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RikkiGibson/subscriptions","organizations_url":"https://api.github.com/users/RikkiGibson/orgs","repos_url":"https://api.github.com/users/RikkiGibson/repos","events_url":"https://api.github.com/users/RikkiGibson/events{/privacy}","received_events_url":"https://api.github.com/users/RikkiGibson/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-07-09T22:12:54Z","updated_at":"2018-07-09T22:30:49Z","closed_at":null,"author_association":"NONE","body":"Given my backend service has a `/swagger/v1/docs` endpoint:\r\n\r\n![image](https://user-images.githubusercontent.com/5000004/42478507-f9301060-83a2-11e8-8675-3f0ab2597d73.png)\r\n\r\nWhen I try to generate the corresponding TS code, I get the following errors:\r\n```\r\nFATAL: swagger-document-override/md-override-loader - FAILED\r\nFATAL: Error: Could not read 'https://localhost:44392/swagger/docs/v1'.\r\nFATAL: swagger-document/loader - FAILED\r\nFATAL: Error: Could not read 'https://localhost:44392/swagger/docs/v1'.\r\nProcess() cancelled due to exception : Could not read 'https://localhost:44392/swagger/docs/v1'.\r\n```\r\nThe format is fine since I'm able to generate it if I run the tool on a local file with the same content as the one provided by the endpoint. The key difference probably resides in the fact that the endpoint uses the previous Swashbuckle endpoint that was modified in its .NET core associated project to `/swagger/v1/swagger.json` (instead of `swagger/v1/docs` without the `.json` extension).\r\n\r\n`autorest --info` output:\r\n\r\n```\r\n Type       Extension Name                           Version      Location\r\n core       @microsoft.azure/autorest-core           2.0.4280     C:\\Users\\fpelletier\\.autorest\\@microsoft.azure_autorest-core@2.0.4280\r\n extension  @microsoft.azure/autorest.modeler        2.1.23       C:\\Users\\fpelletier\\.autorest\\@microsoft.azure_autorest.modeler@2.1.23\r\n extension  @microsoft.azure/autorest.typescript     2.0.304      C:\\Users\\fpelletier\\.autorest\\@microsoft.azure_autorest.typescript@2.0.304\r\n extension  @microsoft.azure/autorest.typescript     2.0.330      C:\\Users\\fpelletier\\.autorest\\@microsoft.azure_autorest.typescript@2.0.330\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Azure/autorest.typescript/issues/comments/403640725","html_url":"https://github.com/Azure/autorest.typescript/issues/198#issuecomment-403640725","issue_url":"https://api.github.com/repos/Azure/autorest.typescript/issues/198","id":403640725,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzY0MDcyNQ==","user":{"login":"RikkiGibson","id":5833655,"node_id":"MDQ6VXNlcjU4MzM2NTU=","avatar_url":"https://avatars2.githubusercontent.com/u/5833655?v=4","gravatar_id":"","url":"https://api.github.com/users/RikkiGibson","html_url":"https://github.com/RikkiGibson","followers_url":"https://api.github.com/users/RikkiGibson/followers","following_url":"https://api.github.com/users/RikkiGibson/following{/other_user}","gists_url":"https://api.github.com/users/RikkiGibson/gists{/gist_id}","starred_url":"https://api.github.com/users/RikkiGibson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RikkiGibson/subscriptions","organizations_url":"https://api.github.com/users/RikkiGibson/orgs","repos_url":"https://api.github.com/users/RikkiGibson/repos","events_url":"https://api.github.com/users/RikkiGibson/events{/privacy}","received_events_url":"https://api.github.com/users/RikkiGibson/received_events","type":"User","site_admin":false},"created_at":"2018-07-09T22:30:49Z","updated_at":"2018-07-09T22:30:49Z","author_association":"MEMBER","body":"Just to rule out the obvious, are you supposed to set the `input-file` to `'https://localhost:44392/swagger/v1/docs'`, or to `'https://localhost:44392/swagger/docs/v1'`?"}}
{"actor":{"display_login":"RikkiGibson"}}