Skip to content

Commit f1a021e

Browse files
authored
Merge pull request #10324 from mway-dmueller/master
[ISSUE-10323]: Adjust api.mustache to support deprecated REST endpoin…
2 parents 510c5e2 + b6be153 commit f1a021e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/swagger-codegen/src/main/resources/dart/api.mustache

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ class {{classname}} {
1212
/// {{summary}}
1313
///
1414
/// {{notes}}
15+
{{#isDeprecated}}
16+
@deprecated
17+
{{/isDeprecated}}
1518
{{#returnType}}Future<{{{returnType}}}> {{/returnType}}{{^returnType}}Future {{/returnType}}{{nickname}}({{#allParams}}{{#required}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/required}}{{/allParams}}{{#hasOptionalParams}}{ {{#allParams}}{{^required}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/required}}{{/allParams}} }{{/hasOptionalParams}}) async {
1619
Object postBody = {{#bodyParam}}{{paramName}}{{/bodyParam}}{{^bodyParam}}null{{/bodyParam}};
1720

0 commit comments

Comments
 (0)