mirror of
https://github.com/ferdikoomen/openapi-typescript-codegen.git
synced 2025-12-08 20:16:21 +00:00
Correctly document params when useOptions is set
This commit is contained in:
parent
113dd23687
commit
64624b240a
@ -23,11 +23,13 @@ export class {{{name}}} {
|
||||
{{#if description}}
|
||||
* {{{description}}}
|
||||
{{/if}}
|
||||
{{#if parameters}}
|
||||
{{#each parameters}}
|
||||
* @param {{{name}}} {{{description}}}
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
{{#unless @root.useOptions}}
|
||||
{{#if parameters}}
|
||||
{{#each parameters}}
|
||||
* @param {{{name}}} {{{description}}}
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
{{/unless}}
|
||||
{{#each results}}
|
||||
* @result {{{type}}} {{{description}}}
|
||||
{{/each}}
|
||||
|
||||
@ -6,6 +6,7 @@
|
||||
{{/each}}
|
||||
}: {
|
||||
{{#each parameters}}
|
||||
/** {{{description}}} */
|
||||
{{{name}}}{{>isRequired}}: {{>type}},
|
||||
{{/each}}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user