File tree Expand file tree Collapse file tree 10 files changed +40
-59
lines changed
openapi-generator-annotations Expand file tree Collapse file tree 10 files changed +40
-59
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ jobs:
101
101
- run : flutter build apk
102
102
103
103
# - name: Upload artifact (Client) ⬆️💻
104
- # uses: actions/upload-artifact@v3.1.1
104
+ # uses: actions/upload-artifact@v4
105
105
# with:
106
106
# name: example
107
107
# path: |
@@ -126,7 +126,7 @@ jobs:
126
126
echo $PR_SHA > PR_sha
127
127
128
128
- name : Upload PR number as artifact
129
- uses : actions/upload-artifact@v3.1.1
129
+ uses : actions/upload-artifact@v4
130
130
with :
131
131
name : PR_context
132
132
path : |
Original file line number Diff line number Diff line change 1
1
# How to become a contributor
2
2
3
+ ## Development Setup
4
+
5
+ Before you begin making changes to the repository, ensure you have the following tools and have run the setup commands:
6
+
7
+ ### Prerequisites
8
+ - [ Dart SDK] ( https://dart.dev/get-dart ) (latest stable version)
9
+ - [ Flutter SDK] ( https://flutter.dev/docs/get-started/install ) (if working with Flutter examples)
10
+ - [ Java] ( https://adoptium.net/ ) (version 8 or higher) - required for OpenAPI Generator CLI
11
+
12
+ ### Setup Steps
13
+
14
+ 1 . ** Activate Melos globally** (for monorepo management):
15
+ ``` bash
16
+ dart pub global activate melos
17
+ ```
18
+
19
+ 2 . ** Bootstrap the workspace** (links local packages and sets up dependencies):
20
+ ``` bash
21
+ melos bootstrap
22
+ ```
23
+
24
+ 3 . ** Get dependencies** for all packages:
25
+ ``` bash
26
+ melos exec dart pub get
27
+ ```
28
+
29
+ 4 . ** Format code** before committing:
30
+ ``` bash
31
+ melos format
32
+ ```
33
+
3
34
## Before submitting an issue
4
35
5
36
- Search the [ open issue] ( https://github.com/gibahjoe/openapi-generator-dart/issues )
17
48
1 . Ensure that your code adheres to the existing style in the code to which
18
49
you are contributing.
19
50
1 . Ensure that your code has an appropriate set of tests which all pass.
51
+ 1 . ** Always run ` melos format ` before committing** to ensure consistent code formatting across the repository.
20
52
1 . ** Title your pull request as well as all your commits
21
53
following [ Conventional Commits] ( https://www.conventionalcommits.org/ ) styling.**
22
54
1 . Submit a pull request.
Original file line number Diff line number Diff line change @@ -185,22 +185,6 @@ packages:
185
185
url: "https://pub.dev"
186
186
source: hosted
187
187
version: "3.1.0"
188
- dio:
189
- dependency: transitive
190
- description:
191
- name: dio
192
- sha256: "253a18bbd4851fecba42f7343a1df3a9a4c1d31a2c1b37e221086b4fa8c8dbc9"
193
- url: "https://pub.dev"
194
- source: hosted
195
- version: "5.8.0+1"
196
- dio_web_adapter:
197
- dependency: transitive
198
- description:
199
- name: dio_web_adapter
200
- sha256: "7586e476d70caecaf1686d21eee7247ea43ef5c345eab9e0cc3583ff13378d78"
201
- url: "https://pub.dev"
202
- source: hosted
203
- version: "2.1.1"
204
188
fake_async:
205
189
dependency: transitive
206
190
description:
@@ -387,22 +371,6 @@ packages:
387
371
url: "https://pub.dev"
388
372
source: hosted
389
373
version: "2.0.0"
390
- one_of:
391
- dependency: transitive
392
- description:
393
- name: one_of
394
- sha256: "25fe0fcf181e761c6fcd604caf9d5fdf952321be17584ba81c72c06bdaa511f0"
395
- url: "https://pub.dev"
396
- source: hosted
397
- version: "1.5.0"
398
- one_of_serializer:
399
- dependency: transitive
400
- description:
401
- name: one_of_serializer
402
- sha256: "3f3dfb5c1578ba3afef1cb47fcc49e585e797af3f2b6c2cc7ed90aad0c5e7b83"
403
- url: "https://pub.dev"
404
- source: hosted
405
- version: "1.5.0"
406
374
openapi_generator:
407
375
dependency: "direct dev"
408
376
description:
@@ -440,13 +408,6 @@ packages:
440
408
url: "https://pub.dev"
441
409
source: hosted
442
410
version: "1.9.1"
443
- petstore_api:
444
- dependency: "direct main"
445
- description:
446
- path: "api/petstore_api"
447
- relative: true
448
- source: path
449
- version: "1.0.0"
450
411
pool:
451
412
dependency: transitive
452
413
description:
@@ -471,14 +432,6 @@ packages:
471
432
url: "https://pub.dev"
472
433
source: hosted
473
434
version: "1.5.0"
474
- quiver:
475
- dependency: transitive
476
- description:
477
- name: quiver
478
- sha256: ea0b925899e64ecdfbf9c7becb60d5b50e706ade44a85b2363be2a22d88117d2
479
- url: "https://pub.dev"
480
- source: hosted
481
- version: "3.2.2"
482
435
shelf:
483
436
dependency: transitive
484
437
description:
Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ dependencies:
31
31
flutter :
32
32
sdk : flutter
33
33
openapi_generator_annotations : ^6.0.0
34
- petstore_api :
35
- path : ./api/petstore_api
34
+ # petstore_api:
35
+ # path: ./api/petstore_api
36
36
37
37
38
38
# The following adds the Cupertino Icons font to your application.
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import 'dart:io';
4
4
import 'package:crypto/crypto.dart' ;
5
5
import 'package:meta/meta.dart' ;
6
6
7
-
8
7
class Openapi {
9
8
/// Additional properties to pass to the compiler (CSV)
10
9
///
@@ -149,7 +148,6 @@ class Openapi {
149
148
/// Defaults to [false] .
150
149
final bool forceAlwaysRun;
151
150
152
-
153
151
const Openapi ({
154
152
this .additionalProperties,
155
153
this .skipSpecValidation = false ,
Original file line number Diff line number Diff line change @@ -389,7 +389,6 @@ void main() {
389
389
);
390
390
expect (openapi.toString (), contains ('forceAlwaysRun: true' ));
391
391
});
392
-
393
392
});
394
393
395
394
group ('InputSpec.toString' , () {
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ class GeneratorArguments {
20
20
/// The default location is: .dart_tool/openapi-generator-cache.json
21
21
final String cachePath;
22
22
23
-
24
23
final bool isDebug;
25
24
26
25
/// Use a custom pubspec file when generating.
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ class OpenapiGenerator extends GeneratorForAnnotation<annots.Openapi> {
206
206
message: [
207
207
':: Looks like you havent added the spec file [${args .inputSpec .path }] to your build.yaml.' ,
208
208
':: This is needed for this package to monitor changes to the spec file.' ,
209
- ':: Find out more here: https://dart.dev/tools/build_system#reading-files ' ,
209
+ ':: Find out more here: ' ,
210
210
'\n ' ,
211
211
].join ('\n ' ),
212
212
level: Level .WARNING ,
Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ environment:
8
8
9
9
dependencies :
10
10
build : ' >=1.0.0 <=3.0.0'
11
- source_gen : ' >=1.0.0 <=2 .0.0'
11
+ source_gen : ' >=1.0.0 <=5 .0.0'
12
12
path : ' >=1.0.0 <=2.0.0'
13
13
openapi_generator_annotations : ^6.1.0
14
- analyzer : ' >5.12.0 <8 .0.0'
14
+ analyzer : ' >5.12.0 <9 .0.0'
15
15
openapi_generator_cli : ^6.1.0
16
16
crypto : ' >=3.0.6 <=4.0.0'
17
17
meta : ' >=1.15.0 <=2.0.0'
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ name: openapi_generator_dart
3
3
environment :
4
4
sdk : ' >=3.0.0 <4.0.0'
5
5
dev_dependencies :
6
- melos : ^6.2.0
6
+ melos :
You can’t perform that action at this time.
0 commit comments