Skip to content

Commit 422e0e6

Browse files
committed
chore: cleaned up
1 parent 526e6d1 commit 422e0e6

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

openapi-generator-annotations/example/example.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:openapi_generator_annotations/openapi_generator_annotations.dart
22

33
@Openapi(
44
additionalProperties:
5-
AdditionalProperties(pubName: 'petstore_api', pubAuthor: 'Johnny dep'),
5+
AdditionalProperties(pubName: 'petstore_api', pubAuthor: 'Johnny dep.'),
66
inputSpec: InputSpec(path: 'example/openapi-spec.yaml'),
77
generatorName: Generator.dio,
88
outputDirectory: 'api/petstore_api',

openapi-generator/lib/src/openapi_generator_runner.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class OpenapiGenerator extends GeneratorForAnnotation<annots.Openapi> {
116116
});
117117
}
118118

119-
// Name of the package and path to the CLI script (typically just the package name if it's set up correctly)
119+
// Name of the package and path to the CLI script (typically just the package name if it's set up correctly)
120120
ProcessResult result;
121121
result = await _processRunner.run(
122122
'dart',

openapi-generator/test/output_message_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'package:openapi_generator/src/models/output_message.dart';
33
import 'package:test/test.dart';
44

55
void main() {
6-
group('OutputMessage', () {
6+
group('OutputMessage ', () {
77
test('defaults', () {
88
final message = OutputMessage(message: 'message');
99
expect(message.message, 'message');

openapi-generator/test/test_annotations/test_configs.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ const updateAnnotatedFile = true;
4242
class TestClassHasCustomAnnotations {}
4343

4444
@ShouldGenerate(r'''
45+
4546
const additionalProperties = wrapper = 'flutterw', nullableFields = 'true';
4647
4748
const fetchDependencies = true;
@@ -55,6 +56,7 @@ const runSourceGenOnOutput = true;
5556
const skipSpecValidation = false;
5657
5758
const updateAnnotatedFile = true;
59+
5860
''')
5961
@Openapi(
6062
inputSpec: InputSpec(path: ''),

openapi-generator/test/utils.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ Future<String> generate(String source, {String path = 'lib/myapp.dart'}) async {
3535
'openapi_generator|$path': '''
3636
import 'package:openapi_generator_annotations/src/openapi_generator_annotations_base.dart';
3737
$source
38-
class MyApp {
39-
}
38+
class MyApp {}
4039
''',
4140
'openapi_generator|openapi-spec.yaml': spec
4241
};

0 commit comments

Comments
 (0)