Skip to content

Commit 680078d

Browse files
committed
fix csharp refer to apiinvoker
1 parent a593271 commit 680078d

File tree

43 files changed

+5036
-5744
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+5036
-5744
lines changed

bin/all-petstore.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ cd $APP_DIR
2525
./bin/jaxrs-petstore-server.sh
2626
./bin/java-petstore.sh
2727
./bin/qt5-petstore.sh
28+
./bin/perl-petstore.sh
2829
./bin/php-petstore.sh
2930
./bin/python-petstore.sh
3031
./bin/retrofit-petstore.sh

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ namespace {{package}} {
164164
if (((int)response.StatusCode) >= 400) {
165165
throw new ApiException ((int)response.StatusCode, "Error calling {{nickname}}: " + response.Content, response.Content);
166166
}
167-
{{#returnType}}return ({{{returnType}}}) ApiInvoker.Deserialize(response.Content, typeof({{{returnType}}}));{{/returnType}}{{^returnType}}
167+
{{#returnType}}return ({{{returnType}}}) apiClient.Deserialize(response.Content, typeof({{{returnType}}}));{{/returnType}}{{^returnType}}
168168
return;{{/returnType}}
169169
}
170170
{{/operation}}

0 commit comments

Comments
 (0)