Skip to content

Commit bdd18da

Browse files
committed
updated dependencies
1 parent cbb9fc2 commit bdd18da

File tree

5 files changed

+26
-12
lines changed

5 files changed

+26
-12
lines changed

openapi-generator-annotations/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.1.2
2+
3+
- Added support for skipping post build actions
4+
15
## 1.1.1
26

37
- Fixed build issue

openapi-generator-cli/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.1.2
2+
3+
- Updated Dart2-api support
4+
15
## 1.1.0
26

37
- Added support for **_dart2-api_** from [dart-ogurets](https://github.com/dart-ogurets/dart-openapi-maven)

openapi-generator/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 1.1.2
2+
3+
- Added support for skipping post run steps
4+
- Fixed failing post build steps in windows
5+
16
## 1.1.1
27

38
- Fixed build issue

openapi-generator/lib/src/openapi_generator_runner.dart

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ class OpenapiGenerator extends GeneratorForAnnotation<annots.Openapi> {
9797
'OpenapiGenerator :: Codegen ${pr.exitCode != 0 ? 'Failed' : 'completed successfully'}');
9898
exitCode = pr.exitCode;
9999

100-
// if (!_readFieldValueAsBool(annotation, 'fetchDependencies')) {
101-
// print(
102-
// 'OpenapiGenerator :: Codegen skipping install step because you said so...');
103-
// return '';
104-
// }
100+
if (!_readFieldValueAsBool(annotation, 'fetchDependencies')) {
101+
print(
102+
'OpenapiGenerator :: Skipping install step because you said so...');
103+
return '';
104+
}
105105

106106
if (exitCode == 0) {
107107
var installOutput = await Process.run('flutter', ['pub', 'get'],
@@ -114,11 +114,11 @@ class OpenapiGenerator extends GeneratorForAnnotation<annots.Openapi> {
114114
exitCode = installOutput.exitCode;
115115
}
116116

117-
// if (!_readFieldValueAsBool(annotation, 'runSourceGenOnOutput')) {
118-
// print(
119-
// 'OpenapiGenerator :: Codegen skipping source gen step because you said so...');
120-
// return '';
121-
// }
117+
if (!_readFieldValueAsBool(annotation, 'runSourceGenOnOutput')) {
118+
print(
119+
'OpenapiGenerator :: Skipping source gen step because you said so...');
120+
return '';
121+
}
122122

123123
if (exitCode == 0) {
124124
//run buildrunner to generate files
@@ -138,6 +138,7 @@ class OpenapiGenerator extends GeneratorForAnnotation<annots.Openapi> {
138138
}
139139
} catch (e) {
140140
print('Error generating spec ${e}');
141+
rethrow;
141142
}
142143
return '';
143144
}

openapi-generator/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ dependencies:
1010
build: '>=1.3.0 <=1.10.3'
1111
source_gen: ^0.9.7+1
1212
path: ^1.7.0
13-
openapi_generator_annotations: ^1.1.1
13+
openapi_generator_annotations: ^1.1.2
1414
analyzer: '>=0.39.8 <=0.40.1'
15-
openapi_generator_cli: ^1.1.0
15+
openapi_generator_cli: ^1.1.2
1616
generic_reader: ^0.1.5
1717

1818
dev_dependencies:

0 commit comments

Comments
 (0)