{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/5558","repository_url":"https://api.github.com/repos/swagger-api/swagger-codegen","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/5558/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/5558/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/5558/events","html_url":"https://github.com/swagger-api/swagger-codegen/issues/5558","id":226324034,"number":5558,"title":"[HTML2] Curl example copies HTTP verb(GET/POST) in lower case in Firefox","user":{"login":"svarogg","id":2129610,"avatar_url":"https://avatars1.githubusercontent.com/u/2129610?v=3","gravatar_id":"","url":"https://api.github.com/users/svarogg","html_url":"https://github.com/svarogg","followers_url":"https://api.github.com/users/svarogg/followers","following_url":"https://api.github.com/users/svarogg/following{/other_user}","gists_url":"https://api.github.com/users/svarogg/gists{/gist_id}","starred_url":"https://api.github.com/users/svarogg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svarogg/subscriptions","organizations_url":"https://api.github.com/users/svarogg/orgs","repos_url":"https://api.github.com/users/svarogg/repos","events_url":"https://api.github.com/users/svarogg/events{/privacy}","received_events_url":"https://api.github.com/users/svarogg/received_events","type":"User","site_admin":false},"labels":[{"id":160492265,"url":"https://api.github.com/repos/swagger-api/swagger-codegen/labels/Client:%20HTML","name":"Client: HTML","color":"fad8c7","default":false},{"id":410527196,"url":"https://api.github.com/repos/swagger-api/swagger-codegen/labels/Issue:%20Platform","name":"Issue: Platform","color":"e11d21","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/milestones/14","html_url":"https://github.com/swagger-api/swagger-codegen/milestone/14","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/milestones/14/labels","id":2318070,"number":14,"title":"v2.2.3","description":"","creator":{"login":"wing328","id":934260,"avatar_url":"https://avatars1.githubusercontent.com/u/934260?v=3","gravatar_id":"","url":"https://api.github.com/users/wing328","html_url":"https://github.com/wing328","followers_url":"https://api.github.com/users/wing328/followers","following_url":"https://api.github.com/users/wing328/following{/other_user}","gists_url":"https://api.github.com/users/wing328/gists{/gist_id}","starred_url":"https://api.github.com/users/wing328/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wing328/subscriptions","organizations_url":"https://api.github.com/users/wing328/orgs","repos_url":"https://api.github.com/users/wing328/repos","events_url":"https://api.github.com/users/wing328/events{/privacy}","received_events_url":"https://api.github.com/users/wing328/received_events","type":"User","site_admin":false},"open_issues":267,"closed_issues":430,"state":"open","created_at":"2017-02-13T09:01:07Z","updated_at":"2017-05-08T19:54:09Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2017-05-04T15:42:47Z","updated_at":"2017-05-09T06:53:01Z","closed_at":null,"body":"##### Description\r\n\r\nThe curl example shows i.e. `curl -X GET \"http://localhost:8000/greetings/hello/{subject}\"`.\r\nHowever, if you copy it in firefox (In chromium it does not reproduce) you get `curl -X get \"http://localhost:8000/greetings/hello/{subject}\"` which fails if run from the command line.\r\n\r\nIt seems like the verb is capitalized through `text-transform: uppercase;` which does not get represented when copied from firefox.\r\n\r\n##### Swagger-codegen version\r\nv2.2.2\r\n\r\n##### Swagger declaration file content or url\r\nThis bug reproduces for any swagger file.\r\nFor example, you can use the hello-world sample from https://github.com/OAI/OpenAPI-Specification/wiki/Hello-World-Sample\r\n\r\n##### Command line used for generation\r\njava -jar /tmp/swagger-codegen-cli.jar generate -i swagger.json -l html2\r\n\r\n##### Steps to reproduce\r\n\r\n1. Create any json or yaml swagger specification\r\n2. Run the above command line to generate an index.html file\r\n3. Open said html file with Firefox\r\n4. Copy the curl sample to the clipboard, paste in terminal and run.\r\n\r\n##### Related issues\r\nFirefox bug to fix this issue upstream:\r\nhttps://bugzilla.mozilla.org/show_bug.cgi?id=35148\r\nDoesn't look like they are planning to fix it anytime soon.\r\n\r\n##### Suggest a Fix\r\nActually capitalize the http-verb instead of just the way it's displayed.\r\nIt seems like this is not possible through mustache, so maybe use a small javascript snippet to do that.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/comments/300077276","html_url":"https://github.com/swagger-api/swagger-codegen/issues/5558#issuecomment-300077276","issue_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/5558","id":300077276,"user":{"login":"svarogg","id":2129610,"avatar_url":"https://avatars1.githubusercontent.com/u/2129610?v=3","gravatar_id":"","url":"https://api.github.com/users/svarogg","html_url":"https://github.com/svarogg","followers_url":"https://api.github.com/users/svarogg/followers","following_url":"https://api.github.com/users/svarogg/following{/other_user}","gists_url":"https://api.github.com/users/svarogg/gists{/gist_id}","starred_url":"https://api.github.com/users/svarogg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svarogg/subscriptions","organizations_url":"https://api.github.com/users/svarogg/orgs","repos_url":"https://api.github.com/users/svarogg/repos","events_url":"https://api.github.com/users/svarogg/events{/privacy}","received_events_url":"https://api.github.com/users/svarogg/received_events","type":"User","site_admin":false},"created_at":"2017-05-09T06:53:01Z","updated_at":"2017-05-09T06:53:01Z","body":"I see that currently  it's converted to lower-case specifically:\r\nhttps://github.com/swagger-api/swagger-codegen/blame/7fc8b2400149d21d36663b310651665f42b11de5/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/StaticHtml2Generator.java#L99\r\nIs there any reason for this?\r\n\r\nIf not I guess I can flip it to .toUpperCase and see what it does."}}
{"actor":{"display_login":"svarogg"}}