{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/2058","repository_url":"https://api.github.com/repos/swagger-api/swagger-ui","labels_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/2058/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/2058/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/2058/events","html_url":"https://github.com/swagger-api/swagger-ui/issues/2058","id":143053499,"number":2058,"title":"Incorrect escaping of double quotes","user":{"login":"tjwise","id":1427419,"avatar_url":"https://avatars.githubusercontent.com/u/1427419?v=3","gravatar_id":"","url":"https://api.github.com/users/tjwise","html_url":"https://github.com/tjwise","followers_url":"https://api.github.com/users/tjwise/followers","following_url":"https://api.github.com/users/tjwise/following{/other_user}","gists_url":"https://api.github.com/users/tjwise/gists{/gist_id}","starred_url":"https://api.github.com/users/tjwise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjwise/subscriptions","organizations_url":"https://api.github.com/users/tjwise/orgs","repos_url":"https://api.github.com/users/tjwise/repos","events_url":"https://api.github.com/users/tjwise/events{/privacy}","received_events_url":"https://api.github.com/users/tjwise/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-03-23T19:11:45Z","updated_at":"2016-06-28T15:48:28Z","closed_at":"2016-06-16T21:54:56Z","body":"Using swagger.ui v2.1.4, And I have a service that POSTs one JSON string parameter.  Any double quote marks in that string gets escaped, and sent literally to the service, causing a parsing error.  That is, I enter in Swagger.ui Value field\r\n\r\n{\"Name\":\"Tom West\", \"City\": \"Boston\"}\r\n\r\nBoth request and response content type are application/json.  However, what gets sent to the service is:\r\n\r\n{\\\"Name\\\":\\\"Tom West\\\", \\\"City\\\": \\\"Boston\\\"}\r\n\r\nThe curl command shows similarly:\r\n\r\ncurl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '\"{\\\"Name\\\":\\\"Tom West\\\", \\\"City\\\": \\\"Boston\\\"}\"' 'http://localhost:9000/service-under-test'\r\n\r\nNotice that the entire string is enclosed in single and double quotes.  I can copy and strip the backslashes from the string, and the opening/closing double quote, and it will work correctly.\r\n\r\nI'm running on Win 10.  The copy/paste of the curl fails with git-bash."},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/comments/229092024","html_url":"https://github.com/swagger-api/swagger-ui/issues/2058#issuecomment-229092024","issue_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/2058","id":229092024,"user":{"login":"tjwise","id":1427419,"avatar_url":"https://avatars.githubusercontent.com/u/1427419?v=3","gravatar_id":"","url":"https://api.github.com/users/tjwise","html_url":"https://github.com/tjwise","followers_url":"https://api.github.com/users/tjwise/followers","following_url":"https://api.github.com/users/tjwise/following{/other_user}","gists_url":"https://api.github.com/users/tjwise/gists{/gist_id}","starred_url":"https://api.github.com/users/tjwise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjwise/subscriptions","organizations_url":"https://api.github.com/users/tjwise/orgs","repos_url":"https://api.github.com/users/tjwise/repos","events_url":"https://api.github.com/users/tjwise/events{/privacy}","received_events_url":"https://api.github.com/users/tjwise/received_events","type":"User","site_admin":false},"created_at":"2016-06-28T15:48:28Z","updated_at":"2016-06-28T15:48:28Z","body":"Thanks for your reply on June 16.  You indicate that I need to change my schema type - what is the proper annotation to accomplish that?  My spec is generated by the swagger-maven-plugin.  I must simply be missing it in the docs...."}}
{"actor":{"display_login":"tjwise"}}