Skip to content

Commit e7537fe

Browse files
committed
Dart Dio: fix typo in markdown files
1 parent 64c8711 commit e7537fe

File tree

31 files changed

+129
-129
lines changed

31 files changed

+129
-129
lines changed

modules/openapi-generator/src/main/resources/dart/libraries/dio/README.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ try {
7474
{{#returnType}}
7575
print(response);
7676
{{/returnType}}
77-
} catch on DioException (e) {
77+
} on DioException catch (e) {
7878
print("Exception when calling {{classname}}->{{operationId}}: $e\n");
7979
}
8080
{{/-first}}{{/operation}}{{/operations}}{{/-first}}{{/apis}}{{/apiInfo}}

modules/openapi-generator/src/main/resources/dart/libraries/dio/api_doc.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ try {
5555
{{#returnType}}
5656
print(response);
5757
{{/returnType}}
58-
} catch on DioException (e) {
58+
} on DioException catch (e) {
5959
print('Exception when calling {{classname}}->{{operationId}}: $e\n');
6060
}
6161
```

samples/openapi3/client/petstore/dart-dio/binary_response/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ final api = Openapi().getDefaultApi();
5353
try {
5454
final response = await api.binaryResponse();
5555
print(response);
56-
} catch on DioException (e) {
56+
} on DioException catch (e) {
5757
print("Exception when calling DefaultApi->binaryResponse: $e\n");
5858
}
5959

samples/openapi3/client/petstore/dart-dio/binary_response/doc/DefaultApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ final api = Openapi().getDefaultApi();
2626
try {
2727
final response = api.binaryResponse();
2828
print(response);
29-
} catch on DioException (e) {
29+
} on DioException catch (e) {
3030
print('Exception when calling DefaultApi->binaryResponse: $e\n');
3131
}
3232
```

samples/openapi3/client/petstore/dart-dio/oneof/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ final api = Openapi().getDefaultApi();
5252
try {
5353
final response = await api.rootGet();
5454
print(response);
55-
} catch on DioException (e) {
55+
} on DioException catch (e) {
5656
print("Exception when calling DefaultApi->rootGet: $e\n");
5757
}
5858

samples/openapi3/client/petstore/dart-dio/oneof/doc/DefaultApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ final api = Openapi().getDefaultApi();
2626
try {
2727
final response = api.rootGet();
2828
print(response);
29-
} catch on DioException (e) {
29+
} on DioException catch (e) {
3030
print('Exception when calling DefaultApi->rootGet: $e\n');
3131
}
3232
```

samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ final BarCreate barCreate = ; // BarCreate |
5454
try {
5555
final response = await api.createBar(barCreate);
5656
print(response);
57-
} catch on DioException (e) {
57+
} on DioException catch (e) {
5858
print("Exception when calling BarApi->createBar: $e\n");
5959
}
6060

samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/BarApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ final BarCreate barCreate = ; // BarCreate |
2727
try {
2828
final response = api.createBar(barCreate);
2929
print(response);
30-
} catch on DioException (e) {
30+
} on DioException catch (e) {
3131
print('Exception when calling BarApi->createBar: $e\n');
3232
}
3333
```

samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/FooApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ final Foo foo = ; // Foo | The Foo to be created
2828
try {
2929
final response = api.createFoo(foo);
3030
print(response);
31-
} catch on DioException (e) {
31+
} on DioException catch (e) {
3232
print('Exception when calling FooApi->createFoo: $e\n');
3333
}
3434
```
@@ -68,7 +68,7 @@ final api = Openapi().getFooApi();
6868
try {
6969
final response = api.getAllFoos();
7070
print(response);
71-
} catch on DioException (e) {
71+
} on DioException catch (e) {
7272
print('Exception when calling FooApi->getAllFoos: $e\n');
7373
}
7474
```

samples/openapi3/client/petstore/dart-dio/oneof_primitive/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ final api = Openapi().getDefaultApi();
5252
try {
5353
final response = await api.list();
5454
print(response);
55-
} catch on DioException (e) {
55+
} on DioException catch (e) {
5656
print("Exception when calling DefaultApi->list: $e\n");
5757
}
5858

0 commit comments

Comments
 (0)