Skip to content

Commit 3bc210d

Browse files
fix: fix bug #49
1 parent ae885bc commit 3bc210d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/modern-badgers-dress.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'openapi-ts-request': patch
3+
---
4+
5+
fix: fix bug #49

templates/serviceController.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export async function {{ api.functionName }}(
4141
{% if prop.schema.description -%}
4242
/** {{ prop.schema.description }} */
4343
{% endif -%}
44-
{{ prop.key }}{{ "?" if not prop.schema.required }}: {{ prop.schema.type }},
44+
'{{ prop.key }}'{{ "?" if not prop.schema.required }}: {{ prop.schema.type }},
4545
{%- endfor %}
4646
}
4747
{%- else -%}

0 commit comments

Comments
 (0)