{"action":"closed","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/8339","repository_url":"https://api.github.com/repos/swagger-api/swagger-codegen","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/8339/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/8339/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/8339/events","html_url":"https://github.com/swagger-api/swagger-codegen/issues/8339","id":333986153,"node_id":"MDU6SXNzdWUzMzM5ODYxNTM=","number":8339,"title":"[typescript-angular] QueryParameter with a Default Value/single value enum is not handled in the generated Typescript method","user":{"login":"kunal-pmj","id":20678522,"node_id":"MDQ6VXNlcjIwNjc4NTIy","avatar_url":"https://avatars0.githubusercontent.com/u/20678522?v=4","gravatar_id":"","url":"https://api.github.com/users/kunal-pmj","html_url":"https://github.com/kunal-pmj","followers_url":"https://api.github.com/users/kunal-pmj/followers","following_url":"https://api.github.com/users/kunal-pmj/following{/other_user}","gists_url":"https://api.github.com/users/kunal-pmj/gists{/gist_id}","starred_url":"https://api.github.com/users/kunal-pmj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kunal-pmj/subscriptions","organizations_url":"https://api.github.com/users/kunal-pmj/orgs","repos_url":"https://api.github.com/users/kunal-pmj/repos","events_url":"https://api.github.com/users/kunal-pmj/events{/privacy}","received_events_url":"https://api.github.com/users/kunal-pmj/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-06-20T09:03:07Z","updated_at":"2018-08-20T05:13:59Z","closed_at":"2018-08-20T05:13:59Z","author_association":"CONTRIBUTOR","body":"##### Description\r\n\r\nConstant Values for the QueryParameter are not taken into account while generating the TypeScript Code\r\n\r\n##### Swagger-codegen version\r\n\r\nSwagger Code Gen Cli 2.3.1\r\n\r\n##### Swagger declaration file content or url\r\n\r\nhttps://gist.github.com/kunal-pmj/2ac190b160382093893c036dfc313c30\r\n\r\n##### Command line used for generation\r\n\r\njava -jar swagger-codegen-cli.jar generate -i test.json -l typescript-angular -o test-api \r\n\r\n##### Steps to reproduce\r\nPretty Strainght Forward\r\nUse the Swagger JSON file to generate typescript-angular SDK. The productdetails.service.ts \r\nfile does not handle the Query parameters's Constant Value \r\n\r\n##### Related issues/PRs\r\n\r\n##### Suggest a fix/enhancement\r\nHandle the Constant QueryParameter Value in the generate ts library. The only value that can be set to this parameter is the one defined in the enum\r\n\r\n\r\n"}}
{"actor":{"display_login":"kunal-pmj"}}