{"action":"opened","issue":{"url":"https://api.github.com/repos/aws/aws-cli/issues/1696","labels_url":"https://api.github.com/repos/aws/aws-cli/issues/1696/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-cli/issues/1696/comments","events_url":"https://api.github.com/repos/aws/aws-cli/issues/1696/events","html_url":"https://github.com/aws/aws-cli/issues/1696","id":124140032,"number":1696,"title":"Shorthand parser does not handle '/', which apigateway documentation suggests is allowed","user":{"login":"abstrctn","id":677570,"avatar_url":"https://avatars.githubusercontent.com/u/677570?v=3","gravatar_id":"","url":"https://api.github.com/users/abstrctn","html_url":"https://github.com/abstrctn","followers_url":"https://api.github.com/users/abstrctn/followers","following_url":"https://api.github.com/users/abstrctn/following{/other_user}","gists_url":"https://api.github.com/users/abstrctn/gists{/gist_id}","starred_url":"https://api.github.com/users/abstrctn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abstrctn/subscriptions","organizations_url":"https://api.github.com/users/abstrctn/orgs","repos_url":"https://api.github.com/users/abstrctn/repos","events_url":"https://api.github.com/users/abstrctn/events{/privacy}","received_events_url":"https://api.github.com/users/abstrctn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-28T23:19:39Z","updated_at":"2015-12-28T23:19:39Z","closed_at":null,"body":"The API documentation for [`aws apigateway put-method`](http://docs.aws.amazon.com/cli/latest/reference/apigateway/put-method.html) suggests that using shorthand syntax is allowed for the `--request-models` parameter. The schema for this parameter is described as follows:\r\n\r\n> Request models are represented as a key/value map, with a content type as the key and a Model name as the value\r\n\r\nBecause the key in this case is a content type such as `application/json`, I think it seems reasonable to expect that the shorthand syntax will work with the following:\r\n\r\n```bash\r\naws apigateway put-method \\\r\n  --rest-api-id \"$api_id\" \\\r\n  --resource-id \"$resource_id\" \\\r\n  --http-method POST \\\r\n  --authorization-type NONE \\\r\n  --request-models \"application/json=Hookshot\"\r\n```\r\n\r\nHowever, this results in the following error:\r\n\r\n```bash\r\nError parsing parameter '--request-models': Expected: '=', received: '/' for input:\r\napplication/json=Hookshot\r\n           ^\r\n```\r\n\r\nLooking at the shorthand parser, the error makes sense, as `/` doesn't appear to be an allowed character. Should it be? If not, it should the documentation be updated to not suggest using the shorthand syntax, given that it will pretty much be impossible to use for any content type?\r\n\r\nThanks!"}}