Skip to content

Commit

Permalink
fix: parameters should be camelcase in path template function (#212)
Browse files Browse the repository at this point in the history
* parameters should be camelcase in path template function

* params in path template render are snake_case
  • Loading branch information
xiaozhenliu-gg5 authored and alexander-fenster committed Jan 24, 2020
1 parent bf9663d commit 53520fa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -582,12 +582,12 @@ export class {{ service.name }}Client {
{{ template.name.toCamelCase() }}Path(
{%- set paramJoiner = joiner() %}
{%- for param in template.params %}
{{-paramJoiner()-}}{{ param }}:string
{{-paramJoiner()-}}{{ param.toCamelCase() }}:string
{%- endfor -%}
) {
return this._pathTemplates.{{ template.name.toLowerCase() }}PathTemplate.render({
{%- for param in template.params %}
{{ param }}: {{ param }},
{{ param }}: {{ param.toCamelCase() }},
{%- endfor %}
});
}
Expand Down

0 comments on commit 53520fa

Please sign in to comment.